Subject: Re: dependency to pthread packages
To: Shin'ichiro TAYA <taya@ba2.so-net.ne.jp>
From: None <itojun@iijlab.net>
List: tech-pkg
Date: 03/26/2002 15:39:05
>There is framework for USE_PTHREADS in pthread.buildlink.mk.
>See devl/glib for example.
does it really work? i've modified pkgsrc/audio/icecast like below
but it does not seem to work.
itojun
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/audio/icecast/Makefile,v
retrieving revision 1.6
diff -u -r1.6 Makefile
--- Makefile 2002/03/18 01:41:31 1.6
+++ Makefile 2002/03/26 06:38:01
@@ -9,7 +9,9 @@
HOMEPAGE= http://www.icecast.org/
COMMENT= Internet broadcasting system using Mpeg Layer III streaming
-DEPENDS+= unproven-pthreads>=0.17:../../devel/unproven-pthreads
+USE_PTHREAD= native unproven-pthreads
+.include "../../mk/bsd.prefs.mk"
+
DEPENDS+= readline-4.*:../../devel/readline
GNU_CONFIGURE= YES
@@ -18,9 +20,5 @@
--with-python \
--with-python-includes=${LOCALBASE}/include \
--with-python-libraries=${LOCALBASE}/lib
-R= ${LOCALBASE}/include/readline
-P= ${LOCALBASE}/pthreads
-CONFIGURE_ENV+= CC='$P/bin/pgcc -I$P/include -I$R -L$P/lib' \
- CXX='$P/bin/pg++ -I$P/include -I$R -L$P/lib'
.include "../../mk/bsd.pkg.mk"