2010-11-15 19:45:56 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.42 2010/11/15 19:45:56 espie Exp $
|
1999-04-19 21:34:05 +00:00
|
|
|
# $FreeBSD: Makefile,v 1.4 1999/01/10 20:12:06 steve Exp $
|
|
|
|
|
2008-07-01 09:43:19 +00:00
|
|
|
COMMENT-main= garbage collection and memory leak detection for C and C++
|
|
|
|
COMMENT-atomic= access to hardware provided atomic memory operations
|
2001-05-06 00:12:42 +00:00
|
|
|
|
2007-07-14 22:16:16 +00:00
|
|
|
VERSION= 7.0
|
|
|
|
DISTNAME= gc-${VERSION}
|
2008-07-01 09:43:19 +00:00
|
|
|
PKGNAME-atomic= libatomic_ops-1.2
|
2010-11-15 19:45:56 +00:00
|
|
|
PKGNAME-main= boehm-gc-${VERSION}
|
|
|
|
REVISION = 3
|
2008-07-01 09:43:19 +00:00
|
|
|
|
|
|
|
MULTI_PACKAGES= -main -atomic
|
2007-07-14 22:16:16 +00:00
|
|
|
|
2008-04-01 17:41:13 +00:00
|
|
|
SHARED_LIBS += gc 3.0 # .1.2
|
|
|
|
SHARED_LIBS += cord 2.3 # .1.3
|
2006-01-06 14:42:59 +00:00
|
|
|
|
1999-04-19 21:34:05 +00:00
|
|
|
CATEGORIES= devel
|
2007-07-14 22:16:16 +00:00
|
|
|
|
2002-08-27 15:41:30 +00:00
|
|
|
MASTER_SITES= ${HOMEPAGE}gc_source/
|
1999-10-06 19:00:29 +00:00
|
|
|
|
2002-08-27 15:41:30 +00:00
|
|
|
HOMEPAGE= http://www.hpl.hp.com/personal/Hans_Boehm/gc/
|
1999-04-19 21:34:05 +00:00
|
|
|
|
2002-09-12 14:18:56 +00:00
|
|
|
MAINTAINER= Todd T. Fries <todd@openbsd.org>
|
1999-04-19 21:34:05 +00:00
|
|
|
|
2008-04-01 17:41:13 +00:00
|
|
|
# currently works only on most ELF archs
|
2010-02-09 12:18:45 +00:00
|
|
|
NOT_FOR_ARCHS= m68k m88k vax mips64 mips64el
|
2003-10-16 13:56:28 +00:00
|
|
|
|
2000-02-16 10:52:08 +00:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2000-02-12 06:29:49 +00:00
|
|
|
|
2000-02-16 10:52:08 +00:00
|
|
|
MAKE_ENV= CP="cp" \
|
1999-10-06 19:00:29 +00:00
|
|
|
INSTALL_DATA="${INSTALL_DATA}" \
|
|
|
|
INSTALL_MAN="${INSTALL_MAN}"
|
1999-04-19 21:34:05 +00:00
|
|
|
|
2006-01-06 14:42:59 +00:00
|
|
|
USE_LIBTOOL= Yes
|
2010-10-18 17:47:50 +00:00
|
|
|
USE_GROFF = Yes
|
2003-10-15 12:58:11 +00:00
|
|
|
|
2008-04-01 17:41:13 +00:00
|
|
|
AUTOCONF_VERSION= 2.61
|
|
|
|
CONFIGURE_STYLE= autoconf no-autoheader
|
2002-03-01 03:49:08 +00:00
|
|
|
|
2008-04-01 17:41:13 +00:00
|
|
|
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
|
|
|
|
--enable-threads=pthreads
|
1999-10-06 19:00:29 +00:00
|
|
|
|
2006-02-08 04:54:48 +00:00
|
|
|
pre-configure:
|
2008-04-01 17:41:13 +00:00
|
|
|
@perl -pi -e "s,/usr/local,${PREFIX},g" ${WRKSRC}/doc/gc.man
|
2002-08-27 15:41:30 +00:00
|
|
|
|
2008-07-01 09:43:19 +00:00
|
|
|
# clean distributed objects and libs and rebuild
|
|
|
|
pre-build:
|
|
|
|
@cd ${WRKBUILD}/libatomic_ops && ${SETENV} ${MAKE_ENV} \
|
|
|
|
${MAKE_PROGRAM} ${MAKE_FLAGS} clean all
|
|
|
|
|
2005-09-05 11:41:56 +00:00
|
|
|
aliases= malloc malloc_atomic free realloc enable_incremental \
|
|
|
|
register_finalizer malloc_ignore_off_page \
|
|
|
|
malloc_atomic_ignore_off_page set_warn_proc
|
2007-07-14 22:16:16 +00:00
|
|
|
|
2002-08-27 15:41:30 +00:00
|
|
|
post-install:
|
2008-07-01 09:43:19 +00:00
|
|
|
@cd ${WRKBUILD}/libatomic_ops && ${SETENV} ${MAKE_ENV} \
|
|
|
|
${MAKE_PROGRAM} ${ALL_FAKE_FLAGS} install
|
2002-08-27 15:41:30 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/gc.man ${PREFIX}/man/man3/gc.3
|
2005-09-05 11:41:56 +00:00
|
|
|
.for i in ${aliases}
|
|
|
|
ln -s gc.3 ${PREFIX}/man/man3/GC_$i.3
|
|
|
|
.endfor
|
1999-04-19 21:34:05 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|