aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2015-12-21 00:59:26 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2015-12-21 00:59:26 +0800
commit745b089437e353677fa13f5b7b072a90fa0d854d (patch)
tree630f1daa65e7d2c133b194239883b0f0eb62f749 /misc
parent04ad937292ee5819241a65643f51babcd1bc17b8 (diff)
downloadfreebsd-ports-gnome-745b089437e353677fa13f5b7b072a90fa0d854d.tar.gz
freebsd-ports-gnome-745b089437e353677fa13f5b7b072a90fa0d854d.tar.zst
freebsd-ports-gnome-745b089437e353677fa13f5b7b072a90fa0d854d.zip
- Switch to options helpers
- Use proper command for library installation
Diffstat (limited to 'misc')
-rw-r--r--misc/gctpc/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/misc/gctpc/Makefile b/misc/gctpc/Makefile
index 0ce9471e9252..1c9abea9f4f7 100644
--- a/misc/gctpc/Makefile
+++ b/misc/gctpc/Makefile
@@ -12,8 +12,6 @@ COMMENT= USGS General Cartographic Transformation Package (GCTP)
BROKEN= unfetchable
-OPTIONS_DEFINE= DOCS
-
WRKSRC= ${WRKDIR}/${PORTNAME}/source
USES= gmake tar:Z
@@ -21,16 +19,20 @@ ALL_TARGET= libgctpc.so.1
USE_LDCONFIG= yes
MAKE_JOBS_UNSAFE= yes
+OPTIONS_DEFINE= DOCS
+
post-extract:
@${FIND} ${FILESDIR} -name "*.h" -not -name "patch-*" -exec \
${INSTALL_DATA} {} ${WRKSRC} \;
do-install:
${INSTALL_DATA} ${WRKSRC}/libgctpc.a ${STAGEDIR}${PREFIX}/lib
- ${INSTALL_PROGRAM} ${WRKSRC}/libgctpc.so.1 ${STAGEDIR}${PREFIX}/lib
+ ${INSTALL_LIB} ${WRKSRC}/libgctpc.so.1 ${STAGEDIR}${PREFIX}/lib
${LN} -sf libgctpc.so.1 ${STAGEDIR}${PREFIX}/lib/libgctpc.so
${MKDIR} ${STAGEDIR}${PREFIX}/include/gctpc
${INSTALL_DATA} ${WRKSRC}/*.h ${STAGEDIR}${PREFIX}/include/gctpc
+
+do-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/../doc/* ${STAGEDIR}${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/../README ${STAGEDIR}${DOCSDIR}/README.main