summaryrefslogtreecommitdiff
path: root/graphics/libepoxy/Makefile
diff options
context:
space:
mode:
authortnn <tnn>2015-06-13 19:13:10 +0000
committertnn <tnn>2015-06-13 19:13:10 +0000
commitfa2b19b4f4182271abaa2efd61218ce9d4e888aa (patch)
treeceb175aa7aa6b2b48fa086f464622410720ebc4f /graphics/libepoxy/Makefile
parenta4529bb8243d75f6ece3c00818fefe8a2c737671 (diff)
downloadpkgsrc-fa2b19b4f4182271abaa2efd61218ce9d4e888aa.tar.gz
Fix build with native / old X11 (build tested on netbsd-6)
Apparently this will be required by GTK3 soon.
Diffstat (limited to 'graphics/libepoxy/Makefile')
-rw-r--r--graphics/libepoxy/Makefile13
1 files changed, 6 insertions, 7 deletions
diff --git a/graphics/libepoxy/Makefile b/graphics/libepoxy/Makefile
index 9be45ed4edb..3d40686ddae 100644
--- a/graphics/libepoxy/Makefile
+++ b/graphics/libepoxy/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2015/04/25 14:23:15 tnn Exp $
+# $NetBSD: Makefile,v 1.4 2015/06/13 19:13:10 tnn Exp $
DISTNAME= libepoxy-1.2
PKGREVISION= 1
@@ -25,13 +25,12 @@ pre-configure:
.include "../../mk/bsd.prefs.mk"
-.if ${X11_TYPE} == "modular"
-# We should enforce this, but the dependency cannot
-# currently be satisfied by pkgsrc, which might break pbulk(?)
-# We'll settle for failing in the build phase for now.
-#BUILDLINK_API_DEPENDS.MesaLib+= MesaLib>=10
+PLIST_VARS+= egl
+.if ${X11_TYPE} == "modular" || exists(${X11BASE}/include/EGL/egl.h)
+PLIST.egl= yes
+CONFIGURE_ENV+= PKGSRC_BUILD_EGL=yes
.else
-PKG_FAIL_REASON+= "This package is currently for modular X.org only"
+CONFIGURE_ENV+= PKGSRC_BUILD_EGL=no
.endif
.include "../../lang/python/tool.mk"