wok-next view libav/receipt @ rev 21069

Follow renaming
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Dec 12 01:52:32 2018 +0200 (2018-12-12)
parents a3c581bf52b8
children 0f2575775b2d
line source
1 # SliTaz package receipt v2.
3 PACKAGE="libav"
4 VERSION="0.6.1"
5 CATEGORY="multimedia"
6 SHORT_DESC="Open source audio and video processing tools"
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"
15 BUILD_DEPENDS="git coreutils-file-format \
16 libsdl-dev faac-dev faad2-dev lame-dev nut opencore-amr-dev openjpeg-dev \
17 netatalk-dev schroedinger-dev speex-dev libtheora-dev libvorbis-dev \
18 libvpx-dev x264 xvidcore-dev \
19 zlib-dev bzlib binutils "
20 SPLIT="$PACKAGE-dev"
22 compile_rules() {
23 case $ARCH in
24 i?86) ARCH_ARGS='--arch=i486 --cpu=i486';;
25 *) ARCH_ARGS='';;
26 esac
28 sed -i 's|config.h"|&\n#include "libavformat/internal.h"\n#include "libavutil/common.h"|' ffserver.c
29 ./configure \
30 --prefix=/usr \
31 --enable-shared \
32 --enable-gpl \
33 --enable-nonfree \
34 --enable-runtime-cpudetect \
35 --disable-doc \
36 --enable-postproc \
37 --enable-avfilter \
38 --enable-avfilter-lavf \
39 --enable-pthreads \
40 --enable-x11grab \
41 --disable-debug \
42 $ARCH_ARGS &&
43 make &&
44 make install
45 }
47 genpkg_rules() {
48 case $PACKAGE in
49 libav)
50 copy @std
51 DEPENDS="libsdl zlib"
52 ;;
53 *-dev)
54 copy @dev
55 DEPENDS="libav zlib-dev"
56 ;;
57 esac
58 }