wok view libav/receipt @ rev 24384
Update some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 06 16:04:43 2022 +0000 (2022-02-06) |
parents | 095836df71b7 |
children | d77ab883a8b3 |
line source
1 # SliTaz package receipt.
3 PACKAGE="libav"
4 VERSION="0.6.6"
5 CATEGORY="multimedia"
6 SHORT_DESC="Audio and video conversion library."
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="GPL2 GPL3 LGPL2.1 LGPL3"
9 WEB_SITE="https://www.libav.org/"
11 #TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 #WGET_URL="git|git://github.com/andoma/libav.git"
13 #BRANCH="v$VERSION"
14 TARBALL="$PACKAGE-$VERSION.tar.gz"
15 WGET_URL="${WEB_SITE}releases/$TARBALL"
17 DEPENDS="libsdl xorg-libXfixes zlib"
18 BUILD_DEPENDS="binutils bzlib coreutils-file-format faac-dev
19 faad2-dev lame-dev libsdl-dev libtheora-dev libvorbis-dev
20 libvpx-dev netatalk-dev nut opencore-amr-dev openjpeg-dev
21 schroedinger-dev speex-dev x264 xvidcore-dev zlib-dev"
23 # What is the latest version available today?
24 current_version()
25 {
26 wget -O - $WEB_SITE 2>/dev/null | \
27 sed '/Libav/!d;/<h/!d;s|.*Libav ||;s|<.*||;q'
28 }
30 # Rules to configure and make the package.
31 compile_rules()
32 {
33 ./configure \
34 --prefix=/usr \
35 --enable-avfilter \
36 --enable-avfilter-lavf \
37 --disable-debug \
38 --disable-doc \
39 --enable-gpl \
40 --enable-nonfree \
41 --enable-postproc \
42 --enable-pthreads \
43 --enable-runtime-cpudetect \
44 --enable-shared \
45 --enable-x11grab \
46 --arch=i486 \
47 --cpu=i486 &&
48 make &&
49 make install
50 }
52 # Rules to gen a SliTaz package suitable for Tazpkg.
53 genpkg_rules()
54 {
55 mkdir -p $fs/usr/lib
57 cp -a $install/usr/bin $fs/usr
58 cp -a $install/usr/lib/*.so* $fs/usr/lib
59 cp -a $install/usr/share $fs/usr
60 }