2000-12-26 05:36:52 +00:00
|
|
|
# New ports collection makefile for: dmalloc
|
|
|
|
# Date created: 7 December 2000
|
|
|
|
# Whom: Jeremy Shaffner <jeremy@external.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= dmalloc
|
2004-02-23 17:50:06 +00:00
|
|
|
PORTVERSION= 5.3.0
|
2001-01-16 17:33:20 +00:00
|
|
|
CATEGORIES= devel
|
2000-12-26 05:36:52 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= dmalloc
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
|
|
|
MAINTAINER= jeremy@external.org
|
2003-02-21 11:23:04 +00:00
|
|
|
COMMENT= Portable debug memory allocation library
|
2000-12-26 05:36:52 +00:00
|
|
|
|
2003-08-05 18:21:58 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2004-02-08 21:06:55 +00:00
|
|
|
CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2003-08-05 18:21:58 +00:00
|
|
|
CONFIGURE_ARGS= --enable-threads --enable-shlib
|
2004-02-08 21:06:55 +00:00
|
|
|
CFLAGS+= -fPIC
|
|
|
|
USE_REINPLACE= yes
|
|
|
|
INSTALLS_SHLIB= yes
|
2000-12-26 05:36:52 +00:00
|
|
|
|
2003-08-05 18:21:58 +00:00
|
|
|
ALL_TARGET= all heavy
|
|
|
|
INSTALL_TARGET= install
|
2004-02-08 21:06:55 +00:00
|
|
|
|
|
|
|
INFO= dmalloc
|
|
|
|
|
2003-08-05 18:21:58 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
INSTALL_TARGET+=installdocs installinfo
|
|
|
|
.endif
|
2000-12-26 05:36:52 +00:00
|
|
|
|
|
|
|
pre-patch:
|
2002-11-04 03:05:48 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
|
2003-08-05 18:21:58 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|\.so|\.so.1|' ${WRKSRC}/Makefile.in
|
2000-12-26 05:36:52 +00:00
|
|
|
|
|
|
|
post-install:
|
2003-08-05 18:21:58 +00:00
|
|
|
@(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)
|
|
|
|
.if !defined(NOPORTDOCS)
|
2000-12-26 05:36:52 +00:00
|
|
|
@install-info ${PREFIX}/info/dmalloc.info ${PREFIX}/info/dir
|
2003-08-05 18:21:58 +00:00
|
|
|
.endif
|
2000-12-26 05:36:52 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|