3c4f18635e
This port will install only shared libraries with threads support enabled, that will allow for easy dependency handling for ports that required libgc build with specific features and will allow to avoid hacks of building own version of libgc library.
66 lines
1.8 KiB
Makefile
66 lines
1.8 KiB
Makefile
# New ports collection makefile for: boehm-gc-redirect
|
|
# Date created: 12/17/2009
|
|
# Whom: stas
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= boehm-gc
|
|
PORTVERSION= 7.1
|
|
CATEGORIES= devel
|
|
MASTER_SITES= http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/
|
|
PKGNAMESUFFIX= -${GC_VARIANT}
|
|
DISTNAME= gc-${PORTVERSION:S/.a/alpha/}
|
|
|
|
MAINTAINER= stas@FreeBSD.org
|
|
COMMENT= Garbage collection and memory leak detection for C and C++
|
|
|
|
RUN_DEPENDS= ${PREFIX}/include/gc/gc.h:${PORTSDIR}/devel/boehm-gc
|
|
|
|
GNU_CONFIGURE= yes
|
|
USE_GNOME= gnometarget
|
|
USE_LDCONFIG= yes
|
|
CONFIGURE_ARGS= --enable-cplusplus --disable-static --enable-threads=posix \
|
|
--enable-thread-local-alloc
|
|
CONFIGURE_ENV= CFLAGSS="${CFLAGS} LIBS="${LIBS}
|
|
MAKE_JOBS_UNSAFE= yes
|
|
INSTLIBS= cord gc gccpp
|
|
GC_VARIANT= threaded
|
|
SOVER= 1
|
|
|
|
OPTIONS= PARALLEL_MARK "Parallel-thread marking (faster for SMP)" off \
|
|
FULLDEBUG "Debugging support (see documentation)" off
|
|
|
|
PLIST_FILES= ${INSTLIBS:S,^,lib/lib,g:S,$,-${GC_VARIANT}.so.${SOVER},g} \
|
|
${INSTLIBS:S,^,lib/lib,g:S,$,-${GC_VARIANT}.so,g}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${ARCH} == "ia64"
|
|
BROKEN= Does not compile on ia64
|
|
.endif
|
|
|
|
.if defined(WITH_PARALLEL_MARK)
|
|
CONFIGURE_ARGS+= --enable-parallel-mark
|
|
.endif
|
|
|
|
.if defined(WITH_FULLDEBUG)
|
|
CONFIGURE_ARGS+= --enable-gc-debug
|
|
PKGNAMESUFFIX:= ${PKGNAMESUFFIX}+fulldebug
|
|
.endif
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -E -e 's,libgc\.la,libgc-${GC_VARIANT}.la,g' \
|
|
-e 's,libgccpp\.la,libgccpp-${GC_VARIANT}.la,g' \
|
|
-e 's,libcord\.la,libcord-${GC_VARIANT}.la,g' \
|
|
${WRKSRC}/Makefile.in
|
|
|
|
do-install:
|
|
.for LIB in ${INSTLIBS}
|
|
${INSTALL_DATA} ${WRKSRC}/.libs/lib${LIB}-${GC_VARIANT}.so.${SOVER} \
|
|
${PREFIX}/lib/lib${LIB}-${GC_VARIANT}.so.${SOVER}
|
|
@(cd ${PREFIX}/lib && ${LN} -s lib${LIB}-${GC_VARIANT}.so.${SOVER} \
|
|
lib${LIB}-${GC_VARIANT}.so)
|
|
.endfor
|
|
|
|
.include <bsd.port.post.mk>
|