comparison multimedia/gst-plugins-bad/gst-plugins-bad.sh @ 1216:6710613b88b9

misc: remove build function
author David Demelier <markand@malikania.fr>
date Wed, 29 Sep 2021 13:49:32 +0200
parents 297b5eef115e
children 337f950c30f5
comparison
equal deleted inserted replaced
1215:3214f7fed454 1216:6710613b88b9
203 with_x="-D x11=enabled" 203 with_x="-D x11=enabled"
204 else 204 else
205 with_x="-D x11=disabled" 205 with_x="-D x11=disabled"
206 fi 206 fi
207 207
208 build() 208 rm -rf $PKGNAME-$PKGVERSION
209 { 209 tar xvf $PKGNAME-$PKGVERSION.tar.xz
210 rm -rf $PKGNAME-$PKGVERSION 210 cd $PKGNAME-$PKGVERSION
211 tar xvf $PKGNAME-$PKGVERSION.tar.xz 211
212 cd $PKGNAME-$PKGVERSION 212 CC="$CC" \
213 213 CFLAGS="$CFLAGS" \
214 CC="$CC" \ 214 CXX="$CXX" \
215 CFLAGS="$CFLAGS" \ 215 CXXFLAGS="$CXXFLAGS" \
216 CXX="$CXX" \ 216 LDFLAGS="$LDFLAGS" \
217 CXXFLAGS="$CXXFLAGS" \ 217 meson . build \
218 LDFLAGS="$LDFLAGS" \ 218 --prefix / \
219 meson . build \ 219 --buildtype release \
220 --prefix / \ 220 --default-library shared \
221 --buildtype release \ 221 -D tests=disabled \
222 --default-library shared \ 222 $with_bluetooth \
223 -D tests=disabled \ 223 $with_bzip2 \
224 $with_bluetooth \ 224 $with_curl \
225 $with_bzip2 \ 225 $with_dvd \
226 $with_curl \ 226 $with_faac \
227 $with_dvd \ 227 $with_faad \
228 $with_faac \ 228 $with_fluidsynth \
229 $with_faad \ 229 $with_h264 \
230 $with_fluidsynth \ 230 $with_h265 \
231 $with_h264 \ 231 $with_jpeg \
232 $with_h265 \ 232 $with_kms \
233 $with_jpeg \ 233 $with_mms \
234 $with_kms \ 234 $with_openal \
235 $with_mms \ 235 $with_opus \
236 $with_openal \ 236 $with_sndfile \
237 $with_opus \ 237 $with_ssl \
238 $with_sndfile \ 238 $with_wayland \
239 $with_ssl \ 239 $with_webcam \
240 $with_wayland \ 240 $with_x
241 $with_webcam \ 241 CC="$CC" ninja -C build
242 $with_x 242 DESTDIR=$DESTDIR ninja -C build install
243 CC="$CC" ninja -C build 243 sed -i -e "s|prefix=/|prefix=|" $DESTDIR/lib/pkgconfig/*.pc
244 DESTDIR=$DESTDIR ninja -C build install 244
245 sed -i -e "s|prefix=/|prefix=|" $DESTDIR/lib/pkgconfig/*.pc 245 cd ..
246 246 rm -rf $PKGNAME-$PKGVERSION
247 cd ..
248 rm -rf $PKGNAME-$PKGVERSION
249 }