| @@ -1,60 +1,60 @@ | | | @@ -1,60 +1,60 @@ |
1 | # $NetBSD: Makefile,v 1.19 2017/03/16 18:38:33 tron Exp $ | | 1 | # $NetBSD: Makefile,v 1.20 2017/03/18 20:18:39 adam Exp $ |
2 | | | 2 | |
3 | DISTNAME= libepoxy-1.4 | | 3 | DISTNAME= libepoxy-1.4.1 |
4 | CATEGORIES= graphics | | 4 | CATEGORIES= graphics |
5 | MASTER_SITES= ${MASTER_SITE_GITHUB:=anholt/} | | 5 | MASTER_SITES= ${MASTER_SITE_GITHUB:=anholt/} |
6 | GITHUB_TAG= v${PKGVERSION_NOREV} | | 6 | GITHUB_TAG= ${PKGVERSION_NOREV} |
7 | | | 7 | |
8 | MAINTAINER= pkgsrc-users@NetBSD.org | | 8 | MAINTAINER= pkgsrc-users@NetBSD.org |
9 | HOMEPAGE= https://github.com/anholt/libepoxy/ | | 9 | HOMEPAGE= https://github.com/anholt/libepoxy/ |
10 | COMMENT= Library for OpenGL function pointer management | | 10 | COMMENT= Library for OpenGL function pointer management |
11 | LICENSE= mit | | 11 | LICENSE= mit |
12 | | | 12 | |
13 | BUILD_DEPENDS+= ${PYPKGPREFIX}-expat>=0:../../textproc/py-expat | | 13 | BUILD_DEPENDS+= ${PYPKGPREFIX}-expat>=0:../../textproc/py-expat |
14 | | | 14 | |
15 | USE_LIBTOOL= yes | | 15 | USE_LIBTOOL= yes |
16 | USE_TOOLS+= pkg-config autoconf autoreconf automake | | 16 | USE_TOOLS+= pkg-config autoconf autoreconf automake |
17 | GNU_CONFIGURE= yes | | 17 | GNU_CONFIGURE= yes |
18 | PKGCONFIG_OVERRIDE+= epoxy.pc.in | | 18 | PKGCONFIG_OVERRIDE+= epoxy.pc.in |
19 | PYTHON_FOR_BUILD_ONLY= yes | | 19 | PYTHON_FOR_BUILD_ONLY= yes |
20 | | | 20 | |
21 | .include "../../mk/bsd.prefs.mk" | | 21 | .include "../../mk/bsd.prefs.mk" |
22 | | | 22 | |
23 | PLIST_VARS+= egl glx | | 23 | PLIST_VARS+= egl glx |
24 | | | 24 | |
25 | PKG_OPTIONS_VAR= PKG_OPTIONS.libepoxy | | 25 | PKG_OPTIONS_VAR= PKG_OPTIONS.libepoxy |
26 | PKG_SUPPORTED_OPTIONS= x11 | | 26 | PKG_SUPPORTED_OPTIONS= x11 |
27 | PKG_SUGGESTED_OPTIONS= x11 | | 27 | PKG_SUGGESTED_OPTIONS= x11 |
28 | | | 28 | |
29 | .include "../../mk/bsd.options.mk" | | 29 | .include "../../mk/bsd.options.mk" |
30 | | | 30 | |
31 | .if !empty(PKG_OPTIONS:Mx11) | | 31 | .if !empty(PKG_OPTIONS:Mx11) |
32 | CONFIGURE_ARGS+= --enable-glx=yes | | 32 | CONFIGURE_ARGS+= --enable-glx=yes |
33 | PLIST.glx= yes | | 33 | PLIST.glx= yes |
34 | .include "../../graphics/MesaLib/buildlink3.mk" | | 34 | .include "../../graphics/MesaLib/buildlink3.mk" |
35 | .include "../../x11/libX11/buildlink3.mk" | | 35 | .include "../../x11/libX11/buildlink3.mk" |
36 | . if ${OPSYS} == "Darwin" | | 36 | . if ${OPSYS} == "Darwin" |
37 | CONFIGURE_ARGS+= --enable-egl=${MESALIB_SUPPORTS_EGL} | | 37 | CONFIGURE_ARGS+= --enable-egl=${MESALIB_SUPPORTS_EGL} |
38 | . if ${X11_TYPE} == "modular" | | 38 | . if ${X11_TYPE} == "modular" |
39 | CPPFLAGS+= -DGLX_LIB=\"${PREFIX}/lib/libGL.dylib\" | | 39 | CPPFLAGS+= -DGLX_LIB=\"${PREFIX}/lib/libGL.dylib\" |
40 | . endif | | 40 | . endif |
41 | . else # ! Darwin | | 41 | . else # ! Darwin |
42 | CONFIGURE_ARGS+= --enable-egl=${MESALIB_SUPPORTS_EGL} | | 42 | CONFIGURE_ARGS+= --enable-egl=${MESALIB_SUPPORTS_EGL} |
43 | . if !empty(MESALIB_SUPPORTS_EGL:Myes) | | 43 | . if !empty(MESALIB_SUPPORTS_EGL:Myes) |
44 | PLIST.egl= yes | | 44 | PLIST.egl= yes |
45 | . endif | | 45 | . endif |
46 | . endif | | 46 | . endif |
47 | .else # ! x11 | | 47 | .else # ! x11 |
48 | CONFIGURE_ARGS+= --enable-glx=no | | 48 | CONFIGURE_ARGS+= --enable-glx=no |
49 | CONFIGURE_ARGS+= --enable-egl=no | | 49 | CONFIGURE_ARGS+= --enable-egl=no |
50 | . if !(${OPSYS} == "Darwin" && ${X11_TYPE} == "native") | | 50 | . if !(${OPSYS} == "Darwin" && ${X11_TYPE} == "native") |
51 | PKG_FAIL_REASON+= "The x11 option must be enabled on this platform/configuration." | | 51 | PKG_FAIL_REASON+= "The x11 option must be enabled on this platform/configuration." |
52 | . endif | | 52 | . endif |
53 | .endif | | 53 | .endif |
54 | | | 54 | |
55 | pre-configure: | | 55 | pre-configure: |
56 | cd ${WRKSRC} && autoreconf -vif | | 56 | cd ${WRKSRC} && autoreconf -vif |
57 | | | 57 | |
58 | .include "../../lang/python/tool.mk" | | 58 | .include "../../lang/python/tool.mk" |
59 | .include "../../devel/xorg-util-macros/buildlink3.mk" | | 59 | .include "../../devel/xorg-util-macros/buildlink3.mk" |
60 | .include "../../mk/bsd.pkg.mk" | | 60 | .include "../../mk/bsd.pkg.mk" |