aboutsummaryrefslogtreecommitdiff
path: root/devel/fib
diff options
context:
space:
mode:
authorJohn Marino <marino@FreeBSD.org>2014-03-01 19:53:44 +0000
committerJohn Marino <marino@FreeBSD.org>2014-03-01 19:53:44 +0000
commit3682efef97c3cd5a573a6db43e927caa783044f4 (patch)
tree6389141baaa27eddcd8e48a85e2b688a86197993 /devel/fib
parentcc9b0de319894aa45fa84a4b08871bf11d1bf621 (diff)
downloadports-3682efef97c3cd5a573a6db43e927caa783044f4.tar.gz
ports-3682efef97c3cd5a573a6db43e927caa783044f4.zip
devel/fib: Honor NO_PROFILE, fix staging and override install target
This port was building and installing the profile library regardless of the NO_PROFILE definition. The installation was a bit of a mess too, and it didn't use the BSD_INSTALL_* values. The previous staging attempt didn't work, at least not on DragonFly, so let's use our own install target to fix all of these issues and honor the NO_PROFILE request at the same time.
Notes
Notes: svn path=/head/; revision=346717
Diffstat (limited to 'devel/fib')
-rw-r--r--devel/fib/Makefile25
-rw-r--r--devel/fib/pkg-plist2
2 files changed, 21 insertions, 6 deletions
diff --git a/devel/fib/Makefile b/devel/fib/Makefile
index 3df91f9d788b..6bb53f192fef 100644
--- a/devel/fib/Makefile
+++ b/devel/fib/Makefile
@@ -3,6 +3,7 @@
PORTNAME= fib
PORTVERSION= 1.1
+PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://resnet.uoregon.edu/~gurney_j/jmpc/dist/
@@ -11,14 +12,28 @@ COMMENT= Fibonacci Heap Library
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
+ALL_TARGET= libfib.a libfib.so.1
+STATIC_INST= libfib.a
MANPAGES= fh_extractmin.3 fh_makeheap.3 fh_makekeyheap.3
-post-install:
- @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libfib.so.1
+.include <bsd.port.pre.mk>
+
+.if defined(NO_PROFILE) || ${OPSYS} == DragonFly
+PLIST_SUB+= PROFILE="@comment "
+.else
+ALL_TARGET+= libfib_p.a
+STATIC_INST+= libfib_p.a
+PLIST_SUB+= PROFILE=""
+.endif
+
+do-install:
+ ${INSTALL_DATA} ${WRKSRC}/fib.h ${STAGEDIR}${PREFIX}/include/
+ ${INSTALL_LIB} ${WRKSRC}/libfib.so.1 ${STAGEDIR}${PREFIX}/lib/
@(cd ${STAGEDIR}${PREFIX}/lib/; ${LN} -sf libfib.so.1 libfib.so)
-.for mf in ${MANPAGES}
- ${INSTALL_MAN} ${WRKSRC}/${mf} ${STAGEDIR}${PREFIX}/man/man3/
-.endfor
+ @(cd ${WRKSRC}; ${INSTALL_DATA} ${STATIC_INST} \
+ ${STAGEDIR}${PREFIX}/lib/)
+ @(cd ${WRKSRC}; ${INSTALL_MAN} ${MANPAGES} \
+ ${STAGEDIR}${PREFIX}/man/man3/)
.include <bsd.port.mk>
diff --git a/devel/fib/pkg-plist b/devel/fib/pkg-plist
index 05c9a3057c07..d125927c8add 100644
--- a/devel/fib/pkg-plist
+++ b/devel/fib/pkg-plist
@@ -2,7 +2,7 @@ include/fib.h
lib/libfib.a
lib/libfib.so
lib/libfib.so.1
-lib/libfib_p.a
+%%PROFILE%%lib/libfib_p.a
man/man3/fh_extractmin.3.gz
man/man3/fh_makeheap.3.gz
man/man3/fh_makekeyheap.3.gz