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