2019-06-27 09:19:50 +00:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
2019-10-07 21:16:49 +00:00
|
|
|
export DESTDIR="$1"
|
2020-02-17 20:33:35 +00:00
|
|
|
export CFLAGS="-DGLX_X86_READONLY_TEXT $CFLAGS -fcommon"
|
2019-08-03 16:36:34 +00:00
|
|
|
|
2019-08-03 21:32:53 +00:00
|
|
|
# Fix issues with musl and firefox.
|
2019-10-10 09:49:08 +00:00
|
|
|
# https://bugs.freedesktop.org/show_bug.cgi?id=35268
|
|
|
|
# https://github.com/mesa3d/mesa/commit/9f37c9903b87f86a533bfaffa72f0ecb285b02b2
|
2020-01-29 17:42:59 +00:00
|
|
|
sed -i "/pre_args += '-DUSE_ELF_TLS'/d" meson.build
|
2019-08-03 21:32:53 +00:00
|
|
|
|
2019-06-27 18:36:01 +00:00
|
|
|
meson \
|
2019-06-27 09:19:50 +00:00
|
|
|
--prefix=/usr \
|
2019-06-27 09:25:10 +00:00
|
|
|
--sysconfdir=/etc \
|
|
|
|
--mandir=/usr/share/man \
|
|
|
|
--localstatedir=/var \
|
2019-06-27 18:36:01 +00:00
|
|
|
--buildtype=release \
|
2019-06-27 18:56:54 +00:00
|
|
|
-Dplatforms=x11,drm \
|
2019-06-27 18:36:01 +00:00
|
|
|
. output
|
|
|
|
|
|
|
|
ninja -C output
|
2019-10-07 21:16:49 +00:00
|
|
|
ninja -C output install
|