wok-next view libav/receipt @ rev 20730
glib: up (2.56.1) with static libs and Python2
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue May 29 15:17:41 2018 +0300 (2018-05-29) |
parents | 48817c16eab3 |
children | 7a27d976b7a5 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="libav"
4 VERSION="0.6.1"
5 CATEGORY="multimedia"
6 SHORT_DESC="clone of git://git.libav.org/libav"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="GPL2 GPL3 LGPL2.1 LGPL3"
9 WEB_SITE="http://www.libav.org/"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WGET_URL="git|git://github.com/andoma/libav.git"
12 BRANCH="v$VERSION"
14 BUILD_DEPENDS="git coreutils-file-format \
15 libsdl-dev faac-dev faad2-dev lame-dev nut opencore-amr-dev openjpeg-dev \
16 netatalk-dev schroedinger-dev speex-dev libtheora-dev libvorbis-dev \
17 libvpx-dev x264 xvidcore-dev \
18 zlib-dev bzlib binutils "
19 SPLIT="libav-dev"
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 sed -i 's|config.h"|&\n#include "libavformat/internal.h"\n#include "libavutil/common.h"|' ffserver.c
25 ./configure \
26 --prefix=/usr \
27 --enable-shared \
28 --enable-gpl \
29 --enable-nonfree \
30 --enable-runtime-cpudetect \
31 --disable-doc \
32 --enable-postproc \
33 --enable-avfilter \
34 --enable-avfilter-lavf \
35 --enable-pthreads \
36 --enable-x11grab \
37 --disable-debug \
38 --arch=i486 \
39 --cpu=i486 && \
40 make && \
41 make install
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 case $PACKAGE in
48 libav)
49 DEPENDS="libsdl xorg-libXfixes zlib"
50 mkdir -p $fs/usr/lib
51 cp -a $install/usr/bin $fs/usr
52 cp -a $install/usr/lib/*.so* $fs/usr/lib
53 cp -a $install/usr/share $fs/usr
54 ;;
55 libav-dev)
56 mkdir -p $fs/usr/lib
57 cp -a $install/usr/include $fs/usr
58 cp -a $install/usr/lib/*.a $fs/usr/lib
59 cp -a $install/usr/lib/pkgconfig $fs/usr/lib
60 ;;
61 esac
62 }