diff options
author | Brooks Davis <brooks@FreeBSD.org> | 2007-02-15 22:30:10 +0000 |
---|---|---|
committer | Brooks Davis <brooks@FreeBSD.org> | 2007-02-15 22:30:10 +0000 |
commit | 88ecb4b9589e9352017afc958bab4e63a50cf62a (patch) | |
tree | 90df4280fcd8be19fd0ee81358278d75670ef2fd /sysutils/sge60 | |
parent | 0d63536a30f882b726efca2cf39d8639ce04026e (diff) | |
download | ports-88ecb4b9589e9352017afc958bab4e63a50cf62a.tar.gz ports-88ecb4b9589e9352017afc958bab4e63a50cf62a.zip |
Notes
Diffstat (limited to 'sysutils/sge60')
-rw-r--r-- | sysutils/sge60/Makefile | 22 | ||||
-rw-r--r-- | sysutils/sge60/Makefile.man | 1 | ||||
-rw-r--r-- | sysutils/sge60/pkg-plist | 3 |
3 files changed, 14 insertions, 12 deletions
diff --git a/sysutils/sge60/Makefile b/sysutils/sge60/Makefile index e6c4968f2ead..5f42b14c9557 100644 --- a/sysutils/sge60/Makefile +++ b/sysutils/sge60/Makefile @@ -7,6 +7,7 @@ PORTNAME= sge PORTVERSION= ${SGE_VERSION} +PORTREVISION= 1 CATEGORIES= sysutils parallel MASTER_SITES= http://gridengine.sunsource.net/files/documents/7/122/ MASTER_SITES+= ${MASTER_SITE_LOCAL} @@ -39,18 +40,12 @@ NOT_FOR_ARCHS= alpha USE_GETTEXT= yes USE_GMAKE= yes USE_OPENSSL= yes -INSTALLS_SHLIB= yes -LDCONFIG_DIRS= ${SGE_ROOT}/lib/${SGE_ARCH} - -# We have to use fetch because the master site required cookies to -# download the file. -FETCH_DEPENDS= wget:${PORTSDIR}/ftp/wget -DISABLE_SIZE= yes -FETCH_CMD= wget -c +USE_LDCONFIG= ${SGE_ROOT}/lib/${SGE_ARCH} SGE_BASE?= sge SGE_ROOT= ${TARGETDIR}/${SGE_BASE} SGE_ARCH= fbsd-${ARCH} +SGE_BUILD_ARCH= FREEBSD_${ARCH:U} SGE_VERSION= 6.0.10 SGE_RELEASE= 6.0u10 @@ -117,6 +112,7 @@ ANT?= ${LOCALBASE}/bin/ant BUILD_DEPENDS+= ${ANT}:${PORTSDIR}/devel/apache-ant PLIST_SUB+= DRMAA= AIMK_ENV+= JAVA_HOME=${JAVA_HOME} +CATEGORIES+= java .else AIMK_ARGS+= -no-java -no-jni PLIST_SUB+= DRMAA="@comment " @@ -145,11 +141,16 @@ post-patch: -e "s|%%X11BASE%%|${X11BASE}|g" \ ${WRKSRC}/aimk \ ${WRKSRC}/dist/pvm/src/aimk + @test -d ${WRKSRC}/3rdparty/qtcsh/${SGE_BUILD_ARCH} || \ + (${CP} -r ${WRKSRC}/3rdparty/qtcsh/FREEBSD_I386 \ + ${WRKSRC}/3rdparty/qtcsh/${SGE_BUILD_ARCH} && \ + ${REINPLACE_CMD} -e 's|FREEBSD_I386|${SGE_BUILD_ARCH}|' \ + ${WRKSRC}/3rdparty/qtcsh/${SGE_BUILD_ARCH}/Makefile) @${REINPLACE_CMD} -e 's|^CC = gcc|CC = ${CC}|' \ -e 's|^CPP = gcc -E|CPP = ${CPP}|' \ ${WRKSRC}/3rdparty/qmake/FREEBSD_*/Makefile \ ${WRKSRC}/3rdparty/qmake/FREEBSD_*/glob/Makefile \ - ${WRKSRC}/3rdparty/qtcsh/FREEBSD_*/Makefile + ${WRKSRC}/3rdparty/qtcsh/${SGE_BUILD_ARCH}/Makefile @${RM} ${WRKSRC}/dist/util/arch_variables.orig @${RM} ${WRKSRC}/dist/util/install_modules/inst_common.sh.orig @${FIND} ${WRKSRC} -name Makefile | ${XARGS} \ @@ -234,7 +235,8 @@ build-plist: build ${SORT} -r | \ ${SED} -e 's|${WRKSRC}/../doc|%%PORTDOCS%%@dirrm %%DOCSDIR%%|' \ >> ${PLIST} - @echo '@unexec rmdir %D/%%SGE_BASE%%/ 2>/dev/null || ( echo "Configuration information saved. If you will *NOT* use this package anymore," && echo "please remove %D/%%SGE_BASE%% and its contents manually.")' >> ${PLIST} + @echo '@dirrmtry %%SGE_BASE%%' >> ${PLIST} + @echo '@unexec test -d %D/%%SGE_BASE%% && ( echo "Configuration information saved. If you will *NOT* use this package anymore," && echo "please remove %D/%%SGE_BASE%% and its contents manually.")' >> ${PLIST} @echo "# Do not edit! Auto-generated file." > ${.CURDIR}/Makefile.man @echo "# See build-plist target in Makefile." >> ${.CURDIR}/Makefile.man @echo "#" >> ${.CURDIR}/Makefile.man diff --git a/sysutils/sge60/Makefile.man b/sysutils/sge60/Makefile.man index a529e70febde..78a78104b497 100644 --- a/sysutils/sge60/Makefile.man +++ b/sysutils/sge60/Makefile.man @@ -28,7 +28,6 @@ MLINKS+=drmaa_session.3 drmaa_init.3 MLINKS+=drmaa_jobtemplate.3 drmaa_get_num_attr_values.3 MLINKS+=drmaa_submit.3 drmaa_get_num_job_ids.3 MLINKS+=drmaa_jobtemplate.3 drmaa_get_vector_attribute.3 -MLINKS+=drmaa_session.3 drmaa_init.3 MLINKS+=drmaa_attributes.3 drmaa_get_vector_attribute_names.3 MLINKS+=drmaa_jobcontrol.3 drmaa_job_ps.3 MLINKS+=drmaa_attributes.3 drmaa_release_attr_names.3 diff --git a/sysutils/sge60/pkg-plist b/sysutils/sge60/pkg-plist index ad8e89ecf86e..aca9785026d3 100644 --- a/sysutils/sge60/pkg-plist +++ b/sysutils/sge60/pkg-plist @@ -845,4 +845,5 @@ %%PORTDOCS%%@dirrm %%DOCSDIR%%/devel/commd %%PORTDOCS%%@dirrm %%DOCSDIR%%/devel %%PORTDOCS%%@dirrm %%DOCSDIR%% -@unexec rmdir %D/%%SGE_BASE%%/ 2>/dev/null || ( echo "Configuration information saved. If you will *NOT* use this package anymore," && echo "please remove %D/%%SGE_BASE%% and its contents manually.") +@dirrmtry %%SGE_BASE%% +@unexec test -d %D/%%SGE_BASE%% && ( echo "Configuration information saved. If you will *NOT* use this package anymore," && echo "please remove %D/%%SGE_BASE%% and its contents manually.") |