diff options
author | magick <magick@pkgsrc.org> | 2003-04-06 19:41:09 +0000 |
---|---|---|
committer | magick <magick@pkgsrc.org> | 2003-04-06 19:41:09 +0000 |
commit | f0ee341a2b3751b5afb4a83952b041b6cdb973fc (patch) | |
tree | 1105013bb14e521b332ac662e6a7580a960d8c02 /misc/nxtvepg | |
parent | e3090021850082d08fe101d39cde1ef216e0d616 (diff) | |
download | pkgsrc-f0ee341a2b3751b5afb4a83952b041b6cdb973fc.tar.gz |
Use thrads only on systems with native threads. Pth didnt work and
nxtvepg is able to use processes instead which works well, too.
Diffstat (limited to 'misc/nxtvepg')
-rw-r--r-- | misc/nxtvepg/Makefile | 13 | ||||
-rw-r--r-- | misc/nxtvepg/files/Makefile.netbsd | 10 |
2 files changed, 16 insertions, 7 deletions
diff --git a/misc/nxtvepg/Makefile b/misc/nxtvepg/Makefile index a762e2fa1e7..377dfb2ce10 100644 --- a/misc/nxtvepg/Makefile +++ b/misc/nxtvepg/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.23 2003/04/06 18:27:42 magick Exp $ +# $NetBSD: Makefile,v 1.24 2003/04/06 19:41:09 magick Exp $ DISTNAME= nxtvepg-2.5.0 @@ -15,8 +15,17 @@ ONLY_FOR_PLATFORM= NetBSD-1.4[Y-Z]-* NetBSD-1.4Z[A-Z]-* \ USE_PERL5= yes USE_GMAKE= yes USE_X11= yes -USE_X11BASE= yes USE_BUILDLINK2= yes + +.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 +.endif + + pre-configure: ${CP} ${FILESDIR}/Makefile.netbsd ${WRKSRC}/ cd ${WRKSRC}; \ diff --git a/misc/nxtvepg/files/Makefile.netbsd b/misc/nxtvepg/files/Makefile.netbsd index 0a87bb70d00..5067c7ff338 100644 --- a/misc/nxtvepg/files/Makefile.netbsd +++ b/misc/nxtvepg/files/Makefile.netbsd @@ -43,7 +43,7 @@ LDLIBS = -L$(LOCALBASE)/lib\ INCS += -I$(LOCALBASE)/include/tcl$(TCL_VER)\ -I$(LOCALBASE)/include/tk$(TCL_VER) -WANT_THREADS = 1 # uncomment to force process based implementation +#WANT_THREADS = 1 # uncomment to force process based implementation PTHREAD = -pthread @@ -78,10 +78,10 @@ DEFS += -DTK_LIBRARY_PATH=\"$(TK_LIBRARY_BASE)/tk$(TCL_VER)\" DEFS += -DTCL_LIBRARY_PATH=\"$(TK_LIBRARY_BASE)/tcl$(TCL_VER)\" # enable use of multi-threading -ifdef WANT_THREADS - DEFS += -DUSE_THREADS - LDLIBS += $(PTHREAD) -endif +#ifdef WANT_THREADS +# DEFS += -DUSE_THREADS +# LDLIBS += $(PTHREAD) +#endif # enable use of daemon and client/server connection DEFS += -DUSE_DAEMON |