Mercurial > vanilla
diff multimedia/ffmpeg/ffmpeg.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/multimedia/ffmpeg/ffmpeg.sh Fri Oct 15 16:07:30 2021 +0200 +++ b/multimedia/ffmpeg/ffmpeg.sh Wed Oct 27 11:32:16 2021 +0200 @@ -305,48 +305,51 @@ : ${LDFLAGS:=} : ${LIBS:=} -rm -rf $PKGNAME-$PKGVERSION -tar xvf $PKGNAME-$PKGVERSION.tar.bz2 -cd $PKGNAME-$PKGVERSION +build() +{ + rm -rf $PKGNAME-$PKGVERSION + tar xvf $PKGNAME-$PKGVERSION.tar.bz2 + cd $PKGNAME-$PKGVERSION -sed -i -e 's|prefix_default="/usr/local"|prefix_default=|' configure -CC="$CC" \ -CFLAGS="$CFLAGS" \ -CXX="$CXX" \ -CXXFLAGS="$CXXFLAGS" \ -LDFLAGS="$LDFLAGS" \ -LIBS="$LIBS" \ -./configure \ - --enable-shared \ - --logfile=/dev/null \ - $with_alsa \ - $with_bluray \ - $with_bzip2 \ - $with_crypto \ - $with_fontconfig \ - $with_fribidi \ - $with_gmp \ - $with_jack \ - $with_lzma \ - $with_mp3 \ - $with_opengl \ - $with_opus \ - $with_pulseaudio \ - $with_sdl \ - $with_speex \ - $with_ssh \ - $with_ssl \ - $with_svg \ - $with_theora \ - $with_ttf \ - $with_vorbis \ - $with_webp \ - $with_x265 \ - $with_x \ - $with_xml \ - $with_zlib -make -make install DESTDIR=$DESTDIR + sed -i -e 's|prefix_default="/usr/local"|prefix_default=|' configure + CC="$CC" \ + CFLAGS="$CFLAGS" \ + CXX="$CXX" \ + CXXFLAGS="$CXXFLAGS" \ + LDFLAGS="$LDFLAGS" \ + LIBS="$LIBS" \ + ./configure \ + --enable-shared \ + --logfile=/dev/null \ + $with_alsa \ + $with_bluray \ + $with_bzip2 \ + $with_crypto \ + $with_fontconfig \ + $with_fribidi \ + $with_gmp \ + $with_jack \ + $with_lzma \ + $with_mp3 \ + $with_opengl \ + $with_opus \ + $with_pulseaudio \ + $with_sdl \ + $with_speex \ + $with_ssh \ + $with_ssl \ + $with_svg \ + $with_theora \ + $with_ttf \ + $with_vorbis \ + $with_webp \ + $with_x265 \ + $with_x \ + $with_xml \ + $with_zlib + make + make install DESTDIR=$DESTDIR -cd .. -rm -rf $PKGNAME-$PKGVERSION + cd .. + rm -rf $PKGNAME-$PKGVERSION +}