aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorehaupt <ehaupt@FreeBSD.org>2014-02-21 18:20:34 +0800
committerehaupt <ehaupt@FreeBSD.org>2014-02-21 18:20:34 +0800
commitf718abab47f4eddabc7d45eb93b43fb609c256d0 (patch)
tree62c7f9271f9dfb246af5e0a6ca541a9c1e7076b1
parentccade7c7724aec198bc0522ab49c61993955d820 (diff)
downloadfreebsd-ports-gnome-f718abab47f4eddabc7d45eb93b43fb609c256d0.tar.gz
freebsd-ports-gnome-f718abab47f4eddabc7d45eb93b43fb609c256d0.tar.zst
freebsd-ports-gnome-f718abab47f4eddabc7d45eb93b43fb609c256d0.zip
Support staging
-rw-r--r--math/e/Makefile13
1 files changed, 5 insertions, 8 deletions
diff --git a/math/e/Makefile b/math/e/Makefile
index 1cf4068f995c..17f802027f31 100644
--- a/math/e/Makefile
+++ b/math/e/Makefile
@@ -12,21 +12,18 @@ COMMENT= A tiny expression evaluator
MAKEFILE= makefile
ALL_TARGET= e
-NO_STAGE= yes
+OPTIONS_DEFINE= DOCS
+
post-patch:
@${RM} ${WRKSRC}/${PORTNAME}
@${REINPLACE_CMD} -e 's|gcc|${CC}|g ; \
s|-O2|${CFLAGS}|g' ${WRKSRC}/makefile
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
-
-post-install:
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in EXAMPLES GRAMMAR README
- ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
.endfor
-.endif
.include <bsd.port.mk>