diff options
author | jylefort <jylefort@FreeBSD.org> | 2005-07-30 00:47:31 +0800 |
---|---|---|
committer | jylefort <jylefort@FreeBSD.org> | 2005-07-30 00:47:31 +0800 |
commit | 9f1fd5ee84211c030fa432400ce2d4ca013425d7 (patch) | |
tree | bff58932e3d9871421a55908dae650f9889c534f /devel/ccmalloc/Makefile | |
parent | ac4ec2756c7c712754e2fc50ff19521ec5ab8895 (diff) | |
download | freebsd-ports-gnome-9f1fd5ee84211c030fa432400ce2d4ca013425d7.tar.gz freebsd-ports-gnome-9f1fd5ee84211c030fa432400ce2d4ca013425d7.tar.zst freebsd-ports-gnome-9f1fd5ee84211c030fa432400ce2d4ca013425d7.zip |
- Update to 0.4.0 [1]
- Respect ${CC}, ${CFLAGS}, ${CXX} and ${CXXFLAGS}
- Fix the packing list when ${CXX} != g++
- Use ${PREFIX} rather than /usr/local in pkg-message, and reword it
- Refactor patches as ${REINPLACE_CMD} invocations
[1]:
PR: ports/84285
Submitted by: Daniel Blankensteiner <db@trunet.dk>
Diffstat (limited to 'devel/ccmalloc/Makefile')
-rw-r--r-- | devel/ccmalloc/Makefile | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/devel/ccmalloc/Makefile b/devel/ccmalloc/Makefile index 8bf401b6ebe9..5a037eda446a 100644 --- a/devel/ccmalloc/Makefile +++ b/devel/ccmalloc/Makefile @@ -6,29 +6,34 @@ # PORTNAME= ccmalloc -PORTVERSION= 0.3.9 -PORTREVISION= 2 +PORTVERSION= 0.4.0 CATEGORIES= devel -MASTER_SITES= http://www2.inf.ethz.ch/personal/biere/projects/ccmalloc/ +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_PERL5= yes +USE_REINPLACE= yes USE_GMAKE= yes HAS_CONFIGURE= yes CONFIGURE_ARGS= --prefix=${PREFIX} -CC= gcc -g -Wall -CXX= g++ +SUB_FILES= pkg-message +PLIST_SUB= CXX="${CXX}" .include <bsd.port.pre.mk> -.if ${OSVERSION} > 500000 -EXTRA_PATCHES= ${FILESDIR}/patch5-configure + +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} pkg-message + @${CAT} ${PKGMESSAGE} .include <bsd.port.post.mk> |