1996-11-16 02:51:39 +01:00
|
|
|
# New ports collection makefile for: boehm-gc
|
|
|
|
# Date created: 15 November 1996
|
|
|
|
# Whom: Mike McGaughey <mmcg@cs.monash.edu.au>
|
|
|
|
#
|
1999-08-25 07:57:29 +02:00
|
|
|
# $FreeBSD$
|
1996-11-16 02:51:39 +01:00
|
|
|
#
|
|
|
|
|
2000-04-11 23:30:15 +02:00
|
|
|
PORTNAME= boehm-gc
|
2006-09-20 15:33:14 +02:00
|
|
|
PORTVERSION= 6.8
|
|
|
|
PORTREVISION= 0
|
1996-11-16 02:51:39 +01:00
|
|
|
CATEGORIES= devel
|
2001-01-03 21:17:07 +01:00
|
|
|
MASTER_SITES= http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/
|
2003-02-25 13:45:06 +01:00
|
|
|
DISTNAME= gc${PORTVERSION:S/.a/alpha/}
|
1996-11-16 02:51:39 +01:00
|
|
|
|
2006-09-20 15:33:14 +02:00
|
|
|
MAINTAINER= stas@FreeBSD.org
|
2003-02-22 15:25:38 +01:00
|
|
|
COMMENT= Garbage collection and memory leak detection for C and C++
|
2000-04-30 21:13:48 +02:00
|
|
|
|
2007-02-01 03:42:05 +01:00
|
|
|
USE_AUTOTOOLS= libtool:15
|
2005-10-23 02:01:35 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2006-09-20 15:33:14 +02:00
|
|
|
USE_GNOME= gnometarget
|
|
|
|
USE_LDCONFIG= yes
|
|
|
|
CONFIGURE_ARGS= --enable-cplusplus
|
2004-05-27 16:12:50 +02:00
|
|
|
OPTIONS= REDIRECT "Define malloc(3)-family replacements" off \
|
|
|
|
FULLDEBUG "full-debug support (see documentation)" off \
|
|
|
|
THREADING "POSIX thread support" off \
|
2004-06-13 16:28:58 +02:00
|
|
|
PARALLEL_MARK "Parallel-thread marking (faster for SMP)" off
|
2001-10-11 14:08:59 +02:00
|
|
|
|
2004-03-05 13:14:38 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2005-07-15 21:14:36 +02:00
|
|
|
.if defined(WITH_THREADING)
|
2004-05-24 16:54:56 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-threads=posix --enable-thread-local-alloc
|
2005-10-10 15:06:07 +02:00
|
|
|
.if ${OSVERSION} < 502102
|
|
|
|
CONFIGURE_ENV= CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}" \
|
2007-02-05 23:12:46 +01:00
|
|
|
LIBS="${LIBS} ${PTHREAD_LIBS:C/-pthread/-lc_r/}"
|
2005-10-10 15:06:07 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ENV= CFLAGSS="${CFLAGS} ${PTHREAD_CFLAGS}" \
|
2007-02-05 23:12:46 +01:00
|
|
|
LIBS="${LIBS} ${PTHREAD_LIBS:C/-pthread/-lpthread/}"
|
2005-10-10 15:06:07 +02:00
|
|
|
.endif
|
2005-07-15 21:14:36 +02:00
|
|
|
.if defined(WITH_PARALLEL_MARK)
|
2004-05-24 16:54:56 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-parallel-mark
|
|
|
|
.endif
|
2004-05-27 16:12:50 +02:00
|
|
|
PKGNAMESUFFIX= +threaded
|
2004-05-24 16:54:56 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-threads
|
2004-05-27 16:12:50 +02:00
|
|
|
PKGNAMESUFFIX= # empty
|
2004-05-24 16:54:56 +02:00
|
|
|
.endif
|
2005-07-15 21:14:36 +02:00
|
|
|
.if defined(WITH_REDIRECT)
|
2004-05-24 16:54:56 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-redirect-malloc
|
2004-05-27 16:12:50 +02:00
|
|
|
PKGNAMESUFFIX:= ${PKGNAMESUFFIX}+redirect
|
2004-05-24 16:54:56 +02:00
|
|
|
.endif
|
2005-07-15 21:14:36 +02:00
|
|
|
.if defined(WITH_FULLDEBUG)
|
2004-05-24 16:54:56 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-full-debug
|
2004-05-27 16:12:50 +02:00
|
|
|
PKGNAMESUFFIX:= ${PKGNAMESUFFIX}+fulldebug
|
2004-05-24 16:54:56 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
MAN3= gc.3
|
|
|
|
|
2005-06-29 18:29:45 +02:00
|
|
|
.if ${ARCH} == "ia64"
|
|
|
|
BROKEN= "Does not compile on ia64"
|
2004-03-05 13:14:38 +01:00
|
|
|
.endif
|
|
|
|
|
2002-02-02 05:48:28 +01:00
|
|
|
post-patch:
|
2002-06-25 20:36:39 +02:00
|
|
|
@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/doc/gc.man
|
2002-02-02 05:48:28 +01:00
|
|
|
|
2001-10-11 14:08:59 +02:00
|
|
|
post-install:
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/gc.man ${PREFIX}/man/man3/gc.3
|
1996-11-16 02:51:39 +01:00
|
|
|
|
2004-03-05 13:14:38 +01:00
|
|
|
.include <bsd.port.post.mk>
|