diff options
author | Pawel Pekala <pawel@FreeBSD.org> | 2014-05-31 14:53:53 +0000 |
---|---|---|
committer | Pawel Pekala <pawel@FreeBSD.org> | 2014-05-31 14:53:53 +0000 |
commit | fc37e9702ff34bebb509df59801b757cc6f2420e (patch) | |
tree | 3b4a282b1d15699fbaf9f606d7d0c7883e6e5575 /java/netrexx/Makefile | |
parent | games/fotaq: Remove unnecessary extract target (diff) |
- Add staging support
- Convert to new options framework, add EXAMPLES option
Notes
Notes:
svn path=/head/; revision=355986
Diffstat (limited to '')
-rw-r--r-- | java/netrexx/Makefile | 27 |
1 files changed, 9 insertions, 18 deletions
diff --git a/java/netrexx/Makefile b/java/netrexx/Makefile index 5b0f827915e5..2aa42e13c231 100644 --- a/java/netrexx/Makefile +++ b/java/netrexx/Makefile @@ -15,8 +15,7 @@ NO_BUILD= yes USES= zip USE_JAVA= yes -NO_STAGE= yes -.include <bsd.port.pre.mk> +OPTIONS_DEFINE= DOCS EXAMPLES pre-patch: for file in ${WRKSRC}/bin/NetRexxC.sh ${WRKSRC}/read.me.first; do \ @@ -30,21 +29,13 @@ post-patch: ${WRKSRC}/bin/NetRexxC.sh do-install: - @${INSTALL_SCRIPT} ${WRKSRC}/bin/NetRexxC.sh ${PREFIX}/bin - @${LN} -sf ${PREFIX}/bin/NetRexxC.sh ${PREFIX}/bin/nrc - - @${INSTALL_DATA} ${WRKSRC}/lib/NetRexxC.jar ${JAVAJARDIR} - @${INSTALL_DATA} ${WRKSRC}/runlib/NetRexxR.jar ${JAVAJARDIR} - -.if !defined(NOPORTDOCS) - @${MKDIR} ${EXAMPLESDIR} - @${INSTALL_DATA} ${WRKSRC}/bin/hello.nrx \ - ${EXAMPLESDIR} - @cd ${WRKSRC}/browse && \ - ${FIND} . -type d -exec ${MKDIR} ${DOCSDIR}/{} \; - @cd ${WRKSRC}/browse && \ - ${FIND} . -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \; -.endif + ${INSTALL_SCRIPT} ${WRKSRC}/bin/NetRexxC.sh ${STAGEDIR}${PREFIX}/bin + ${LN} -sf ${PREFIX}/bin/NetRexxC.sh ${STAGEDIR}${PREFIX}/bin/nrc + ${INSTALL_DATA} ${WRKSRC}/lib/NetRexxC.jar ${STAGEDIR}${JAVAJARDIR} + ${INSTALL_DATA} ${WRKSRC}/runlib/NetRexxR.jar ${STAGEDIR}${JAVAJARDIR} + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/bin/hello.nrx ${STAGEDIR}${EXAMPLESDIR} + (cd ${WRKSRC}/browse && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}) post-install: @${ECHO} "==================== IBM LICENSE ====================" @@ -53,4 +44,4 @@ post-install: @${ECHO} "==================== IMPORTANT!! ====================" @${CAT} ${WRKSRC}/read.me.first -.include <bsd.port.post.mk> +.include <bsd.port.mk> |