mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-20 00:21:35 +00:00
a95d629b9d
Submitted by: nork
69 lines
1.8 KiB
Makefile
69 lines
1.8 KiB
Makefile
# New ports collection makefile for: boehm-gc
|
|
# Date created: 15 November 1996
|
|
# Whom: Mike McGaughey <mmcg@cs.monash.edu.au>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= boehm-gc
|
|
PORTVERSION= 6.8
|
|
PORTREVISION= 0
|
|
CATEGORIES= devel
|
|
MASTER_SITES= http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/
|
|
DISTNAME= gc${PORTVERSION:S/.a/alpha/}
|
|
|
|
MAINTAINER= stas@FreeBSD.org
|
|
COMMENT= Garbage collection and memory leak detection for C and C++
|
|
|
|
USE_AUTOTOOLS= libtool:15
|
|
GNU_CONFIGURE= yes
|
|
USE_GNOME= gnometarget
|
|
USE_LDCONFIG= yes
|
|
CONFIGURE_ARGS= --enable-cplusplus
|
|
OPTIONS= REDIRECT "Define malloc(3)-family replacements" off \
|
|
FULLDEBUG "full-debug support (see documentation)" off \
|
|
THREADING "POSIX thread support" off \
|
|
PARALLEL_MARK "Parallel-thread marking (faster for SMP)" off
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if defined(WITH_THREADING)
|
|
CONFIGURE_ARGS+= --enable-threads=posix --enable-thread-local-alloc
|
|
.if ${OSVERSION} < 502102
|
|
CONFIGURE_ENV= CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}" \
|
|
LIBS="${LIBS} ${PTHREAD_LIBS:C/-pthread/-lc_r/}"
|
|
.else
|
|
CONFIGURE_ENV= CFLAGSS="${CFLAGS} ${PTHREAD_CFLAGS}" \
|
|
LIBS="${LIBS} ${PTHREAD_LIBS:C/-pthread/-lpthread/}"
|
|
.endif
|
|
.if defined(WITH_PARALLEL_MARK)
|
|
CONFIGURE_ARGS+= --enable-parallel-mark
|
|
.endif
|
|
PKGNAMESUFFIX= +threaded
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-threads
|
|
PKGNAMESUFFIX= # empty
|
|
.endif
|
|
.if defined(WITH_REDIRECT)
|
|
CONFIGURE_ARGS+= --enable-redirect-malloc
|
|
PKGNAMESUFFIX:= ${PKGNAMESUFFIX}+redirect
|
|
.endif
|
|
.if defined(WITH_FULLDEBUG)
|
|
CONFIGURE_ARGS+= --enable-full-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
|
|
|
|
post-install:
|
|
${INSTALL_MAN} ${WRKSRC}/doc/gc.man ${PREFIX}/man/man3/gc.3
|
|
|
|
.include <bsd.port.post.mk>
|