MesaLib: resolving some build failures when built without LLVMdiff -r1.152 -r1.153 pkgsrc/graphics/MesaLib/Makefile
(nia)
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile,v 1.152 2019/08/22 17:24:01 nia Exp $ | 1 | # $NetBSD: Makefile,v 1.153 2019/08/23 11:37:48 nia Exp $ | |
2 | 2 | |||
3 | DISTNAME= mesa-19.1.4 | 3 | DISTNAME= mesa-19.1.4 | |
4 | PKGNAME= ${DISTNAME:S/mesa/MesaLib/} | 4 | PKGNAME= ${DISTNAME:S/mesa/MesaLib/} | |
5 | CATEGORIES= graphics x11 | 5 | CATEGORIES= graphics x11 | |
6 | MASTER_SITES= https://mesa.freedesktop.org/archive/ | 6 | MASTER_SITES= https://mesa.freedesktop.org/archive/ | |
7 | EXTRACT_SUFX= .tar.xz | 7 | EXTRACT_SUFX= .tar.xz | |
8 | 8 | |||
9 | MAINTAINER= pkgsrc-users@NetBSD.org | 9 | MAINTAINER= pkgsrc-users@NetBSD.org | |
10 | HOMEPAGE= https://www.mesa3d.org/ | 10 | HOMEPAGE= https://www.mesa3d.org/ | |
11 | COMMENT= Open source OpenGL implementation | 11 | COMMENT= Open source OpenGL implementation | |
12 | LICENSE= mit | 12 | LICENSE= mit | |
13 | 13 | |||
14 | USE_TOOLS+= pkg-config | 14 | USE_TOOLS+= pkg-config | |
@@ -68,22 +68,24 @@ BUILD_DEPENDS+= ${PYPKGPREFIX}-cElement | @@ -68,22 +68,24 @@ BUILD_DEPENDS+= ${PYPKGPREFIX}-cElement | |||
68 | pre-configure: | 68 | pre-configure: | |
69 | touch ${WRKSRC}/src/glx/apple_dummy.cpp | 69 | touch ${WRKSRC}/src/glx/apple_dummy.cpp | |
70 | 70 | |||
71 | DRIRC_DIR= ${PKG_SYSCONFDIR}/drirc.d | 71 | DRIRC_DIR= ${PKG_SYSCONFDIR}/drirc.d | |
72 | EGDIR= ${PREFIX}/share/examples/mesa | 72 | EGDIR= ${PREFIX}/share/examples/mesa | |
73 | OWN_DIRS+= ${DRIRC_DIR} | 73 | OWN_DIRS+= ${DRIRC_DIR} | |
74 | INSTALLATION_DIRS+= ${EGDIR} | 74 | INSTALLATION_DIRS+= ${EGDIR} | |
75 | CONF_FILES+= ${EGDIR}/00-mesa-defaults.conf \ | 75 | CONF_FILES+= ${EGDIR}/00-mesa-defaults.conf \ | |
76 | ${DRIRC_DIR}/00-mesa-defaults.conf | 76 | ${DRIRC_DIR}/00-mesa-defaults.conf | |
77 | 77 | |||
78 | post-install: | 78 | post-install: | |
79 | ${INSTALL_DATA} ${WRKSRC}/src/util/00-mesa-defaults.conf ${DESTDIR}${EGDIR} | 79 | ${INSTALL_DATA} ${WRKSRC}/src/util/00-mesa-defaults.conf ${DESTDIR}${EGDIR} | |
80 | 80 | |||
81 | # LLVM detection | |||
82 | TOOL_DEPENDS+= ${PYPKGPREFIX}-meson>=0.51.1nb3:../../devel/py-meson | |||
83 | ||||
81 | .include "../../devel/py-meson/build.mk" | 84 | .include "../../devel/py-meson/build.mk" | |
82 | .include "../../devel/zlib/buildlink3.mk" | 85 | .include "../../devel/zlib/buildlink3.mk" | |
83 | .include "../../textproc/expat/buildlink3.mk" | 86 | .include "../../textproc/expat/buildlink3.mk" | |
84 | .include "../../x11/libXrandr/buildlink3.mk" | 87 | .include "../../x11/libXrandr/buildlink3.mk" | |
85 | .include "../../x11/libX11/buildlink3.mk" | 88 | .include "../../x11/libX11/buildlink3.mk" | |
86 | .include "../../x11/libXext/buildlink3.mk" | 89 | .include "../../x11/libXext/buildlink3.mk" | |
87 | .include "../../x11/libxcb/buildlink3.mk" | 90 | .include "../../x11/libxcb/buildlink3.mk" | |
88 | .include "../../x11/libxshmfence/buildlink3.mk" | |||
89 | .include "../../mk/bsd.pkg.mk" | 91 | .include "../../mk/bsd.pkg.mk" |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: options.mk,v 1.67 2019/08/23 11:07:37 nia Exp $ | 1 | # $NetBSD: options.mk,v 1.68 2019/08/23 11:37:48 nia Exp $ | |
2 | 2 | |||
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.MesaLib | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.MesaLib | |
4 | PKG_SUPPORTED_OPTIONS= llvm dri wayland | 4 | PKG_SUPPORTED_OPTIONS= llvm dri wayland | |
5 | PKG_SUGGESTED_OPTIONS= | 5 | PKG_SUGGESTED_OPTIONS= | |
6 | 6 | |||
7 | PKG_SUPPORTED_OPTIONS+= vdpau vaapi | 7 | PKG_SUPPORTED_OPTIONS+= vdpau vaapi | |
8 | PKG_SUPPORTED_OPTIONS+= osmesa | 8 | PKG_SUPPORTED_OPTIONS+= osmesa | |
9 | PKG_SUPPORTED_OPTIONS+= glesv1 glesv2 | 9 | PKG_SUPPORTED_OPTIONS+= glesv1 glesv2 | |
10 | PKG_SUPPORTED_OPTIONS+= gallium-xa | 10 | PKG_SUPPORTED_OPTIONS+= gallium-xa | |
11 | PKG_SUPPORTED_OPTIONS+= gallium-xvmc | 11 | PKG_SUPPORTED_OPTIONS+= gallium-xvmc | |
12 | PKG_SUPPORTED_OPTIONS+= vulkan | 12 | PKG_SUPPORTED_OPTIONS+= vulkan | |
13 | 13 | |||
14 | PKG_SUGGESTED_OPTIONS+= vdpau vaapi | 14 | PKG_SUGGESTED_OPTIONS+= vdpau vaapi | |
@@ -218,26 +218,27 @@ MESON_ARGS+= -Dgallium-xa=false | @@ -218,26 +218,27 @@ MESON_ARGS+= -Dgallium-xa=false | |||
218 | # AMD Radeon r300 | 218 | # AMD Radeon r300 | |
219 | PLIST.r300= yes | 219 | PLIST.r300= yes | |
220 | GALLIUM_DRIVERS+= r300 | 220 | GALLIUM_DRIVERS+= r300 | |
221 | # AMD Canary Islands GPUs | 221 | # AMD Canary Islands GPUs | |
222 | PLIST.radeonsi= yes | 222 | PLIST.radeonsi= yes | |
223 | GALLIUM_DRIVERS+= radeonsi | 223 | GALLIUM_DRIVERS+= radeonsi | |
224 | MESON_ARGS+= -Dllvm=true | 224 | MESON_ARGS+= -Dllvm=true | |
225 | 225 | |||
226 | BUILDLINK_API_DEPENDS.libLLVM+= libLLVM>=7.0 | 226 | BUILDLINK_API_DEPENDS.libLLVM+= libLLVM>=7.0 | |
227 | . include "../../devel/libelf/buildlink3.mk" | 227 | . include "../../devel/libelf/buildlink3.mk" | |
228 | . include "../../lang/libLLVM/buildlink3.mk" | 228 | . include "../../lang/libLLVM/buildlink3.mk" | |
229 | . else # !llvm | 229 | . else # !llvm | |
230 | MESON_ARGS+= -Dgallium-xa=false | 230 | MESON_ARGS+= -Dgallium-xa=false | |
231 | MESON_ARGS+= -Dgallium-vdpau=false | |||
231 | MESON_ARGS+= -Dllvm=false | 232 | MESON_ARGS+= -Dllvm=false | |
232 | . endif # llvm | 233 | . endif # llvm | |
233 | PLIST_SUBST+= GLVER="1.2.0" | 234 | PLIST_SUBST+= GLVER="1.2.0" | |
234 | MESON_ARGS+= -Dgallium-drivers=${GALLIUM_DRIVERS:ts,} | 235 | MESON_ARGS+= -Dgallium-drivers=${GALLIUM_DRIVERS:ts,} | |
235 | MESON_ARGS+= -Ddri-drivers=${DRI_DRIVERS:ts,} | 236 | MESON_ARGS+= -Ddri-drivers=${DRI_DRIVERS:ts,} | |
236 | MESON_ARGS+= -Dvulkan-drivers=${VULKAN_DRIVERS:ts,} | 237 | MESON_ARGS+= -Dvulkan-drivers=${VULKAN_DRIVERS:ts,} | |
237 | MESON_ARGS+= -Dplatforms=${EGL_PLATFORMS:ts,} | 238 | MESON_ARGS+= -Dplatforms=${EGL_PLATFORMS:ts,} | |
238 | .else # !dri | 239 | .else # !dri | |
239 | PLIST_SUBST+= GLVER="1.6.0" | 240 | PLIST_SUBST+= GLVER="1.6.0" | |
240 | MESON_ARGS+= -Dgallium-drivers= | 241 | MESON_ARGS+= -Dgallium-drivers= | |
241 | MESON_ARGS+= -Ddri-drivers= | 242 | MESON_ARGS+= -Ddri-drivers= | |
242 | MESON_ARGS+= -Dvulkan-drivers= | 243 | MESON_ARGS+= -Dvulkan-drivers= | |
243 | MESON_ARGS+= -Ddri3=false | 244 | MESON_ARGS+= -Ddri3=false |