summaryrefslogtreecommitdiff
path: root/graphics/libepoxy
diff options
context:
space:
mode:
authortnn <tnn>2015-09-16 12:28:53 +0000
committertnn <tnn>2015-09-16 12:28:53 +0000
commite9f9498a3349aab7bc0389e093314904fa54d923 (patch)
tree68ec43bfae2dc15785cf86bfe703261b06cbb750 /graphics/libepoxy
parent4592d6aee4683a0542d21991e4348d9a62c93342 (diff)
downloadpkgsrc-e9f9498a3349aab7bc0389e093314904fa54d923.tar.gz
PR pkg/50243: PLIST fix when X11_TYPE=modular and PKG_OPTIONS.MesaLib=-dri
ok gdt@
Diffstat (limited to 'graphics/libepoxy')
-rw-r--r--graphics/libepoxy/Makefile12
1 files changed, 5 insertions, 7 deletions
diff --git a/graphics/libepoxy/Makefile b/graphics/libepoxy/Makefile
index f987ff4fc40..146fda35283 100644
--- a/graphics/libepoxy/Makefile
+++ b/graphics/libepoxy/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2015/09/14 18:20:12 tron Exp $
+# $NetBSD: Makefile,v 1.10 2015/09/16 12:28:53 tnn Exp $
DISTNAME= libepoxy-1.3.1
PKGREVISION= 1
@@ -26,12 +26,7 @@ pre-configure:
.include "../../mk/bsd.prefs.mk"
PLIST_VARS+= egl
-.if ${X11_TYPE} == "modular" || exists(${X11BASE}/include/EGL/egl.h)
-PLIST.egl= yes
-CONFIGURE_ENV+= PKGSRC_BUILD_EGL=yes
-.else
-CONFIGURE_ENV+= PKGSRC_BUILD_EGL=no
-.endif
+CONFIGURE_ENV+= PKGSRC_BUILD_EGL=${MESALIB_SUPPORTS_EGL}
# This could be garbage collected, but it seems likely that there will
# be more glx issues, so it seems easier to leave it.
@@ -46,5 +41,8 @@ PLIST.glx= yes
.include "../../lang/python/tool.mk"
.include "../../devel/xorg-util-macros/buildlink3.mk"
.include "../../graphics/MesaLib/buildlink3.mk"
+.if !empty(MESALIB_SUPPORTS_EGL:Myes)
+PLIST.egl= yes
+.endif
.include "../../x11/libX11/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"