aboutsummaryrefslogtreecommitdiff
path: root/devel/ccmalloc/Makefile
blob: 79fe6e496446006e1e601aa58bbd63671e5de1f2 (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
# New ports collection makefile for:	oaf
# Date created:				1st June 2000
# Whom:					Ade Lovett <ade@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	ccmalloc
PORTVERSION=	0.4.0
PORTREVISION=	1
CATEGORIES=	devel
MASTER_SITES=	http://www.inf.ethz.ch/personal/biere/projects/ccmalloc/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	C/C++ memory profiler and memory leak tracer

USE_REINPLACE=	yes
USE_GMAKE=	yes
HAS_CONFIGURE=	yes

CONFIGURE_ARGS=	--prefix=${PREFIX}

SUB_FILES=	pkg-message
PLIST_SUB=	CXX="${CXX}"

.include <bsd.port.pre.mk>

post-patch:
	@${REINPLACE_CMD} -e 's|CFLAGS=".*"|CFLAGS="${CFLAGS}"|; \
		s|CXXFLAGS=".*"|CXXFLAGS="${CXXFLAGS}"|' ${WRKSRC}/configure
.if ${OSVERSION} >= 500000
	@${REINPLACE_CMD} -e '/prefix=/ s|expr $$1|expr -- $$1|' \
		${WRKSRC}/configure
.endif
	@${REINPLACE_CMD} -e 's|-ldl||' ${WRKSRC}/src/ccmalloc.in

post-install:
	@${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>