pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/boehm-gc Add an option to enable thread support ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5e6ab91e74c3
branches:  trunk
changeset: 397410:5e6ab91e74c3
user:      minskim <minskim%pkgsrc.org@localhost>
date:      Tue Aug 11 18:04:48 2009 +0000

description:
Add an option to enable thread support in boehm-gc.

diffstat:

 devel/boehm-gc/Makefile   |   8 +++-----
 devel/boehm-gc/options.mk |  21 +++++++++++++++++++++
 2 files changed, 24 insertions(+), 5 deletions(-)

diffs (54 lines):

diff -r 18a22689613d -r 5e6ab91e74c3 devel/boehm-gc/Makefile
--- a/devel/boehm-gc/Makefile   Tue Aug 11 16:15:54 2009 +0000
+++ b/devel/boehm-gc/Makefile   Tue Aug 11 18:04:48 2009 +0000
@@ -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 @@
 
 .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 @@
 CFLAGS+=               -D__MIPSEL__
 .endif
 
+.include "options.mk"
+
 post-install:
        ${INSTALL_MAN} ${WRKSRC}/doc/gc.man ${DESTDIR}${PREFIX}/${PKGMANDIR}/man3/gc.3
 
diff -r 18a22689613d -r 5e6ab91e74c3 devel/boehm-gc/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/boehm-gc/options.mk Tue Aug 11 18:04:48 2009 +0000
@@ -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



Home | Main Index | Thread Index | Old Index