2003-04-05 12:47:13 +00:00
|
|
|
# New ports collection makefile for: oaf
|
|
|
|
# Date created: 1st June 2000
|
|
|
|
# Whom: Ade Lovett <ade@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= ccmalloc
|
2005-07-29 16:47:31 +00:00
|
|
|
PORTVERSION= 0.4.0
|
2006-07-11 18:02:39 +00:00
|
|
|
PORTREVISION= 2
|
2003-04-05 12:47:13 +00:00
|
|
|
CATEGORIES= devel
|
2005-07-29 16:47:31 +00:00
|
|
|
MASTER_SITES= http://www.inf.ethz.ch/personal/biere/projects/ccmalloc/
|
2003-04-05 12:47:13 +00:00
|
|
|
|
2005-07-17 20:12:02 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-04-05 12:47:13 +00:00
|
|
|
COMMENT= C/C++ memory profiler and memory leak tracer
|
|
|
|
|
|
|
|
USE_GMAKE= yes
|
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
|
|
|
|
CONFIGURE_ARGS= --prefix=${PREFIX}
|
|
|
|
|
2005-07-29 16:47:31 +00:00
|
|
|
SUB_FILES= pkg-message
|
|
|
|
PLIST_SUB= CXX="${CXX}"
|
2003-04-05 12:47:13 +00:00
|
|
|
|
2006-07-11 18:02:39 +00:00
|
|
|
#PR: 99070
|
|
|
|
CFLAGS+= -O0
|
|
|
|
|
2003-04-12 00:42:11 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
2005-07-29 16:47:31 +00:00
|
|
|
|
2006-04-24 01:25:00 +00:00
|
|
|
.if ${CC} != "cc" || ${CXX} != "c++"
|
|
|
|
BROKEN= Does not build with CC or CXX set
|
|
|
|
.endif
|
|
|
|
|
2005-07-29 16:47:31 +00:00
|
|
|
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
|
2003-04-12 00:42:11 +00:00
|
|
|
.endif
|
2005-07-29 16:47:31 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|-ldl||' ${WRKSRC}/src/ccmalloc.in
|
2003-04-12 00:42:11 +00:00
|
|
|
|
2003-04-05 12:47:13 +00:00
|
|
|
post-install:
|
2005-07-29 16:47:31 +00:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2003-04-05 12:47:13 +00:00
|
|
|
|
2003-04-12 00:42:11 +00:00
|
|
|
.include <bsd.port.post.mk>
|