aboutsummaryrefslogtreecommitdiff
path: root/math/eukleides
diff options
context:
space:
mode:
authorAdam Weinberger <adamw@FreeBSD.org>2014-07-04 00:52:39 +0000
committerAdam Weinberger <adamw@FreeBSD.org>2014-07-04 00:52:39 +0000
commitd9b51276267edffe96f5dfa613e9010e8b20d481 (patch)
tree71cbf3545f3c46063cafedf3043c72b11789854f /math/eukleides
parent3b13c98a60e823f1bc3e1f443d21e61fcb8dcbcc (diff)
downloadports-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/eukleides')
-rw-r--r--math/eukleides/Makefile12
1 files changed, 4 insertions, 8 deletions
diff --git a/math/eukleides/Makefile b/math/eukleides/Makefile
index 19731ba1b763..89edb70b8124 100644
--- a/math/eukleides/Makefile
+++ b/math/eukleides/Makefile
@@ -18,20 +18,18 @@ RUN_DEPENDS= pstoedit:${PORTSDIR}/graphics/pstoedit
USE_TEX= latex
USES= bison gettext iconv gmake tar:bzip2
-OPTIONS_DEFINE= DOCS
+OPTIONS_DEFINE= DOCS EXAMPLES
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCS}
USES+= makeinfo
USE_TEX+= pdftex:build
-PORTDOCS= de.pdf fr.pdf
INFO= eukleides
.endif
-.ifndef NOPORTEXAMPLES
+PORTDOCS= de.pdf fr.pdf
PORTEXAMPLES= greenwich.euk sundial.euk vonkoch.euk
-.endif
post-patch:
@${GREP} -lR "#!/bin/bash" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
@@ -45,19 +43,17 @@ post-patch:
-e "s|%%DOCSDIR%%|${STAGEDIR}${DOCSDIR}|g"
@${GREP} -lFR "gcc" ${WRKSRC} |${XARGS} ${REINPLACE_CMD} \
-e "s|gcc|${CC}|g"
-.if defined(${PORT_OPTIONS:MDOCS})
+.if ${PORT_OPTIONS:MDOCS}
@${REINPLACE_CMD} -e '/^install:/ s/install_doc//g' \
-e '/^all:/ s/doc//g' ${WRKSRC}/Makefile
.endif
-.ifdef NOPORTEXAMPLES
+.if ${PORT_OPTIONS:MEXAMPLES}
@${REINPLACE_CMD} -e 's/install_exm$$//g' ${WRKSRC}/Makefile
.endif
pre-install:
-.ifndef NOPORTEXAMPLES
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
-.endif
post-install:
for i in euktoeps euktopdf euktotex; do \