aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2016-01-06 09:16:11 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2016-01-06 09:16:11 +0800
commit9f74d41a1103fe22d374914990c4559b21f98b11 (patch)
treec5bbe9220946d5cbaa8586373a725094c67bb295
parent7587dfbab893380543a8eee1073db5e1efe435c6 (diff)
downloadfreebsd-ports-gnome-9f74d41a1103fe22d374914990c4559b21f98b11.tar.gz
freebsd-ports-gnome-9f74d41a1103fe22d374914990c4559b21f98b11.tar.zst
freebsd-ports-gnome-9f74d41a1103fe22d374914990c4559b21f98b11.zip
- Switch to options helpers
- Simplify makefile - Unsilence installation
-rw-r--r--net-p2p/xnap/Makefile21
1 files changed, 10 insertions, 11 deletions
diff --git a/net-p2p/xnap/Makefile b/net-p2p/xnap/Makefile
index 6c711c3f49b3..8adc706739ae 100644
--- a/net-p2p/xnap/Makefile
+++ b/net-p2p/xnap/Makefile
@@ -22,16 +22,13 @@ NO_ARCH= yes
JAVAVM= ${LOCALBASE}/bin/java
-OPTIONS_DEFINE= DOCS
-
-DOC_FILES= AUTHORS COPYING COPYING.LIB NEWS README \
- TODO
-PORTDOCS= ${DOC_FILES}
+PORTDOCS= AUTHORS COPYING COPYING.LIB NEWS README TODO
-PLIST_FILES= \
- bin/${PORTNAME:tl} \
+PLIST_FILES= bin/${PORTNAME:tl} \
%%JAVAJARDIR%%/${PORTNAME:tl}.jar
+OPTIONS_DEFINE= DOCS
+
post-patch:
@${SED} -e "s|%%JAVAJARDIR%%|${JAVAJARDIR:S,^${PREFIX}/,,}|; \
s|%%JAVAVM%%|${JAVAVM}|; \
@@ -40,12 +37,14 @@ post-patch:
${FILESDIR}/wrapper.sh > ${WRKDIR}/wrapper.sh
do-install:
- @${INSTALL_DATA} ${WRKSRC}/xnap.jar \
+ ${INSTALL_DATA} ${WRKSRC}/xnap.jar \
${STAGEDIR}${JAVAJARDIR}/${PORTNAME:tl}.jar
- @${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh ${STAGEDIR}${PREFIX}/bin/${PORTNAME:tl}
+ ${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh ${STAGEDIR}${PREFIX}/bin/${PORTNAME:tl}
+
+do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
-.for doc in ${DOC_FILES}
- @${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR}
+.for doc in ${PORTDOCS}
+ ${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR}
.endfor
.include <bsd.port.mk>