diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2013-06-04 14:40:29 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2013-06-04 14:40:29 +0000 |
commit | 7242f4ff34668cbe45ea086f01c28a0963406a03 (patch) | |
tree | bddb1a39f155808ce48f6e4c3d01d05c24c817b2 /science/ecs | |
parent | 2c1d5c8d64cc101a3c165a9655d6b6016bae8c81 (diff) | |
download | ports-7242f4ff34668cbe45ea086f01c28a0963406a03.tar.gz ports-7242f4ff34668cbe45ea086f01c28a0963406a03.zip |
Notes
Diffstat (limited to 'science/ecs')
-rw-r--r-- | science/ecs/Makefile | 16 |
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 |