comparison graphics/mesa/mesa.sh @ 602:705beca72ba0

vanilla: fix many meson based builds
author David Demelier <markand@malikania.fr>
date Sat, 13 Jul 2019 18:04:46 +0200
parents b1690d766bdb
children 25cecc6dca48
comparison
equal deleted inserted replaced
601:70fbd54ba952 602:705beca72ba0
64 with_glx="-D glx=disabled" 64 with_glx="-D glx=disabled"
65 fi 65 fi
66 66
67 build() 67 build()
68 { 68 {
69 rm -rf $PKGNAME-$PKGVERSION 69 #rm -rf $PKGNAME-$PKGVERSION
70 tar xvaf $PKGNAME-$PKGVERSION.tar.xz 70 #tar xvaf $PKGNAME-$PKGVERSION.tar.xz
71 pushd $PKGNAME-$PKGVERSION 71 pushd $PKGNAME-$PKGVERSION
72 72
73 patch -p0 < ../disable-tls.patch 73 patch -p0 < ../disable-tls.patch
74 # https://git.alpinelinux.org/aports/plain/main/mesa/musl-fix-includes.patch 74 # https://git.alpinelinux.org/aports/plain/main/mesa/musl-fix-includes.patch
75 patch -p1 < ../musl.patch 75 patch -p1 < ../musl.patch
80 LDFLAGS="$LDFLAGS" \ 80 LDFLAGS="$LDFLAGS" \
81 meson \ 81 meson \
82 --prefix / \ 82 --prefix / \
83 --buildtype release \ 83 --buildtype release \
84 --default-library shared \ 84 --default-library shared \
85 -D libdir=lib \
85 -D egl=true \ 86 -D egl=true \
86 -D bpm=true \ 87 -D bpm=true \
87 -D platforms=$with_platforms \ 88 -D platforms=$with_platforms \
88 -D gallium-drivers=$with_gallium_drivers \ 89 -D gallium-drivers=$with_gallium_drivers \
89 -D vulkan-drivers=$with_vulkan_drivers \ 90 -D vulkan-drivers=$with_vulkan_drivers \
93 . build 94 . build
94 ninja -C build 95 ninja -C build
95 DESTDIR=$DESTDIR ninja -C build install 96 DESTDIR=$DESTDIR ninja -C build install
96 97
97 popd 98 popd
98 rm -rf $PKGNAME-$PKGVERSION 99 #rm -rf $PKGNAME-$PKGVERSION
99 } 100 }
100 101