summaryrefslogtreecommitdiff
path: root/devel/glib2
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2002-09-10 19:50:36 +0000
committerjlam <jlam@pkgsrc.org>2002-09-10 19:50:36 +0000
commit2adb61bc4e5e4323065c985dbb2f3fb3f7c8f807 (patch)
tree3a6c364aa85f9fa5b75ce5a8ed1d205add1d9cce /devel/glib2
parentd74686f756b8faae596d7f9780d48dafe426ec57 (diff)
downloadpkgsrc-2adb61bc4e5e4323065c985dbb2f3fb3f7c8f807.tar.gz
USE_PTHREAD died a long time ago; match pthread handling from buildlink.mk
and add the PTL header directory to CPPFLAGS so that the headers for the pthread implementation used by glib2 may be found by other packages.
Diffstat (limited to 'devel/glib2')
-rw-r--r--devel/glib2/buildlink2.mk18
1 files changed, 11 insertions, 7 deletions
diff --git a/devel/glib2/buildlink2.mk b/devel/glib2/buildlink2.mk
index 2c1e42e142c..2674f27db32 100644
--- a/devel/glib2/buildlink2.mk
+++ b/devel/glib2/buildlink2.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink2.mk,v 1.3 2002/09/10 16:06:39 wiz Exp $
+# $NetBSD: buildlink2.mk,v 1.4 2002/09/10 19:50:36 jlam Exp $
.if !defined(GLIB2_BUILDLINK2_MK)
GLIB2_BUILDLINK2_MK= # defined
@@ -17,14 +17,18 @@ BUILDLINK_FILES.glib2+= lib/libgmodule-2.0.*
BUILDLINK_FILES.glib2+= lib/libgobject-2.0.*
BUILDLINK_FILES.glib2+= lib/libgthread-2.0.*
-USE_PTHREAD= native ptl2
+.include "../../converters/libiconv/buildlink.mk"
+.include "../../devel/gettext-lib/buildlink.mk"
+.include "../../devel/pkgconfig/buildlink.mk"
-.include "../../mk/bsd.prefs.mk"
-.include "../../mk/pthread.buildlink2.mk"
+PTHREAD_OPTS+= native
-.include "../../converters/libiconv/buildlink2.mk"
-.include "../../devel/gettext-lib/buildlink2.mk"
-.include "../../devel/pkgconfig/buildlink2.mk"
+.include "../../mk/pthread.buildlink.mk"
+
+.if defined(PTHREAD_TYPE) && (${PTHREAD_TYPE} == "none")
+CPPFLAGS+= -I${BUILDLINK_PREFIX.ptl2}/PTL/include
+. include "../../devel/ptl2/buildlink.mk"
+.endif
BUILDLINK_TARGETS+= glib2-buildlink