aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorwg <wg@FreeBSD.org>2013-11-08 21:46:09 +0800
committerwg <wg@FreeBSD.org>2013-11-08 21:46:09 +0800
commit349f9ad445064e91704c1ffadd690e7bbc8b8caa (patch)
tree459cffa16fd9e92600789d84fe0f8d1b646f1c4d /devel
parent3d0e78909ce21988a879d7169985b994e31bb7df (diff)
downloadfreebsd-ports-gnome-349f9ad445064e91704c1ffadd690e7bbc8b8caa.tar.gz
freebsd-ports-gnome-349f9ad445064e91704c1ffadd690e7bbc8b8caa.tar.zst
freebsd-ports-gnome-349f9ad445064e91704c1ffadd690e7bbc8b8caa.zip
devel/dmalloc: fix static libraries
- Fix static libraries (do not strip) - Allow staging (cheating prefix, unsupported DESTDIR) - Use options ng for DOCS PR: ports/183773 Reported by: Paul Koch <paul.koch137 gmail.com>
Diffstat (limited to 'devel')
-rw-r--r--devel/dmalloc/Makefile28
1 files changed, 18 insertions, 10 deletions
diff --git a/devel/dmalloc/Makefile b/devel/dmalloc/Makefile
index 0e5d83985313..5b9c8b53c637 100644
--- a/devel/dmalloc/Makefile
+++ b/devel/dmalloc/Makefile
@@ -11,28 +11,36 @@ EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
COMMENT= Portable debug memory allocation library
-GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --enable-threads --enable-shlib
-CFLAGS+= -fPIC
+HAS_CONFIGURE= yes
+CONFIGURE_ARGS= --enable-threads --enable-shlib --prefix="${STAGEDIR}${PREFIX}"
+CONFIGURE_ENV= INSTALL_PROGRAM="${INSTALL_DATA}"
+CFLAGS= -fPIC
USE_LDCONFIG= yes
MAKE_JOBS_UNSAFE= yes
ALL_TARGET= all heavy
INSTALL_TARGET= install
-.if !defined(NOPORTDOCS)
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MDOCS}
INSTALL_TARGET+=installdocs
.endif
-NO_STAGE= yes
pre-patch:
@${REINPLACE_CMD} -e 's|\.@shlibext@|\.@shlibext@.1|' ${WRKSRC}/Makefile.in
post-install:
- @(cd ${PREFIX}/lib; \
- ${LN} -sf ${PREFIX}/lib/libdmalloc.so.1 ${PREFIX}/lib/libdmalloc.so; \
- ${LN} -sf ${PREFIX}/lib/libdmallocxx.so.1 ${PREFIX}/lib/libdmallocxx.so; \
- ${LN} -sf ${PREFIX}/lib/libdmallocth.so.1 ${PREFIX}/lib/libdmallocth.so; \
- ${LN} -sf ${PREFIX}/lib/libdmallocthcxx.so.1 ${PREFIX}/lib/libdmallocthcxx.so)
+ @(cd ${STAGEDIR}${PREFIX}/lib; \
+ ${STRIP_CMD} libdmalloc.so.1; \
+ ${LN} -sf libdmalloc.so.1 libdmalloc.so; \
+ ${STRIP_CMD} libdmallocxx.so.1; \
+ ${LN} -sf libdmallocxx.so.1 libdmallocxx.so; \
+ ${STRIP_CMD} libdmallocth.so.1; \
+ ${LN} -sf libdmallocth.so.1 libdmallocth.so; \
+ ${STRIP_CMD} libdmallocthcxx.so.1; \
+ ${LN} -sf libdmallocthcxx.so.1 libdmallocthcxx.so)
.include <bsd.port.mk>