1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-22 00:35:15 +00:00
freebsd-ports/devel/boehm-gc/Makefile

52 lines
1.1 KiB
Makefile

# Created by: Mike McGaughey <mmcg@cs.monash.edu.au>
# $FreeBSD$
PORTNAME= boehm-gc
PORTVERSION= 7.1
PORTREVISION= 0
CATEGORIES= devel
MASTER_SITES= http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/
DISTNAME= gc-${PORTVERSION:S/.a/alpha/}
MAINTAINER= ports@FreeBSD.org
COMMENT= Garbage collection and memory leak detection for C and C++
GNU_CONFIGURE= yes
USES= pathfix
USE_LDCONFIG= yes
CONFIGURE_ARGS= --enable-cplusplus --disable-static --disable-threads
MAKE_JOBS_UNSAFE= yes
OPTIONS_DEFINE= DEBUG
NO_STAGE= yes
.include <bsd.port.pre.mk>
.if ${PORT_OPTIONS:MDEBUG}
CONFIGURE_ARGS+= --enable-gc-debug
PKGNAMESUFFIX:= ${PKGNAMESUFFIX}+fulldebug
.endif
MAN3= gc.3
.if ${ARCH} == "ia64"
BROKEN= Does not compile on ia64
.endif
post-patch:
@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/doc/gc.man
#
# Get rid of .la and static library files
#
post-configure:
@${REINPLACE_CMD} -E -e \
'/Install the pseudo-library/,/staticlibs=/s,^,#,' ${WRKSRC}/libtool
post-install:
${INSTALL_MAN} ${WRKSRC}/doc/gc.man ${PREFIX}/man/man3/gc.3
test: build
cd ${WRKSRC} && ${MAKE} check
.include <bsd.port.post.mk>