Browse Source

xap/ffmpeg: Upgraded to ffmpeg-3.2.4.

slackware-14.2
Damien Goutte-Gattat 5 years ago
parent
commit
361c16ae23
  1. 1
      xap/ffmpeg/ffmpeg-2.8.6.tar.bz2.sha1
  2. 1
      xap/ffmpeg/ffmpeg-3.2.4.tar.bz2.sha256
  3. 23
      xap/ffmpeg/ffmpeg.SlackBuild

1
xap/ffmpeg/ffmpeg-2.8.6.tar.bz2.sha1

@ -1 +0,0 @@
974f470b551e745bbfb836c71a6a987be974faaf ffmpeg-2.8.6.tar.bz2

1
xap/ffmpeg/ffmpeg-3.2.4.tar.bz2.sha256

@ -0,0 +1 @@
c0fa3593a2e9e96ace3c1757900094437ad96d1d6ca19f057c378b5f394496a4 ffmpeg-3.2.4.tar.bz2

23
xap/ffmpeg/ffmpeg.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2008-2010,2012-2016 Damien Goutte-Gattat
# Copyright (C) 2008-2010,2012-2017 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -28,7 +28,7 @@
# Source package infos
NAMESRC=${NAMESRC:-ffmpeg}
VERSION=${VERSION:-2.8.6}
VERSION=${VERSION:-3.2.4}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.bz2}
WGET=${WGET:-http://ffmpeg.org/releases/$ARCHIVE}
@ -77,7 +77,7 @@ if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
fi
sha1sum -c $ARCHIVE.sha1
sha256sum -c $ARCHIVE.sha256
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
# Compile
@ -101,6 +101,8 @@ cd $NAME
--enable-avresample \
--enable-x11grab \
--enable-fontconfig \
--enable-gcrypt \
--enable-gmp \
--enable-gnutls \
--enable-libcaca \
--enable-libcdio \
@ -110,6 +112,7 @@ cd $NAME
--enable-libmp3lame \
--enable-libopus \
--enable-libpulse \
--enable-libv4l2 \
--enable-libvpx \
--enable-libx264 \
--enable-libxvid
@ -121,12 +124,22 @@ find $PKG/usr/man -type f -exec gzip -9 '{}' \;
# Install the documentation
mkdir -p $PKG/usr/doc/$NAMEPKG-$VERSION
install -m 644 COPYING.* CREDITS Changelog LICENSE.md MAINTAINERS README.md \
RELEASE_NOTES doc/*.txt $PKG/usr/doc/$NAMEPKG-$VERSION
install -m 644 CONTRIBUTING.md COPYING.* CREDITS Changelog LICENSE.md \
MAINTAINERS README.md RELEASE_NOTES doc/*.txt $PKG/usr/doc/$NAMEPKG-$VERSION
mv $PKG/usr/share/doc/ffmpeg $PKG/usr/doc/$NAMEPKG-$VERSION/html
rmdir $PKG/usr/share/doc
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
# Add dependency infos
cat <<EOF > $PKG/install/slack-required
lame
opus
x264
xvidcore
EOF
# Package the tree
cd $PKG
mkdir -p $OUT

Loading…
Cancel
Save