summaryrefslogtreecommitdiff
path: root/graphics/libepoxy/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/libepoxy/Makefile')
-rw-r--r--graphics/libepoxy/Makefile18
1 files changed, 6 insertions, 12 deletions
diff --git a/graphics/libepoxy/Makefile b/graphics/libepoxy/Makefile
index 11e9e7bcff0..30df96c2523 100644
--- a/graphics/libepoxy/Makefile
+++ b/graphics/libepoxy/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 2017/02/17 15:17:08 wiz Exp $
+# $NetBSD: Makefile,v 1.18 2017/02/18 02:37:11 ryoon Exp $
DISTNAME= libepoxy-1.4
CATEGORIES= graphics
@@ -29,35 +29,29 @@ PKG_SUGGESTED_OPTIONS= x11
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mx11)
-BUILD_GLX= yes
+CONFIGURE_ARGS+= --enable-glx=yes
PLIST.glx= yes
.include "../../graphics/MesaLib/buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
. if ${OPSYS} == "Darwin"
-BUILD_EGL= no
+CONFIGURE_ARGS+= --enable-egl=yes
. if ${X11_TYPE} == "modular"
CPPFLAGS+= -DGLX_LIB=\"${PREFIX}/lib/libGL.dylib\"
. endif
. else # ! Darwin
-BUILD_EGL= ${MESALIB_SUPPORTS_EGL}
+CONFIGURE_ARGS+= --enable-egl=${MESALIB_SUPPORTS_EGL}
. if !empty(MESALIB_SUPPORTS_EGL:Myes)
PLIST.egl= yes
. endif
. endif
.else # ! x11
-BUILD_GLX= no
-BUILD_EGL= no
+CONFIGURE_ARGS+= --enable-glx=no
+CONFIGURE_ARGS+= --enable-egl=no
. if !(${OPSYS} == "Darwin" && ${X11_TYPE} == "native")
PKG_FAIL_REASON+= "The x11 option must be enabled on this platform/configuration."
. endif
.endif
-SUBST_CLASSES+= gl
-SUBST_STAGE.gl= pre-configure
-SUBST_MESSAGE.gl= Configuring optional EGL and GLX build.
-SUBST_FILES.gl= configure.ac
-SUBST_VARS.gl= BUILD_EGL BUILD_GLX
-
pre-configure:
cd ${WRKSRC} && autoreconf -vif