wok annotate libav/receipt @ rev 24326

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jan 27 12:16:00 2022 +0000 (2022-01-27)
parents ebfc45d562c1
children fb22330086d8
rev   line source
al@14123 1 # SliTaz package receipt.
al@14123 2
al@14123 3 PACKAGE="libav"
Hans-G?nter@23010 4 VERSION="0.6.6"
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"
Hans-G?nter@23010 15 WGET_URL="${WEB_SITE}releases/$TARBALL"
al@14123 16
al@14123 17 DEPENDS="libsdl xorg-libXfixes zlib"
Hans-G?nter@23010 18 BUILD_DEPENDS="binutils bzlib coreutils-file-format faac-dev
Hans-G?nter@23010 19 faad2-dev lame-dev libsdl-dev libtheora-dev libvorbis-dev
Hans-G?nter@23010 20 libvpx-dev netatalk-dev nut opencore-amr-dev openjpeg-dev
Hans-G?nter@23010 21 schroedinger-dev speex-dev x264 xvidcore-dev zlib-dev"
al@14123 22
pascal@24326 23 # What is the latest version available today?
pascal@24326 24 current_version()
pascal@24326 25 {
pascal@24326 26 wget -O - https://github.com/andoma/libav/tags 2>/dev/null | \
pascal@24326 27 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
pascal@24326 28 }
pascal@24326 29
al@14123 30 # Rules to configure and make the package.
al@14123 31 compile_rules()
al@14123 32 {
Hans-G?nter@23010 33 ./configure \
Hans-G?nter@23010 34 --prefix=/usr \
Hans-G?nter@23010 35 --enable-avfilter \
Hans-G?nter@23010 36 --enable-avfilter-lavf \
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-postproc \
Hans-G?nter@23010 42 --enable-pthreads \
Hans-G?nter@23010 43 --enable-runtime-cpudetect \
Hans-G?nter@23010 44 --enable-shared \
Hans-G?nter@23010 45 --enable-x11grab \
Hans-G?nter@23010 46 --arch=i486 \
Hans-G?nter@23010 47 --cpu=i486 &&
Hans-G?nter@23010 48 make &&
al@14123 49 make install
al@14123 50 }
al@14123 51
al@14123 52 # Rules to gen a SliTaz package suitable for Tazpkg.
al@14123 53 genpkg_rules()
al@14123 54 {
al@14123 55 mkdir -p $fs/usr/lib
Hans-G?nter@23010 56
Hans-G?nter@23010 57 cp -a $install/usr/bin $fs/usr
Hans-G?nter@23010 58 cp -a $install/usr/lib/*.so* $fs/usr/lib
Hans-G?nter@23010 59 cp -a $install/usr/share $fs/usr
al@14123 60 }