wok-next annotate libmpeg2/receipt @ rev 19904
avrdude: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Oct 12 18:55:33 2017 +0200 (2017-10-12) |
parents | 4904e3d374a9 |
children | 25deb7c6df08 |
rev | line source |
---|---|
al@19818 | 1 # SliTaz package receipt v2. |
jozee@2943 | 2 |
jozee@2943 | 3 PACKAGE="libmpeg2" |
jozee@2943 | 4 VERSION="0.5.1" |
jozee@2943 | 5 CATEGORY="multimedia" |
al@19818 | 6 SHORT_DESC="Decoding MPEG-1 and MPEG-2 video streams" |
jozee@2943 | 7 MAINTAINER="jozee@slitaz.org" |
pascal@14714 | 8 LICENSE="GPL2" |
al@19818 | 9 WEB_SITE="http://libmpeg2.sourceforge.net/" |
al@19818 | 10 |
jozee@2943 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@19818 | 12 WGET_URL="http://libmpeg2.sourceforge.net/files/$TARBALL" # no $SF_MIRROR |
jozee@2943 | 13 |
al@19818 | 14 BUILD_DEPENDS="gfortran xorg-libX11-dev xorg-libICE-dev xorg-libXext-dev \ |
al@19818 | 15 xorg-libSM-dev xorg-libXv-dev" |
al@19818 | 16 SPLIT="libmpeg2-dev" |
pascal@14714 | 17 |
jozee@2943 | 18 # Rules to configure and make the package. |
jozee@2943 | 19 compile_rules() |
jozee@2943 | 20 { |
al@19818 | 21 # http://www.linuxfromscratch.org/blfs/view/stable/multimedia/libmpeg2.html |
al@19818 | 22 sed -i 's/static const/static/' libmpeg2/idct_mmx.c && |
al@19818 | 23 |
al@19818 | 24 ./configure \ |
al@19818 | 25 --enable-shared \ |
al@19818 | 26 --disable-static \ |
gokhlayeh@11573 | 27 $CONFIGURE_ARGS && |
pascal@2964 | 28 make && |
al@19818 | 29 make install && |
al@19818 | 30 |
al@19818 | 31 docdir=$install/usr/share/doc/mpeg2dec-$VERSION && |
al@19818 | 32 mkdir -p $docdir && |
al@19818 | 33 install -v -m644 README doc/libmpeg2.txt $docdir |
jozee@2943 | 34 } |
jozee@2943 | 35 |
jozee@2943 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@2943 | 37 genpkg_rules() |
jozee@2943 | 38 { |
al@19818 | 39 case $PACKAGE in |
al@19818 | 40 libmpeg2) |
al@19818 | 41 copy @std |
al@19818 | 42 DEPENDS="xorg-libICE xorg-libSM xorg-libX11 xorg-libXext xorg-libXv" |
al@19818 | 43 TAGS="mpeg-1 mpeg-2 decoder" |
al@19818 | 44 ;; |
al@19818 | 45 *-dev) |
al@19818 | 46 copy @dev |
al@19818 | 47 ;; |
al@19818 | 48 esac |
jozee@2943 | 49 } |