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