Mercurial > vanilla
diff 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 |
line wrap: on
line diff
--- a/multimedia/gst-plugins-bad/gst-plugins-bad.sh Wed Jul 28 15:24:46 2021 +0200 +++ b/multimedia/gst-plugins-bad/gst-plugins-bad.sh Wed Sep 29 13:49:32 2021 +0200 @@ -205,45 +205,42 @@ with_x="-D x11=disabled" fi -build() -{ - rm -rf $PKGNAME-$PKGVERSION - tar xvf $PKGNAME-$PKGVERSION.tar.xz - cd $PKGNAME-$PKGVERSION +rm -rf $PKGNAME-$PKGVERSION +tar xvf $PKGNAME-$PKGVERSION.tar.xz +cd $PKGNAME-$PKGVERSION - CC="$CC" \ - CFLAGS="$CFLAGS" \ - CXX="$CXX" \ - CXXFLAGS="$CXXFLAGS" \ - LDFLAGS="$LDFLAGS" \ - meson . build \ - --prefix / \ - --buildtype release \ - --default-library shared \ - -D tests=disabled \ - $with_bluetooth \ - $with_bzip2 \ - $with_curl \ - $with_dvd \ - $with_faac \ - $with_faad \ - $with_fluidsynth \ - $with_h264 \ - $with_h265 \ - $with_jpeg \ - $with_kms \ - $with_mms \ - $with_openal \ - $with_opus \ - $with_sndfile \ - $with_ssl \ - $with_wayland \ - $with_webcam \ - $with_x - CC="$CC" ninja -C build - DESTDIR=$DESTDIR ninja -C build install - sed -i -e "s|prefix=/|prefix=|" $DESTDIR/lib/pkgconfig/*.pc +CC="$CC" \ +CFLAGS="$CFLAGS" \ +CXX="$CXX" \ +CXXFLAGS="$CXXFLAGS" \ +LDFLAGS="$LDFLAGS" \ +meson . build \ + --prefix / \ + --buildtype release \ + --default-library shared \ + -D tests=disabled \ + $with_bluetooth \ + $with_bzip2 \ + $with_curl \ + $with_dvd \ + $with_faac \ + $with_faad \ + $with_fluidsynth \ + $with_h264 \ + $with_h265 \ + $with_jpeg \ + $with_kms \ + $with_mms \ + $with_openal \ + $with_opus \ + $with_sndfile \ + $with_ssl \ + $with_wayland \ + $with_webcam \ + $with_x +CC="$CC" 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