diff options
author | Rene Ladan <rene@FreeBSD.org> | 2013-01-28 15:57:05 +0000 |
---|---|---|
committer | Rene Ladan <rene@FreeBSD.org> | 2013-01-28 15:57:05 +0000 |
commit | 52fa6e0e61ea2ab478f8b2cd99a37ec2e991d3a0 (patch) | |
tree | 4b7c930bcf8993a66bb1f0368960a2256a0f1bcc /sysutils/sge61 | |
parent | df65a417356a6534e235d9769813b9badcdb7eb6 (diff) | |
download | ports-52fa6e0e61ea2ab478f8b2cd99a37ec2e991d3a0.tar.gz ports-52fa6e0e61ea2ab478f8b2cd99a37ec2e991d3a0.zip |
Notes
Diffstat (limited to 'sysutils/sge61')
-rw-r--r-- | sysutils/sge61/Makefile | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/sysutils/sge61/Makefile b/sysutils/sge61/Makefile index a8ade85d9289..eafca2bb4157 100644 --- a/sysutils/sge61/Makefile +++ b/sysutils/sge61/Makefile @@ -17,13 +17,16 @@ EXTRACT_ONLY= ${DISTNAME}.tar.gz MAINTAINER= ports@FreeBSD.org COMMENT= Sun Grid Engine, a batch queueing system -DEPRECATED= Ancient and unsupported release +DEPRECATED= Ancient and unsupported release EXPIRATION_DATE=2013-03-01 -OPTIONS= BDB "Use DB based spooler" on \ - JAVA "Support Java DRMAA API" on \ - X11 "Qmon X11 GUI" on \ - QSH "Enable qsh (requires xterm on exec hosts)" on +OPTIONS_DEFINE= BDB JAVA X11 QSH +OPTIONS_DEFAULT= BDB JAVA X11 QSH +JAVA_DESC= Support Java DRMAA API +X11_DESC= Qmon X11 GUI +QSH_DESC= qsh (requires xterm on exec hosts) + +.include <bsd.port.options.mk> LATEST_LINK= sge61 CONFLICTS= sge-6.[02-9]* sge-5* sgeee-[0-9]* sge-0.* @@ -87,9 +90,7 @@ MANPREFIX= ${SGE_ROOT} .include "${.CURDIR}/Makefile.man" EXCEPTFILES= arc_depend_irix.asc arc_depend_solaris.asc man testsuite -.include <bsd.port.pre.mk> - -.if defined(WITH_BDB) +.if ${PORT_OPTIONS:MBDB} LIB_DEPENDS= db-4.2:${PORTSDIR}/databases/db42 PLIST_SUB+= BDB_SPOOL= .else @@ -97,7 +98,7 @@ AIMK_ARGS+= -spool-classic PLIST_SUB+= BDB_SPOOL="@comment " .endif -.if defined(WITH_JAVA) +.if ${PORT_OPTIONS:MJAVA} USE_JAVA= yes JAVA_VERSION= 1.6+ PLIST_SUB+= DRMAA= @@ -107,7 +108,7 @@ PLIST_SUB+= DRMAA="@comment " .endif AIMK_ARGS+= -no-java -no-jni -.if defined(WITH_X11) +.if ${PORT_OPTIONS:MX11} USE_MOTIF= yes PLIST_SUB+= QMON= QMON= qmon @@ -169,7 +170,7 @@ post-patch: -e 's|%%OPENSSLBASE%%|${OPENSSLBASE}|g' \ -e 's|%%WRKDIR%%|${WRKDIR}|g' \ ${FILESDIR}/distinst.private > ${WRKSRC}/distinst.private -.if !defined(WITH_X11) +.if ! ${PORT_OPTIONS:MX11} @${REINPLACE_CMD} -e 's/qmon//' ${WRKSRC}/dist/util/setfileperm.sh .endif @@ -183,14 +184,14 @@ do-build: @${MKDIR} ${TMP_SGE_ROOT} @cd ${WRKSRC} && ${SETENV} SGE_ROOT=${TMP_SGE_ROOT} \ ./scripts/distinst -local -libs ${SGE_ARCH} -- ${INST_PROGS} -.if defined(WITHOUT_QSH) +.if ! ${PORT_OPTIONS:MQSH} @${RM} ${TMP_SGE_ROOT}/bin/${SGE_ARCH}/qlogin @${RM} ${TMP_SGE_ROOT}/bin/${SGE_ARCH}/qrsh @${MV} ${TMP_SGE_ROOT}/bin/${SGE_ARCH}/qsh ${TMP_SGE_ROOT}/bin/${SGE_ARCH}/qrsh @${LN} -s qrsh ${TMP_SGE_ROOT}/bin/${SGE_ARCH}/qlogin @${INSTALL_SCRIPT} ${FILESDIR}/qsh-disabled.sh ${TMP_SGE_ROOT}/bin/${SGE_ARCH}/qsh .endif -.if !defined(WITH_X11) +.if ! ${PORT_OPTIONS:MX11} @${RM} ${TMP_SGE_ROOT}/catman/cat/cat1/qmon.1 @${RM} -r ${TMP_SGE_ROOT}/3rd_party/qmon .endif @@ -200,7 +201,7 @@ do-install: @cd ${TMP_SGE_ROOT} && \ ${FIND} . | ${TAR} cTf - - | ${TAR} xUCf ${SGE_ROOT} - @cd ${SGE_ROOT} && ${SETENV} SGE_ROOT=${SGE_ROOT} util/setfileperm.sh -auto ${SGE_ROOT} -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${DOCSDIR} @cd ${WRKSRC}/../doc && ${FIND} * \( -name CVS \ ${EXCEPTFILES:S/^/-o -name /} \) -a -prune -o -type f -print \ @@ -226,7 +227,7 @@ release-tar: build # Build a pkg-plist and Makefile.man build-plist: build -.if defined(WITHOUT_BDB) || defined(WITHOUT_JAVA) || defined(WITHOUT_X11) +.if ! ${PORT_OPTIONS:MBDB} || ! ${PORT_OPTIONS:MJAVA} || ! ${PORT_OPTIONS:MX11} @echo "ERROR: All OPTIONS must be enabled to build plist!" && ${FALSE} .endif @${FIND} ${TMP_SGE_ROOT}/* -name man -prune -o \ @@ -269,4 +270,4 @@ build-plist: build ${SED} -e 's|.*man\([0-9LN]\)/\(.*\)|MAN\1+=\2|' \ >> ${.CURDIR}/Makefile.man -.include <bsd.port.post.mk> +.include <bsd.port.mk> |