smlinux/extra/ffmpeg/ffmpeg.SMBuild

65 lines
1.6 KiB
Text
Executable file

app=ffmpeg
version=4.3
build=1sml
homepage="https://ffmpeg.org/"
download="https://ffmpeg.org/releases/ffmpeg-4.3.tar.xz"
desc="Software to record, convert and stream audio and video"
requires="libass libdrm freetype fribidi libmodplug opus lame mpg123 soxr libtheora libvorbis libvpx libxml2 libwebp wavpack sdl2 twolame librsvg libcdio openjpeg"
build() {
mkandenterbuilddir
rm -rf $app-$version
tar xf $srcdir/$app-$version.tar.?z*
cd $app-$version
fixbuilddirpermissions
./configure \
--prefix="" \
--bindir=/bin \
--incdir=/include \
--libdir=/lib \
--docdir=/share \
--mandir=/share/man \
--datadir=/share \
--enable-shared \
--disable-static \
--disable-debug \
--disable-htmlpages \
--disable-txtpages \
--enable-gpl \
--enable-version3 \
--enable-shared \
--enable-libx264 \
--enable-libass \
--enable-libdrm \
--enable-libfreetype \
--enable-libfribidi \
--enable-libmodplug \
--enable-libmp3lame \
--enable-libopus \
--enable-libsoxr \
--enable-libtheora \
--enable-libvorbis \
--enable-libvpx \
--enable-libwebp \
--enable-libxml2 \
--enable-libwavpack \
--enable-sdl2 \
--enable-libtwolame \
--enable-librsvg \
--enable-libopenjpeg \
--enable-libcdio
# For some reason ffmpeg's make does not pick up MAKEFLAGS from the env
make $MAKEFLAGS
make install DESTDIR=$pkg
cp LICENSE.md COPYING* $pkgdocs/
mkfinalpkg
}
sha512sums="
12cc3a9337f6d9e1c7a63120f3fd8a92e5ac6031e9ba8893dc6b4b799befed08d54983b088e711705629b9a8fea9c6ada4887e845b1d0166e78a778b239af896 ffmpeg-4.3.tar.lz
"