| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.153 2019/08/23 11:37:48 nia Exp $ | | 1 | # $NetBSD: Makefile,v 1.154 2019/08/24 20:39:37 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 |
| @@ -46,26 +46,28 @@ LDFLAGS.SunOS+= -lsocket -lnsl | | | @@ -46,26 +46,28 @@ LDFLAGS.SunOS+= -lsocket -lnsl |
46 | | | 46 | |
47 | .include "../../mk/bsd.prefs.mk" | | 47 | .include "../../mk/bsd.prefs.mk" |
48 | .include "../../mk/compiler.mk" | | 48 | .include "../../mk/compiler.mk" |
49 | .include "options.mk" | | 49 | .include "options.mk" |
50 | | | 50 | |
51 | .if ${MACHINE_ARCH} == "i386" | | 51 | .if ${MACHINE_ARCH} == "i386" |
52 | MESON_ARGS+= -Dglx-read-only-text=true | | 52 | MESON_ARGS+= -Dglx-read-only-text=true |
53 | .endif | | 53 | .endif |
54 | | | 54 | |
55 | MESON_ARGS+= -Dshared-glapi=true | | 55 | MESON_ARGS+= -Dshared-glapi=true |
56 | | | 56 | |
57 | CPPFLAGS+= -DHAVE_NOATEXIT | | 57 | CPPFLAGS+= -DHAVE_NOATEXIT |
58 | | | 58 | |
| | | 59 | BUILDLINK_TRANSFORM+= rm:-Werror=return-type |
| | | 60 | |
59 | # Work around Xorg segfaulting in radeon driver due to wrong alloca being used | | 61 | # Work around Xorg segfaulting in radeon driver due to wrong alloca being used |
60 | CFLAGS.NetBSD+= -Dalloca=__builtin_alloca | | 62 | CFLAGS.NetBSD+= -Dalloca=__builtin_alloca |
61 | CXXFLAGS.NetBSD+= -Dalloca=__builtin_alloca | | 63 | CXXFLAGS.NetBSD+= -Dalloca=__builtin_alloca |
62 | | | 64 | |
63 | PYTHON_FOR_BUILD_ONLY= yes | | 65 | PYTHON_FOR_BUILD_ONLY= yes |
64 | BUILD_DEPENDS+= ${PYPKGPREFIX}-mako-[0-9]*:../../devel/py-mako | | 66 | BUILD_DEPENDS+= ${PYPKGPREFIX}-mako-[0-9]*:../../devel/py-mako |
65 | # needed to build vulkan support | | 67 | # needed to build vulkan support |
66 | BUILD_DEPENDS+= ${PYPKGPREFIX}-cElementTree-[0-9]*:../../textproc/py-cElementTree | | 68 | BUILD_DEPENDS+= ${PYPKGPREFIX}-cElementTree-[0-9]*:../../textproc/py-cElementTree |
67 | | | 69 | |
68 | pre-configure: | | 70 | pre-configure: |
69 | touch ${WRKSRC}/src/glx/apple_dummy.cpp | | 71 | touch ${WRKSRC}/src/glx/apple_dummy.cpp |
70 | | | 72 | |
71 | DRIRC_DIR= ${PKG_SYSCONFDIR}/drirc.d | | 73 | DRIRC_DIR= ${PKG_SYSCONFDIR}/drirc.d |