diff options
author | Adam Weinberger <adamw@FreeBSD.org> | 2014-07-04 00:52:39 +0000 |
---|---|---|
committer | Adam Weinberger <adamw@FreeBSD.org> | 2014-07-04 00:52:39 +0000 |
commit | d9b51276267edffe96f5dfa613e9010e8b20d481 (patch) | |
tree | 71cbf3545f3c46063cafedf3043c72b11789854f /math/testu01 | |
parent | 3b13c98a60e823f1bc3e1f443d21e61fcb8dcbcc (diff) | |
download | ports-d9b51276267edffe96f5dfa613e9010e8b20d481.tar.gz ports-d9b51276267edffe96f5dfa613e9010e8b20d481.zip |
Remove NOPORTDOCS and NOPORTEXAMPLES.
Approved by: portmgr (blanket)
Notes
Notes:
svn path=/head/; revision=360499
Diffstat (limited to 'math/testu01')
-rw-r--r-- | math/testu01/Makefile | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/math/testu01/Makefile b/math/testu01/Makefile index b6bfae6aeba0..998beae1180d 100644 --- a/math/testu01/Makefile +++ b/math/testu01/Makefile @@ -26,19 +26,23 @@ CFLAGS+= -fPIC PLIST_SUB= PORTNAME="${PORTNAME}" CONFLICTS= emboss-[0-9]* +OPTIONS_DEFINE= DOCS EXAMPLES + +.include <bsd.port.options.mk> + post-patch: @${REINPLACE_CMD} -e 's|echo aout|echo elf|' ${WRKSRC}/configure @${REINPLACE_CMD} -e 's|return|& (0)|' ${WRKSRC}/testu01/fftc.c -.ifdef(NOPORTDOCS) +.if empty(PORT_OPTIONS:MDOCS) @${REINPLACE_CMD} -e '/^SUBDIRS \=/s/ doc / /' ${WRKSRC}/Makefile.in @${FIND} -X ${WRKSRC} -name 'Makefile.in' | ${XARGS} ${REINPLACE_CMD} \ -e '/^install-data-am\: /s/install-docDATA//' .endif -.ifdef(NOPORTEXAMPLES) +.if empty(PORT_OPTIONS:MEXAMPLES) @${REINPLACE_CMD} -e '/^SUBDIRS \=/s/ examples / /' ${WRKSRC}/Makefile.in .endif -.ifndef(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} @${INSTALL_DATA} ${DISTDIR}/testu01.pdf ${STAGEDIR}${DOCSDIR} |