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
|
2003-07-06 07:59:13 +02:00
|
|
|
PORTVERSION= 6.2
|
2004-05-27 16:12:50 +02:00
|
|
|
PORTREVISION= 2
|
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
|
|
|
|
2002-11-17 15:25:08 +01:00
|
|
|
MAINTAINER= nobutaka@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
|
|
|
|
2004-03-14 07:17:56 +01:00
|
|
|
USE_LIBTOOL_VER= 13
|
2004-05-27 16:12:50 +02:00
|
|
|
USE_GNOME= lthack
|
2002-06-25 20:36:39 +02:00
|
|
|
USE_REINPLACE= yes
|
2001-10-11 14:08:59 +02:00
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
INSTALLS_SHLIB= yes
|
2004-05-24 16:54:56 +02:00
|
|
|
CONFIGURE_ARGS= --prefix=${PREFIX} --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 \
|
|
|
|
PARALLEL_MARK "Parallel-thread marking (faster for SMP)" on
|
2001-10-11 14:08:59 +02:00
|
|
|
|
2004-03-05 13:14:38 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2004-05-27 16:12:50 +02:00
|
|
|
.if defined(WITH_THREADING) && !defined(WITHOUT_THREADING)
|
2004-05-24 16:54:56 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-threads=posix --enable-thread-local-alloc
|
2004-05-27 16:12:50 +02:00
|
|
|
.if defined(WITH_PARALLEL_MARK) && !defined(WITHOUT_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
|
2004-05-27 16:12:50 +02:00
|
|
|
.if defined(WITH_REDIRECT) && !defined(WITHOUT_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
|
2004-05-27 16:12:50 +02:00
|
|
|
.if defined(WITH_FULLDEBUG) && !defined(WITHOUT_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
|
|
|
|
|
2004-05-05 14:47:25 +02:00
|
|
|
.if ${ARCH} != "i386" && ${ARCH} != "alpha" && ${ARCH} != "amd64"
|
|
|
|
BROKEN= "Does not compile on !i386 and !alpha and !amd64"
|
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>
|