diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2013-06-04 06:34:05 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2013-06-04 06:34:05 +0000 |
commit | ac818fc7df67839053a8b7e6c0139da668b9c2d2 (patch) | |
tree | 99001edb2fb6eba2392e4ff305e6b1a997e7561c /net/mpich2 | |
parent | fd0bfa7a6d9bcd5e08d8238c45af05264a52330a (diff) | |
download | ports-ac818fc7df67839053a8b7e6c0139da668b9c2d2.tar.gz ports-ac818fc7df67839053a8b7e6c0139da668b9c2d2.zip |
Notes
Diffstat (limited to 'net/mpich2')
-rw-r--r-- | net/mpich2/Makefile | 36 |
1 files changed, 19 insertions, 17 deletions
diff --git a/net/mpich2/Makefile b/net/mpich2/Makefile index e89754afcabf..55d23d580196 100644 --- a/net/mpich2/Makefile +++ b/net/mpich2/Makefile @@ -28,9 +28,15 @@ USE_LDCONFIG= yes USE_PERL5_BUILD=yes USE_PYTHON= yes -OPTIONS= JAVA "build MPE Jumpshot-4" on \ - SMPD "use SMPD instead of MPD, for a mixed-OS cluster" off \ - X11 "build MPE graphics routines" on +OPTIONS_DEFINE_i386= JAVA +OPTIONS_DEFINE_amd64= JAVA +OPTIONS_DEFINE= SMPD X11 DOCS +OPTIONS_DEFAULT_i386= JAVA +OPTIONS_DEFAULT_amd64= JAVA +OPTIONS_DEFAULT= X11 +JAVA_DESC= build MPE Jumpshot-4 +SMPD_DESC= use SMPD instead of MPD, for a mixed-OS cluster +X11_DESC= build MPE graphics routines CONFIGURE_ARGS= --enable-romio --enable-shared \ --docdir="${DOCSDIR}" @@ -57,20 +63,16 @@ SUB_FILES= pkg-message .include <bsd.port.options.mk> -.if defined(WITH_DEBUG) +.if ${PORT_OPTIONS:MDEBUG} MAKE_ENV+= VERBOSE=1 .endif -.if !(${ARCH} == "amd64" || ${ARCH} == "i386") -WITHOUT_JAVA= no_java_available_for_${ARCH} -.endif - -.if defined(WITHOUT_JAVA) +.if ! ${PORT_OPTIONS:MJAVA} CONFIGURE_ARGS+= --without-java PLIST_SUB+= JAVA="@comment " PLX11= "@comment " .else -.if defined(WITHOUT_X11) +.if ! ${PORT_OPTIONS:MX11} IGNORE = WITH_JAVA requires WITH_X11 .endif CONFIGURE_ARGS+= --with-java="${JAVA_HOME}" @@ -90,7 +92,7 @@ WITH_RECV_TIMEOUT?= 100 WITH_RECV_TIMEOUT?= 20 .endif -.if defined(WITH_SMPD) +.if ${PORT_OPTIONS:MSMPD} CONFIGURE_ARGS+= --with-pmi=smpd --with-pm=smpd PLIST_SUB+= PM_MPD="@comment " PM_SMPD="" .else @@ -98,7 +100,7 @@ CONFIGURE_ARGS+= --with-pmi=simple --with-pm=mpd PLIST_SUB+= PM_MPD="" PM_SMPD="@comment " .endif -.if defined(WITHOUT_X11) +.if ! ${PORT_OPTIONS:MX11} CONFIGURE_ARGS+= --disable-graphics PLIST_SUB+= X11="@comment " .else @@ -109,7 +111,7 @@ PLIST_SUB+= X11=${PLX11} .include <bsd.port.pre.mk> -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} .include "${FILESDIR}/manpages" .endif @@ -133,13 +135,13 @@ pre-configure: ${FIND} ${WRKSRC} -name configure | ${XARGS} \ ${REINPLACE_CMD} -e 's|doc/$${PACKAGE}|doc/${PORTNAME}|' .for fin in ${DOC2PATCH} -. if defined(NOPORTDOCS) - ${REINPLACE_CMD} -e 's|%%PORTDOCS%%|#|' ${WRKSRC}/${fin} -. else +. if ${PORT_OPTIONS:MDOCS} ${REINPLACE_CMD} -e 's|%%PORTDOCS%%||' ${WRKSRC}/${fin} +. else + ${REINPLACE_CMD} -e 's|%%PORTDOCS%%|#|' ${WRKSRC}/${fin} . endif .endfor -.if defined(NOPORTDOCS) +.if ! ${PORT_OPTIONS:MDOCS} ${REINPLACE_CMD} -e 's|lib doc share|lib share|' \ ${WRKSRC}/src/mpe2/src/slog2sdk/sbin/install-package.in .endif |