1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-03 01:23:49 +00:00
freebsd-ports/devel/boehm-gc/Makefile
Joe Marcus Clarke 9e5632dd66 Apply a big libtool patch to allow porters to use the libtool installed by
the libtoolX ports instead of the one included with each port.  Ports that
set USE_LIBTOOL_VER=X will now use the ports version of libtool instead of
the included version.  To restore previous behavior, use the new macro,
USE_INC_LIBTOOL_VER.  Both macros accept the same argument: a libtool version.

For example, to use the ports version of libtool-1.5, add the following to
your Makefile:

USE_LIBTOOL_VER=        15

To use the included version of libtool with extra hacks provided by
libtool-1.5, add the following to your Makefile:

USE_INC_LIBTOOL_VER=    15

With this change, ports that had to add additional libtool hacks to prevent
.la files from being installed or to fix certain threading issues can now
delete those hacks (after appropriate testing, of course).

PR:		63944
Based on work by:eik and marcus
Approved by:	ade (autotools maintainer)
Tested by:	kris on pointyhat
Bound to be hidden problems:	You bet
2004-07-09 17:43:11 +00:00

63 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.2
PORTREVISION= 2
CATEGORIES= devel
MASTER_SITES= http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/
DISTNAME= gc${PORTVERSION:S/.a/alpha/}
MAINTAINER= nobutaka@FreeBSD.org
COMMENT= Garbage collection and memory leak detection for C and C++
USE_INC_LIBTOOL_VER= 13
USE_GNOME= lthack
USE_REINPLACE= yes
HAS_CONFIGURE= yes
INSTALLS_SHLIB= yes
CONFIGURE_ARGS= --prefix=${PREFIX} --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) && !defined(WITHOUT_THREADING)
CONFIGURE_ARGS+= --enable-threads=posix --enable-thread-local-alloc
.if defined(WITH_PARALLEL_MARK) && !defined(WITHOUT_PARALLEL_MARK)
CONFIGURE_ARGS+= --enable-parallel-mark
.endif
PKGNAMESUFFIX= +threaded
.else
CONFIGURE_ARGS+= --disable-threads
PKGNAMESUFFIX= # empty
.endif
.if defined(WITH_REDIRECT) && !defined(WITHOUT_REDIRECT)
CONFIGURE_ARGS+= --enable-redirect-malloc
PKGNAMESUFFIX:= ${PKGNAMESUFFIX}+redirect
.endif
.if defined(WITH_FULLDEBUG) && !defined(WITHOUT_FULLDEBUG)
CONFIGURE_ARGS+= --enable-full-debug
PKGNAMESUFFIX:= ${PKGNAMESUFFIX}+fulldebug
.endif
MAN3= gc.3
.if ${ARCH} != "i386" && ${ARCH} != "alpha" && ${ARCH} != "amd64"
BROKEN= "Does not compile on !i386 and !alpha and !amd64"
.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>