pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/misc/nxtvepg - Always linking with a threading library...
details: https://anonhg.NetBSD.org/pkgsrc/rev/6b624fcd1636
branches: trunk
changeset: 471746:6b624fcd1636
user: tron <tron%pkgsrc.org@localhost>
date: Tue Mar 30 18:48:44 2004 +0000
description:
- Always linking with a threading library because Tcl/Tk 8.4.x needs it.
- Use buildlink3 framework.
diffstat:
misc/nxtvepg/Makefile | 21 +++++++++++----------
1 files changed, 11 insertions(+), 10 deletions(-)
diffs (42 lines):
diff -r 1e6ef91d0e58 -r 6b624fcd1636 misc/nxtvepg/Makefile
--- a/misc/nxtvepg/Makefile Tue Mar 30 18:37:37 2004 +0000
+++ b/misc/nxtvepg/Makefile Tue Mar 30 18:48:44 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.34 2004/03/22 03:34:35 kristerw Exp $
+# $NetBSD: Makefile,v 1.35 2004/03/30 18:48:44 tron Exp $
DISTNAME= nxtvepg-2.6.0
PKGREVISION= 1
@@ -16,16 +16,17 @@
USE_PERL5= yes
USE_GNU_TOOLS+= make
USE_X11= yes
-USE_BUILDLINK2= yes
+USE_BUILDLINK3= yes
+
+.include "../../mk/pthread.buildlink3.mk"
-.include "../../mk/pthread.buildlink2.mk"
-PTHREAD_OPTS=native #only native threads work
-.if defined(PTHREAD_TYPE) && (${PTHREAD_TYPE} == "native")
-CFLAGS+=-DUSE_THREADS=1
-LDFLAGS+=-pthread
-MAKE_ENV+=WANT_THREADS=1
+# Only native threads work.
+.if ${PTHREAD_TYPE} == "native"
+CFLAGS+= -DUSE_THREADS=1
+MAKE_ENV+= WANT_THREADS=1
.endif
-
+# Required for Tcl/Tk 8.4
+LDFLAGS+= ${BUILDLINK_LDADD.pthread}
pre-configure:
cd ${WRKSRC}; \
@@ -37,5 +38,5 @@
# cd ${WRKSRC}; \
# ${GMAKE} depend
-.include "../../x11/tk/buildlink2.mk"
+.include "../../x11/tk/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
Home |
Main Index |
Thread Index |
Old Index