blob: 0ee6edba2512fdd55f40c27dfca55391b74b7286 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# New ports collection makefile for: dmalloc
# Date created: 7 December 2000
# Whom: Jeremy Shaffner <jeremy@external.org>
#
# $FreeBSD$
PORTNAME= dmalloc
PORTVERSION= 5.4.2
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= dmalloc
EXTRACT_SUFX= .tgz
MAINTAINER= jeremy@external.org
COMMENT= Portable debug memory allocation library
GNU_CONFIGURE= yes
CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --enable-threads --enable-shlib
CFLAGS+= -fPIC
USE_REINPLACE= yes
INSTALLS_SHLIB= yes
ALL_TARGET= all heavy
INSTALL_TARGET= install
INFO= dmalloc
.if !defined(NOPORTDOCS)
INSTALL_TARGET+=installdocs installinfo
.endif
pre-patch:
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|\.so|\.so.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)
.if !defined(NOPORTDOCS)
@install-info ${PREFIX}/info/dmalloc.info ${PREFIX}/info/dir
.endif
.include <bsd.port.mk>
|