summaryrefslogtreecommitdiff
path: root/science/ecs
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2013-06-04 14:40:29 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2013-06-04 14:40:29 +0000
commit7242f4ff34668cbe45ea086f01c28a0963406a03 (patch)
treebddb1a39f155808ce48f6e4c3d01d05c24c817b2 /science/ecs
parentWITHOUT_NLS -> PORT_OPTIONS:MNLS (diff)
WITHOUT_NLS -> PORT_OPTIONS:MNLS
NOPORTDOCS -> PORT_OPTIONS:MDOCS NOPORTEXAMPLES -> PORT_OPTIONS:MEXAMPLES
Notes
Notes: svn path=/head/; revision=319865
Diffstat (limited to 'science/ecs')
-rw-r--r--science/ecs/Makefile16
1 files changed, 9 insertions, 7 deletions
diff --git a/science/ecs/Makefile b/science/ecs/Makefile
index 7d92df4cc37a..7a64b8311ffd 100644
--- a/science/ecs/Makefile
+++ b/science/ecs/Makefile
@@ -40,19 +40,21 @@ CONFIGURE_ARGS+=--with-adf=${LOCALBASE} \
CONFIGURE_ARGS+=--without-adf --without-ccm
.endif
-.if defined(WITHOUT_NLS)
-CONFIGURE_ARGS+= --disable-nls
-PLIST_SUB+= NLS="@comment "
-.else
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
USES+= gettext iconv
PLIST_SUB+= NLS=""
+.else
+CONFIGURE_ARGS+= --disable-nls
+PLIST_SUB+= NLS="@comment "
.endif
.if defined(WITH_DEBUG)
CONFIGURE_ARGS+= --enable-debug
.endif
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
USE_TEX= tex:build
BUILD_DEPENDS+= fig2dev:${PORTSDIR}/print/transfig
PORTDOCS= mi_ecs.pdf mt_ecs.pdf
@@ -76,12 +78,12 @@ CONFIGURE_ARGS+= --with-scotch=${LOCALBASE}
.endif
pre-configure:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${REINPLACE_CMD} -e '/^SUBDIRS/s| po| po doc|' ${WRKSRC}/Makefile.in
.endif
post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${DOCSDIR}
.endif