summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2016-07-17 09:00:30 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2016-07-17 09:00:30 +0000
commitcbceaf7345c0cb04f0ce42e13839dd8136a32fc7 (patch)
treea87818ee50f1439de3da35c8b650634ee3b9aaa0
parentBuild with ninja to reduce build time (diff)
- Switch to options helpers
- Regenerate patches with `make makepatch`
-rw-r--r--math/xplot/Makefile4
-rw-r--r--math/xplot/files/patch-Makefile.in (renamed from math/xplot/files/patch-Makefile)4
2 files changed, 6 insertions, 2 deletions
diff --git a/math/xplot/Makefile b/math/xplot/Makefile
index 8e031dbb3fcb..19dfa0aea48d 100644
--- a/math/xplot/Makefile
+++ b/math/xplot/Makefile
@@ -20,12 +20,16 @@ PLIST_FILES= bin/tcpdump2xplot bin/tcpdump2xplot.pl bin/xplot \
man/man1/tcpdump2xplot.1.gz \
man/man1/xplot.1.gz
+OPTIONS_DEFINE= DOCS
+
post-patch:
@${REINPLACE_CMD} -e \
'/INSTALL/s|2xplot$$|2xplot.pl|' ${WRKSRC}/Makefile.in
post-install:
${LN} -sf tcpdump2xplot.pl ${STAGEDIR}${PREFIX}/bin/tcpdump2xplot
+
+post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for doc in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR}
diff --git a/math/xplot/files/patch-Makefile b/math/xplot/files/patch-Makefile.in
index ac26d5dc6f92..ad46749e2515 100644
--- a/math/xplot/files/patch-Makefile
+++ b/math/xplot/files/patch-Makefile.in
@@ -1,5 +1,5 @@
---- Makefile.in.orig 2014-06-08 23:17:52.261073676 +0800
-+++ Makefile.in 2014-06-08 23:18:17.975100570 +0800
+--- Makefile.in.orig 2000-05-04 21:04:20 UTC
++++ Makefile.in
@@ -70,11 +70,11 @@ version_string.c: version
echo 'char *version_string = "'`cat version`'";' >version_string.c