aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authormarino <marino@FreeBSD.org>2014-03-02 03:53:44 +0800
committermarino <marino@FreeBSD.org>2014-03-02 03:53:44 +0800
commit6f5c185423883bcda0be478117a4f82d46a2104f (patch)
tree6389141baaa27eddcd8e48a85e2b688a86197993 /devel
parent58fb44b27ca4ca088a27e36991b818a3e283368a (diff)
downloadfreebsd-ports-gnome-6f5c185423883bcda0be478117a4f82d46a2104f.tar.gz
freebsd-ports-gnome-6f5c185423883bcda0be478117a4f82d46a2104f.tar.zst
freebsd-ports-gnome-6f5c185423883bcda0be478117a4f82d46a2104f.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.
Diffstat (limited to 'devel')
-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