diff options
author | adam <adam> | 2015-11-19 11:46:33 +0000 |
---|---|---|
committer | adam <adam> | 2015-11-19 11:46:33 +0000 |
commit | af1cf8efa33b1b23622b94ee9d24f72298afdb17 (patch) | |
tree | d111f2760645bd3ddf314295edca27352a83f90d /graphics/libepoxy/Makefile | |
parent | 0d20dd2bcd115d4f88886f5d48829f69bdd5b352 (diff) | |
download | pkgsrc-af1cf8efa33b1b23622b94ee9d24f72298afdb17.tar.gz |
Allow building on OS X without X11
Diffstat (limited to 'graphics/libepoxy/Makefile')
-rw-r--r-- | graphics/libepoxy/Makefile | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/graphics/libepoxy/Makefile b/graphics/libepoxy/Makefile index 148aee36264..3de0b910678 100644 --- a/graphics/libepoxy/Makefile +++ b/graphics/libepoxy/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.12 2015/10/01 13:50:05 tnn Exp $ +# $NetBSD: Makefile,v 1.13 2015/11/19 11:46:33 adam Exp $ DISTNAME= libepoxy-1.3.1 PKGREVISION= 2 @@ -13,40 +13,40 @@ LICENSE= mit BUILD_DEPENDS+= ${PYPKGPREFIX}-expat>=0:../../textproc/py-expat -USE_TOOLS+= pkg-config autoconf autoreconf automake -USE_LIBTOOL= yes -GNU_CONFIGURE= yes -PYTHON_FOR_BUILD_ONLY= yes - +USE_LIBTOOL= yes +USE_TOOLS+= pkg-config autoconf autoreconf automake +GNU_CONFIGURE= yes PKGCONFIG_OVERRIDE+= epoxy.pc.in - -pre-configure: - cd ${WRKSRC} && autoreconf -vif +PYTHON_FOR_BUILD_ONLY= yes .include "../../mk/bsd.prefs.mk" -PLIST_VARS+= egl -CONFIGURE_ENV+= PKGSRC_BUILD_EGL=${MESALIB_SUPPORTS_EGL} +PLIST_VARS+= egl glx -# This could be garbage collected, but it seems likely that there will -# be more glx issues, so it seems easier to leave it. -PLIST_VARS+= glx -.if ${OPSYS} != "Darwin" -PLIST.glx= yes +.if ${OPSYS} == "Darwin" && ${X11_TYPE} != "modular" +BUILD_EGL= no +BUILD_GLX= no .else -# On Darwin, we patch upstream to enable this. -PLIST.glx= yes +BUILD_EGL= ${MESALIB_SUPPORTS_EGL} +BUILD_GLX= yes +CPPFLAGS+= -DGLX_LIB=\"${PREFIX}/lib/libGL.dylib\" +PLIST.glx= yes +.include "../../graphics/MesaLib/buildlink3.mk" +.include "../../x11/libX11/buildlink3.mk" +. if !empty(MESALIB_SUPPORTS_EGL:Myes) +PLIST.egl= yes +. endif .endif -.if ${OPSYS} == "Darwin" && ${X11_TYPE} == "modular" -CPPFLAGS+= -DGLX_LIB=\"${PREFIX}/lib/libGL.1.dylib\" -.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 .include "../../lang/python/tool.mk" .include "../../devel/xorg-util-macros/buildlink3.mk" -.include "../../graphics/MesaLib/buildlink3.mk" -.if !empty(MESALIB_SUPPORTS_EGL:Myes) && ${OPSYS} != "Darwin" -PLIST.egl= yes -.endif -.include "../../x11/libX11/buildlink3.mk" .include "../../mk/bsd.pkg.mk" |