Browse Source

Add libx264 support to ffmpeg

master
mid-kid 7 years ago
parent
commit
cb527b5161
  1. 25
      satellites/ffmpeg.sat
  2. 13
      satellites/libx264.sat
  3. 3
      satellites/markdown.sat
  4. 2
      satellites/qt5-base.sat

25
satellites/ffmpeg.sat

@ -1,15 +1,24 @@
name=ffmpeg name=ffmpeg
version=3.4.1 version=4.0
dlextract "http://ffmpeg.org/releases/$name-$version.tar.bz2" \ dlextract "http://ffmpeg.org/releases/$name-$version.tar.bz2" \
'bbf3fcded80c33968c91bf323a744286' 'bf6d0540acb6270fa52fdc53010a1206'
_ _
cd "$name-$version" cd "$name-$version"
# ffmpeg uses it's own configure script with arguably differing options to the optional=""
# regular GNU autotools configure scripts. for opt in gnutls libvpx libvorbis libass libx264; do
# Not using compile_configure due to that. lib="$opt"
case "$opt" in
libvpx) lib=vpx ;;
libvorbis) lib=vorbis ;;
libx264) lib=x264 ;;
esac
pkg-config --exists "$lib" && optional+=" --enable-$opt"
done
./configure --disable-static --enable-shared \ ./configure --disable-static --enable-shared \
--prefix="/$dir_prefix" \ --prefix="/$dir_prefix" \
--bindir="/$dir_prefix/$dir_bin" \ --bindir="/$dir_prefix/$dir_bin" \
@ -20,11 +29,7 @@ cd "$name-$version"
--mandir="/$dir_prefix/$dir_man" \ --mandir="/$dir_prefix/$dir_man" \
--enable-gpl \ --enable-gpl \
--enable-version3 \ --enable-version3 \
$(pkg-config --exists gnutls && echo --enable-gnutls) \ $optional
$(pkg-config --exists vpx && echo --enable-libvpx) \
$(pkg-config --exists vorbis && echo --enable-libvorbis) \
$(pkg-config --exists libass && echo --enable-libass)
make make
make DESTDIR="$dir_install" install make DESTDIR="$dir_install" install

13
satellites/libx264.sat

@ -0,0 +1,13 @@
import 'compile/configure'
name=x264
version=20180421-2245
dlextract "http://ftp.videolan.org/pub/videolan/$name/snapshots/$name-snapshot-$version-stable.tar.bz2" \
'c0b295d1c8950eb98eadb5193c7ea97a'
_
cd "$name-snapshot-$version-stable"
compile_configure -- --enable-shared
# vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab:

3
satellites/markdown.sat

@ -6,8 +6,7 @@ download "https://daringfireball.net/projects/downloads/${name}_$version.zip" \
_ _
# TODO: Support other formats, such as zip, with the extract command. # TODO: Support other formats, such as zip, with the extract command.
extract "${name}_$version.zip" \ extract "${name}_$version.zip" '' \
'' \
'unzip -qd {dst} {src}' 'unzip -qd {dst} {src}'
install -D "${name}_$version/$name.pl" "$dir_install/$dir_prefix/$dir_bin/markdown" install -D "${name}_$version/$name.pl" "$dir_install/$dir_prefix/$dir_bin/markdown"

2
satellites/qt5-base.sat

@ -18,7 +18,7 @@ sed -i -e "s/^\(QMAKE_LFLAGS_RELEASE.*\)/\1 $(safe_sed "$LDFLAGS")/" mkspecs/com
optional="" optional=""
for opt in libpng libjpeg freetype harfbuzz xcb xkbcommon-x11; do for opt in libpng libjpeg freetype harfbuzz xcb xkbcommon-x11; do
lib="$opt" lib="$opt"
[ "$lib" = 'freetype' ] && lib='freetype2' [ "$lib" = freetype ] && lib=freetype2
pkg-config --exists "$lib" && optional+=" -system-$opt" || optional+=" -no-$opt" pkg-config --exists "$lib" && optional+=" -system-$opt" || optional+=" -no-$opt"
done done

Loading…
Cancel
Save