summaryrefslogtreecommitdiff
path: root/x11/gtk2/Makefile
diff options
context:
space:
mode:
authorjmmv <jmmv>2005-05-08 09:07:08 +0000
committerjmmv <jmmv>2005-05-08 09:07:08 +0000
commit2df6063cb1161b8c656ba789e50a1b93d878ecb8 (patch)
treead3a01d405f58b70e22b1d13cd1acb4222cdb190 /x11/gtk2/Makefile
parent3b92a14bd3b0e005bbd762160927416ff8d45829 (diff)
downloadpkgsrc-2df6063cb1161b8c656ba789e50a1b93d878ecb8.tar.gz
Use BUILDLINK_LDFLAGS.pthread rather than hardcoding -pthread in build
files for portability. Closes PR pkg/29190 by Todd Willey.
Diffstat (limited to 'x11/gtk2/Makefile')
-rw-r--r--x11/gtk2/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/x11/gtk2/Makefile b/x11/gtk2/Makefile
index bd092039736..56290e3c31f 100644
--- a/x11/gtk2/Makefile
+++ b/x11/gtk2/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.81 2005/04/15 13:47:25 wiz Exp $
+# $NetBSD: Makefile,v 1.82 2005/05/08 09:07:08 jmmv Exp $
#
DISTNAME= gtk+-2.6.7
@@ -54,6 +54,12 @@ PRINT_PLIST_AWK+= /^@dirrm share\/themes\/Default$$/ \
{ print "@unexec $${RMDIR} %D/" $$2 \
" 2>/dev/null || $${TRUE}"; next; }
+SUBST_CLASSES= pthread
+SUBST_STAGE.pthread= pre-configure
+SUBST_MESSAGE.pthread= "Fixing pthread flags."
+SUBST_SED.pthread= -e 's,__PTHREAD_FLAGS__,${BUILDLINK_LDFLAGS.pthread},g'
+SUBST_FILES.pthread= gdk-pixbuf/Makefile.in
+
.include "../../mk/compiler.mk"
# work around /**/ in a macro definition in X11/Xlibint.h (GetEmptyReq)