aboutsummaryrefslogtreecommitdiffstats
path: root/math
diff options
context:
space:
mode:
authorpawel <pawel@FreeBSD.org>2016-01-07 03:48:08 +0800
committerpawel <pawel@FreeBSD.org>2016-01-07 03:48:08 +0800
commit7ed6f16c15a5f1cfb9264e888a83cf7d329cedd8 (patch)
tree354e3ebb6570564bda9d9c9ee2e51257a5dfde9c /math
parentcebd7a1a7c46838e409d2cbe38c8cef0b7e2a1f1 (diff)
downloadfreebsd-ports-gnome-7ed6f16c15a5f1cfb9264e888a83cf7d329cedd8.tar.gz
freebsd-ports-gnome-7ed6f16c15a5f1cfb9264e888a83cf7d329cedd8.tar.zst
freebsd-ports-gnome-7ed6f16c15a5f1cfb9264e888a83cf7d329cedd8.zip
- Remove home grown plist target, it used deprecated @dirrm
and make makeplist is doing the same job just fine - Remove DOCS option, only DOCSDIR directory was installed, bump PORTREVISION - plist changed for default configuration - Use options helper for EXAMPLES option
Diffstat (limited to 'math')
-rw-r--r--math/fxt/Makefile39
-rw-r--r--math/fxt/pkg-plist1
2 files changed, 3 insertions, 37 deletions
diff --git a/math/fxt/Makefile b/math/fxt/Makefile
index 5aa080315bcc..05fd6198cf84 100644
--- a/math/fxt/Makefile
+++ b/math/fxt/Makefile
@@ -3,6 +3,7 @@
PORTNAME= fxt
PORTVERSION= 2015.07.17
+PORTREVISION= 1
CATEGORIES= math
MASTER_SITES= http://www.jjj.de/fxt/
@@ -16,7 +17,7 @@ WRKSRC= ${WRKDIR}/${PORTNAME}
USES= gmake tar:tgz
MAKEFILE= makefile
-OPTIONS_DEFINE= DOCS EXAMPLES
+OPTIONS_DEFINE= EXAMPLES
post-patch:
@${REINPLACE_CMD} -E \
@@ -26,42 +27,8 @@ post-patch:
@${REINPLACE_CMD} -e 's|sinl|Sin|g' ${WRKSRC}/src/aux0/trigrec.h
@${REINPLACE_CMD} -e 's|sinl|sin|g' ${WRKSRC}/src/fht/hartleyshift.h
-post-install:
- ${MKDIR} ${STAGEDIR}${DOCSDIR}
+post-install-EXAMPLES-on:
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
(cd ${WRKSRC}/demo && ${COPYTREE_SHARE} \* ${STAGEDIR}${EXAMPLESDIR}/)
-plist:
- @truncate -s0 pkg-plist
- @${ECHO_CMD} "lib/libfxt.a" >> pkg-plist
-
-#
-# Includes
-#
- @${FIND} ${PREFIX}/include/fxt/ ! -type d | \
- ${SED} 's,^${PREFIX}/,,' >> pkg-plist
- @${FIND} ${PREFIX}/include/fxt/ -type d | ${SORT} -r | \
- ${SED} 's,^${PREFIX}/,@dirrm ,' >> pkg-plist
-
-#
-# Examples
-#
- @${FIND} ${EXAMPLESDIR}/ ! -type d | \
- ${SED} 's,^${EXAMPLESDIR},%%PORTDOCS%%%%EXAMPLESDIR%%,' \
- >> pkg-plist
- @${FIND} ${EXAMPLESDIR}/ -type d | ${SORT} -r | \
- ${SED} -E -e \
- 's,^${EXAMPLESDIR}(.*),%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%\1,' \
- >> pkg-plist
-
-#
-# Docs
-#
- @${FIND} ${DOCSDIR}/ ! -type d | \
- ${SED} 's,^${DOCSDIR},%%PORTDOCS%%%%DOCSDIR%%,' >> pkg-plist
- @${FIND} ${DOCSDIR}/ -type d | ${SORT} -r | \
- ${SED} -E -e \
- 's,^${DOCSDIR}(.*),%%PORTDOCS%%@dirrm %%DOCSDIR%%\1,' \
- >> pkg-plist
-
.include <bsd.port.mk>
diff --git a/math/fxt/pkg-plist b/math/fxt/pkg-plist
index 06edc9257c6e..9a5062d7629c 100644
--- a/math/fxt/pkg-plist
+++ b/math/fxt/pkg-plist
@@ -1727,4 +1727,3 @@ lib/libfxt.a
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/sort/unique-demo.cc
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/sort/unique-out.txt
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/topics.txt
-%%PORTDOCS%%@dir %%DOCSDIR%%