Mercurial > vanilla
diff graphics/mesa/mesa.sh @ 1222:325631424c65
misc: bring back build function
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 27 Oct 2021 11:32:16 +0200 |
parents | a47aaf9743a0 |
children | 9867e578b1a9 |
line wrap: on
line diff
--- a/graphics/mesa/mesa.sh Fri Oct 15 16:07:30 2021 +0200 +++ b/graphics/mesa/mesa.sh Wed Oct 27 11:32:16 2021 +0200 @@ -103,36 +103,39 @@ with_glx="-D glx=disabled" fi -rm -rf $PKGNAME-$PKGVERSION -tar xvf $PKGNAME-$PKGVERSION.tar.xz -cd $PKGNAME-$PKGVERSION +build() +{ + rm -rf $PKGNAME-$PKGVERSION + tar xvf $PKGNAME-$PKGVERSION.tar.xz + cd $PKGNAME-$PKGVERSION -patch -p0 < ../disable-tls.patch -# https://git.alpinelinux.org/aports/plain/main/mesa/musl-fix-includes.patch -patch -p1 < ../musl.patch -CC="$CC" \ -CFLAGS="$CFLAGS" \ -CXX="$CXX" \ -CXXFLAGS="$CXXFLAGS" \ -LDFLAGS="$LDFLAGS" \ -meson . build \ - --prefix / \ - --buildtype release \ - --default-library shared \ - -D libdir=lib \ - -D bpm=true \ - -D platforms="$with_platforms" \ - -D dri-drivers="$with_dri_drivers" \ - -D gallium-drivers="$with_gallium_drivers" \ - -D vulkan-drivers="$with_vulkan_drivers" \ - $with_dri \ - $with_egl \ - $with_glvnd \ - $with_glx \ - $with_llvm -ninja -C build -DESTDIR=$DESTDIR ninja -C build install -sed -i -e "s|prefix=/|prefix=|" $DESTDIR/lib/pkgconfig/*.pc + patch -p0 < ../disable-tls.patch + # https://git.alpinelinux.org/aports/plain/main/mesa/musl-fix-includes.patch + patch -p1 < ../musl.patch + CC="$CC" \ + CFLAGS="$CFLAGS" \ + CXX="$CXX" \ + CXXFLAGS="$CXXFLAGS" \ + LDFLAGS="$LDFLAGS" \ + meson . build \ + --prefix / \ + --buildtype release \ + --default-library shared \ + -D libdir=lib \ + -D bpm=true \ + -D platforms="$with_platforms" \ + -D dri-drivers="$with_dri_drivers" \ + -D gallium-drivers="$with_gallium_drivers" \ + -D vulkan-drivers="$with_vulkan_drivers" \ + $with_dri \ + $with_egl \ + $with_glvnd \ + $with_glx \ + $with_llvm + ninja -C build + DESTDIR=$DESTDIR ninja -C build install + sed -i -e "s|prefix=/|prefix=|" $DESTDIR/lib/pkgconfig/*.pc -cd .. -rm -rf $PKGNAME-$PKGVERSION + cd .. + rm -rf $PKGNAME-$PKGVERSION +}