wok-next diff libmpeg2/receipt @ rev 20002
Up qps, avidemux, tea
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Fri Oct 20 23:49:15 2017 +0200 (2017-10-20) |
parents | 4904e3d374a9 |
children | 25deb7c6df08 |
line diff
1.1 --- a/libmpeg2/receipt Tue Jun 11 10:41:23 2013 +0200 1.2 +++ b/libmpeg2/receipt Fri Oct 20 23:49:15 2017 +0200 1.3 @@ -1,34 +1,49 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="libmpeg2" 1.8 VERSION="0.5.1" 1.9 CATEGORY="multimedia" 1.10 -SHORT_DESC="library for decoding MPEG-1 and MPEG-2 video streams" 1.11 +SHORT_DESC="Decoding MPEG-1 and MPEG-2 video streams" 1.12 MAINTAINER="jozee@slitaz.org" 1.13 LICENSE="GPL2" 1.14 +WEB_SITE="http://libmpeg2.sourceforge.net/" 1.15 + 1.16 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.17 -WEB_SITE="http://libmpeg2.sourceforge.net/" 1.18 -WGET_URL="$WEB_SITE/files/$TARBALL" 1.19 -TAGS="mpeg-1 mpeg-2 decoder" 1.20 +WGET_URL="http://libmpeg2.sourceforge.net/files/$TARBALL" # no $SF_MIRROR 1.21 1.22 -DEPENDS="libsdl xorg-libICE xorg-libSM xorg-libX11 xorg-libXau \ 1.23 -xorg-libXdmcp xorg-libXext xorg-libXv" 1.24 -BUILD_DEPENDS="glibc-base xorg-libXv-dev" 1.25 +BUILD_DEPENDS="gfortran xorg-libX11-dev xorg-libICE-dev xorg-libXext-dev \ 1.26 +xorg-libSM-dev xorg-libXv-dev" 1.27 +SPLIT="libmpeg2-dev" 1.28 1.29 # Rules to configure and make the package. 1.30 compile_rules() 1.31 { 1.32 - cd $src 1.33 - ./configure --prefix=/usr --enable-shared --disable-static \ 1.34 + # http://www.linuxfromscratch.org/blfs/view/stable/multimedia/libmpeg2.html 1.35 + sed -i 's/static const/static/' libmpeg2/idct_mmx.c && 1.36 + 1.37 + ./configure \ 1.38 + --enable-shared \ 1.39 + --disable-static \ 1.40 $CONFIGURE_ARGS && 1.41 make && 1.42 - make DESTDIR=$DESTDIR install 1.43 + make install && 1.44 + 1.45 + docdir=$install/usr/share/doc/mpeg2dec-$VERSION && 1.46 + mkdir -p $docdir && 1.47 + install -v -m644 README doc/libmpeg2.txt $docdir 1.48 } 1.49 1.50 # Rules to gen a SliTaz package suitable for Tazpkg. 1.51 genpkg_rules() 1.52 { 1.53 - mkdir -p $fs/usr/lib 1.54 - cp -a $install/usr/bin $fs/usr 1.55 - cp -a $install/usr/lib/*.so* $fs/usr/lib/ 1.56 + case $PACKAGE in 1.57 + libmpeg2) 1.58 + copy @std 1.59 + DEPENDS="xorg-libICE xorg-libSM xorg-libX11 xorg-libXext xorg-libXv" 1.60 + TAGS="mpeg-1 mpeg-2 decoder" 1.61 + ;; 1.62 + *-dev) 1.63 + copy @dev 1.64 + ;; 1.65 + esac 1.66 }