diff options
Diffstat (limited to '')
-rwxr-xr-x | ffmpeg/build/ffmpeg.SlackBuild | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/ffmpeg/build/ffmpeg.SlackBuild b/ffmpeg/build/ffmpeg.SlackBuild index d75c047a..bd22ec17 100755 --- a/ffmpeg/build/ffmpeg.SlackBuild +++ b/ffmpeg/build/ffmpeg.SlackBuild @@ -243,7 +243,7 @@ src_checkout() { # Param #1 : index in the SOURCE[] array. # Param #2 : full path to where SOURCE[$i] tarball should be created. # Determine the tarball extension: - PEXT=`echo "${2}" | sed -r -e 's/.*[^.].(tar.gz|tar.bz2|tgz).*/\1/'` + PEXT=$(echo "${2}" | sed -r -e 's/.*[^.].(tar.gz|tar.bz2|tgz).*/\1/') if [ "$PEXT" == "${2}" ]; then # we did not find a allowed extension echo "Archive can only have extension '.tar.gz' '.tar.bz2' or '.tgz'" exit 1 @@ -799,6 +799,7 @@ PKG_CONFIG_PATH="$FFMPEGDEPSDIR/usr/lib/pkgconfig" \ --extra-ldflags="-L$FFMPEGDEPSDIR/usr/lib" \ 2>&1 | tee $OUTPUT/configure-${PRGNAM}_ffmpeg.log make 2>&1 | tee $OUTPUT/make-${PRGNAM}_ffmpeg.log + cd $OLDDIR } @@ -841,6 +842,16 @@ else make DESTDIR=$PKG install 2>&1 |tee $OUTPUT/install-${PRGNAM}.log fi +# The pkg-config files are full of library dependencies which we built +# statically, so we need to edit those out so that programs that try to link +# against our ffmpeg will not get confused: +for PCFILE in $(ls $PKG/usr/lib/pkgconfig/*.pc) ; do + sed -i -e 's/libraw1394//' -e 's/-la52//' -e 's/-lamrnb//' -e 's/-lamrwb//' \ + -e 's/-lfaac//' -e 's/-lfaad//' -e 's/-lgsm//' -e 's/-lmp3lame//' \ + -e 's/-lschroedinger-[^ ]*//' -e 's/-loil-[^ ]*//' -e 's/-lx264//' \ + -e 's/-ldc1394_control//' -e 's/-lraw1394//' $PCFILE +done + # Add a configuration file for the ffserver: mkdir -p $PKG/etc cp -a doc/ffserver.conf $PKG/etc/ffserver.conf.new @@ -880,7 +891,7 @@ chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION/* # Compress the man page(s) if [ -d $PKG/usr/man ]; then find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \; - for i in `find $PKG/usr/man -type l -name "*.?"` ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done + for i in $(find $PKG/usr/man -type l -name "*.?") ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done fi # Strip binaries |