2015-06-27 13:21:29 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.59 2015/06/27 13:21:29 jasper Exp $
|
1999-04-19 21:34:05 +00:00
|
|
|
|
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
|
|
|
|
2014-07-09 14:31:10 +00:00
|
|
|
VERSION= 7.4.2
|
|
|
|
LIBAO_VERSION= 7.4.0
|
|
|
|
|
2007-07-14 22:16:16 +00:00
|
|
|
DISTNAME= gc-${VERSION}
|
2014-07-09 14:31:10 +00:00
|
|
|
|
|
|
|
PKGNAME-atomic= libatomic_ops-${LIBAO_VERSION}
|
2010-11-15 19:45:56 +00:00
|
|
|
PKGNAME-main= boehm-gc-${VERSION}
|
2015-05-22 11:31:10 +00:00
|
|
|
REVISION-atomic=0
|
|
|
|
REVISION-main= 0
|
2008-07-01 09:43:19 +00:00
|
|
|
|
2014-07-09 14:31:10 +00:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
|
|
|
|
libatomic_ops-${LIBAO_VERSION}${EXTRACT_SUFX}
|
|
|
|
|
2008-07-01 09:43:19 +00:00
|
|
|
MULTI_PACKAGES= -main -atomic
|
2007-07-14 22:16:16 +00:00
|
|
|
|
2014-07-09 14:31:10 +00:00
|
|
|
SHARED_LIBS += gc 4.0 # 1.3
|
|
|
|
SHARED_LIBS += gccpp 0.0 # 1.3
|
|
|
|
SHARED_LIBS += cord 2.3 # 1.3
|
|
|
|
SHARED_LIBS += atomic_ops 1.3 # 1.3
|
|
|
|
SHARED_LIBS += atomic_ops_gpl 1.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
|
|
|
|
2014-05-28 04:53:55 +00:00
|
|
|
HOMEPAGE= http://hboehm.info/gc/
|
1999-04-19 21:34:05 +00:00
|
|
|
|
2008-04-01 17:41:13 +00:00
|
|
|
# currently works only on most ELF archs
|
2015-06-27 13:21:29 +00:00
|
|
|
NOT_FOR_ARCHS= m88k vax
|
2003-10-16 13:56:28 +00:00
|
|
|
|
2000-02-16 10:52:08 +00:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
2000-02-12 06:29:49 +00:00
|
|
|
|
2014-07-09 14:31:10 +00:00
|
|
|
WANTLIB-main += m pthread stdc++
|
2012-12-21 12:50:14 +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
|
|
|
|
2014-07-25 20:24:51 +00:00
|
|
|
CONFIGURE_STYLE= gnu
|
2002-03-01 03:49:08 +00:00
|
|
|
|
2008-04-01 17:41:13 +00:00
|
|
|
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
|
2013-07-03 19:51:38 +00:00
|
|
|
--with-libatomic-ops=no \
|
2013-06-01 21:05:28 +00:00
|
|
|
--enable-cplusplus \
|
2008-04-01 17:41:13 +00:00
|
|
|
--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
|
2014-07-09 14:31:10 +00:00
|
|
|
@mv ${WRKDIR}/libatomic_ops-${LIBAO_VERSION} ${WRKBUILD}/libatomic_ops
|
2002-08-27 15:41:30 +00:00
|
|
|
|
2008-07-01 09:43:19 +00:00
|
|
|
pre-build:
|
2014-07-25 20:24:51 +00:00
|
|
|
# no rule to get .lo from .S in subdirectory
|
|
|
|
@ln -s src/sparc_mach_dep.S ${WRKSRC}
|
|
|
|
# clean distributed objects and libs and rebuild
|
2008-07-01 09:43:19 +00:00
|
|
|
@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>
|