summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcube <cube>2008-09-22 19:02:13 +0000
committercube <cube>2008-09-22 19:02:13 +0000
commit3b7369ab9a2b510250682eb7cb6ef659fd37c21d (patch)
treedc970f6d668dfb1910855b95860005bd9e4d9f48
parent6929fa49dc247910e265f2c9d0013084674fff44 (diff)
downloadpkgsrc-3b7369ab9a2b510250682eb7cb6ef659fd37c21d.tar.gz
Add a gross workaround to the gross workaround because openoffice insists
on using the pkgconfig files of its dependency.
-rw-r--r--misc/openoffice2/Makefile.NetBSD11
1 files changed, 6 insertions, 5 deletions
diff --git a/misc/openoffice2/Makefile.NetBSD b/misc/openoffice2/Makefile.NetBSD
index fb0eee2d070..f9e5577e509 100644
--- a/misc/openoffice2/Makefile.NetBSD
+++ b/misc/openoffice2/Makefile.NetBSD
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.NetBSD,v 1.1 2008/02/05 19:17:24 hira Exp $
+# $NetBSD: Makefile.NetBSD,v 1.1.8.1 2008/09/22 19:02:13 cube Exp $
#
# systray quickstarter is broken with mutex handling?
@@ -6,10 +6,11 @@ CONFIGURE_ARGS+= --disable-systray
# *.pc files are required, but these don't exist on NetBSD.
.if defined(X11_TYPE) && !empty(X11_TYPE:Mnative)
-USE_BUILTIN.freetype2= no
-USE_BUILTIN.Xfixes= no
-USE_BUILTIN.Xrandr= no
-USE_BUILTIN.Xrender= no
+. for _pkg_ in freetype2 Xfixes Xrandr Xrender
+. if !exists(${X11BASE}/lib/pkgconfig/${_pkg_:tl}.pc)
+USE_BUILTIN.${_pkg_}= no
+. endif
+. endfor
.endif
.if ${MACHINE_ARCH} == "i386"