comparison graphics/mesa/mesa.sh @ 1216:6710613b88b9

misc: remove build function
author David Demelier <markand@malikania.fr>
date Wed, 29 Sep 2021 13:49:32 +0200
parents ddab65a5b3f5
children 27d1a83dc8d6
comparison
equal deleted inserted replaced
1215:3214f7fed454 1216:6710613b88b9
101 else 101 else
102 with_dri="-D dri3=false" 102 with_dri="-D dri3=false"
103 with_glx="-D glx=disabled" 103 with_glx="-D glx=disabled"
104 fi 104 fi
105 105
106 build() 106 rm -rf $PKGNAME-$PKGVERSION
107 { 107 tar xvf $PKGNAME-$PKGVERSION.tar.xz
108 rm -rf $PKGNAME-$PKGVERSION 108 cd $PKGNAME-$PKGVERSION
109 tar xvf $PKGNAME-$PKGVERSION.tar.xz
110 cd $PKGNAME-$PKGVERSION
111 109
112 patch -p0 < ../disable-tls.patch 110 patch -p0 < ../disable-tls.patch
113 # https://git.alpinelinux.org/aports/plain/main/mesa/musl-fix-includes.patch 111 # https://git.alpinelinux.org/aports/plain/main/mesa/musl-fix-includes.patch
114 patch -p1 < ../musl.patch 112 patch -p1 < ../musl.patch
115 CC="$CC" \ 113 CC="$CC" \
116 CFLAGS="$CFLAGS" \ 114 CFLAGS="$CFLAGS" \
117 CXX="$CXX" \ 115 CXX="$CXX" \
118 CXXFLAGS="$CXXFLAGS" \ 116 CXXFLAGS="$CXXFLAGS" \
119 LDFLAGS="$LDFLAGS" \ 117 LDFLAGS="$LDFLAGS" \
120 meson . build \ 118 meson . build \
121 --prefix / \ 119 --prefix / \
122 --buildtype release \ 120 --buildtype release \
123 --default-library shared \ 121 --default-library shared \
124 -D libdir=lib \ 122 -D libdir=lib \
125 -D bpm=true \ 123 -D bpm=true \
126 -D platforms="$with_platforms" \ 124 -D platforms="$with_platforms" \
127 -D dri-drivers="$with_dri_drivers" \ 125 -D dri-drivers="$with_dri_drivers" \
128 -D gallium-drivers="$with_gallium_drivers" \ 126 -D gallium-drivers="$with_gallium_drivers" \
129 -D vulkan-drivers="$with_vulkan_drivers" \ 127 -D vulkan-drivers="$with_vulkan_drivers" \
130 $with_dri \ 128 $with_dri \
131 $with_egl \ 129 $with_egl \
132 $with_glvnd \ 130 $with_glvnd \
133 $with_glx \ 131 $with_glx \
134 $with_llvm 132 $with_llvm
135 ninja -C build 133 ninja -C build
136 DESTDIR=$DESTDIR ninja -C build install 134 DESTDIR=$DESTDIR ninja -C build install
137 sed -i -e "s|prefix=/|prefix=|" $DESTDIR/lib/pkgconfig/*.pc 135 sed -i -e "s|prefix=/|prefix=|" $DESTDIR/lib/pkgconfig/*.pc
138 136
139 cd .. 137 cd ..
140 rm -rf $PKGNAME-$PKGVERSION 138 rm -rf $PKGNAME-$PKGVERSION
141 }