wok annotate libav/receipt @ rev 25071

waterline-plugin-multiload: added build dependencies
author Hans-G?nter Theisgen
date Sat Jun 11 09:07:17 2022 +0100 (2022-06-11)
parents fb22330086d8
children 7f7bd3c9775e
rev   line source
al@14123 1 # SliTaz package receipt.
al@14123 2
al@14123 3 PACKAGE="libav"
pascal@24525 4 VERSION="12.3"
al@14123 5 CATEGORY="multimedia"
Hans-G?nter@23010 6 SHORT_DESC="Audio and video conversion library."
al@14123 7 MAINTAINER="al.bobylev@gmail.com"
pascal@14653 8 LICENSE="GPL2 GPL3 LGPL2.1 LGPL3"
pascal@20669 9 WEB_SITE="https://www.libav.org/"
Hans-G?nter@23010 10
Hans-G?nter@23010 11 #TARBALL="$PACKAGE-$VERSION.tar.bz2"
Hans-G?nter@23010 12 #WGET_URL="git|git://github.com/andoma/libav.git"
Hans-G?nter@23010 13 #BRANCH="v$VERSION"
Hans-G?nter@23010 14 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@24525 15 #WGET_URL="${WEB_SITE}releases/$TARBALL"
pascal@24525 16 WGET_URL="https://github.com/libav/libav/archive/refs/tags/v$VERSION.tar.gz"
al@14123 17
al@14123 18 DEPENDS="libsdl xorg-libXfixes zlib"
Hans-G?nter@23010 19 BUILD_DEPENDS="binutils bzlib coreutils-file-format faac-dev
Hans-G?nter@23010 20 faad2-dev lame-dev libsdl-dev libtheora-dev libvorbis-dev
Hans-G?nter@23010 21 libvpx-dev netatalk-dev nut opencore-amr-dev openjpeg-dev
Hans-G?nter@23010 22 schroedinger-dev speex-dev x264 xvidcore-dev zlib-dev"
al@14123 23
pascal@24326 24 # What is the latest version available today?
pascal@24326 25 current_version()
pascal@24326 26 {
pascal@24525 27 wget -O - https://github.com/libav/libav/tags 2>/dev/null | \
pascal@24525 28 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
pascal@24326 29 }
pascal@24326 30
al@14123 31 # Rules to configure and make the package.
al@14123 32 compile_rules()
al@14123 33 {
Hans-G?nter@23010 34 ./configure \
Hans-G?nter@23010 35 --prefix=/usr \
Hans-G?nter@23010 36 --enable-avfilter \
Hans-G?nter@23010 37 --disable-debug \
Hans-G?nter@23010 38 --disable-doc \
Hans-G?nter@23010 39 --enable-gpl \
Hans-G?nter@23010 40 --enable-nonfree \
Hans-G?nter@23010 41 --enable-pthreads \
Hans-G?nter@23010 42 --enable-runtime-cpudetect \
Hans-G?nter@23010 43 --enable-shared \
Hans-G?nter@23010 44 --arch=i486 \
Hans-G?nter@23010 45 --cpu=i486 &&
Hans-G?nter@23010 46 make &&
al@14123 47 make install
al@14123 48 }
al@14123 49
al@14123 50 # Rules to gen a SliTaz package suitable for Tazpkg.
al@14123 51 genpkg_rules()
al@14123 52 {
al@14123 53 mkdir -p $fs/usr/lib
Hans-G?nter@23010 54
Hans-G?nter@23010 55 cp -a $install/usr/bin $fs/usr
Hans-G?nter@23010 56 cp -a $install/usr/lib/*.so* $fs/usr/lib
Hans-G?nter@23010 57 cp -a $install/usr/share $fs/usr
al@14123 58 }