diff options
Diffstat (limited to 'devel/boehm-gc')
-rw-r--r-- | devel/boehm-gc/Makefile | 8 | ||||
-rw-r--r-- | devel/boehm-gc/options.mk | 21 |
2 files changed, 24 insertions, 5 deletions
diff --git a/devel/boehm-gc/Makefile b/devel/boehm-gc/Makefile index 27374be8f2d..750533094cc 100644 --- a/devel/boehm-gc/Makefile +++ b/devel/boehm-gc/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.62 2008/05/22 11:45:25 wiz Exp $ +# $NetBSD: Makefile,v 1.63 2009/08/11 18:04:48 minskim Exp $ DISTNAME= gc-7.1 PKGNAME= ${DISTNAME:S/gc/boehm-gc/} @@ -27,10 +27,6 @@ TEST_TARGET= check .include "../../mk/bsd.prefs.mk" -.if ${OPSYS} != "Darwin" -CONFIGURE_ARGS+= --disable-threads -.endif - .if !empty(EXTRACT_USING:Mpax) EXTRACT_ELEMENTS= -u .endif @@ -39,6 +35,8 @@ EXTRACT_ELEMENTS= -u CFLAGS+= -D__MIPSEL__ .endif +.include "options.mk" + post-install: ${INSTALL_MAN} ${WRKSRC}/doc/gc.man ${DESTDIR}${PREFIX}/${PKGMANDIR}/man3/gc.3 diff --git a/devel/boehm-gc/options.mk b/devel/boehm-gc/options.mk new file mode 100644 index 00000000000..e9e225f3fc8 --- /dev/null +++ b/devel/boehm-gc/options.mk @@ -0,0 +1,21 @@ +# $NetBSD: options.mk,v 1.1 2009/08/11 18:04:48 minskim Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.boehm-gc +PKG_SUPPORTED_OPTIONS= threads + +.include "../../mk/bsd.prefs.mk" + +.if ${OPSYS} == "Darwin" +PKG_SUGGESTED_OPTIONS= threads +.endif + +.include "../../mk/bsd.options.mk" + +### +### threads support +### +.if !empty(PKG_OPTIONS:Mthreads) +.include "../../mk/pthread.buildlink3.mk" +.else +CONFIGURE_ARGS+= --disable-threads +.endif |