pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/cint don't require native threads, deal with the ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/421e031f3bd6
branches:  trunk
changeset: 494874:421e031f3bd6
user:      drochner <drochner%pkgsrc.org@localhost>
date:      Tue May 31 16:40:31 2005 +0000

description:
don't require native threads, deal with the non-thread case instead.
this enables the pkg for NetBSD-1.6
tested by Roland Illig

diffstat:

 lang/cint/Makefile |  11 ++++++++---
 lang/cint/PLIST    |   4 ++--
 2 files changed, 10 insertions(+), 5 deletions(-)

diffs (48 lines):

diff -r a00740d4a7de -r 421e031f3bd6 lang/cint/Makefile
--- a/lang/cint/Makefile        Tue May 31 16:37:30 2005 +0000
+++ b/lang/cint/Makefile        Tue May 31 16:40:31 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2005/05/25 17:48:13 drochner Exp $
+# $NetBSD: Makefile,v 1.16 2005/05/31 16:40:31 drochner Exp $
 
 DISTNAME=              cint5.15
 PKGNAME=               cint-5.15.174
@@ -14,7 +14,13 @@
 DIST_SUBDIR=           ${PKGNAME}
 WRKSRC=                        ${WRKDIR}
 GCC_REQD+=             3.0
-PTHREAD_OPTS+= require native
+PTHREAD_OPTS+= native
+.include "../../mk/pthread.buildlink3.mk"
+.if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} == "native"
+PLIST_SUBST+= HAVE_THR=""
+.else
+PLIST_SUBST+= HAVE_THR="@comment "
+.endif
 
 post-extract:
        ${FIND} -d ${WRKSRC} -type d -name CVS -exec ${RM} -rf {} \;
@@ -43,5 +49,4 @@
        ${CP} -r ${WRKDIR}/lib/prec_stl ${PREFIX}/cint/lib
        ${INSTALL_DATA} ${WRKDIR}/G__ci.h ${PREFIX}/cint
 
-.include "../../mk/pthread.buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r a00740d4a7de -r 421e031f3bd6 lang/cint/PLIST
--- a/lang/cint/PLIST   Tue May 31 16:37:30 2005 +0000
+++ b/lang/cint/PLIST   Tue May 31 16:40:31 2005 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.2 2005/05/02 17:01:34 drochner Exp $
+@comment $NetBSD: PLIST,v 1.3 2005/05/31 16:40:31 drochner Exp $
 bin/cint
 bin/makecint
 cint/G__ci.h
@@ -110,7 +110,7 @@
 cint/include/new.h
 cint/include/ostream
 cint/include/platform.h
-cint/include/pthread.dll
+${HAVE_THR}cint/include/pthread.dll
 cint/include/pthread.h
 cint/include/readfile.h
 cint/include/regex.h



Home | Main Index | Thread Index | Old Index