wok-next annotate libsmpeg/receipt @ rev 20762
Add leanify
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Jun 05 17:27:09 2018 +0300 (2018-06-05) |
parents | 8940878905f3 |
children | df20b2110f7e |
rev | line source |
---|---|
al@20462 | 1 # SliTaz package receipt v2. |
claudinei@3338 | 2 |
claudinei@3338 | 3 PACKAGE="libsmpeg" |
claudinei@14863 | 4 VERSION="399" |
claudinei@3338 | 5 CATEGORY="development" |
al@20462 | 6 SHORT_DESC="MPEG decoding library" |
claudinei@3338 | 7 MAINTAINER="claudinei@slitaz.org" |
pascal@15004 | 8 LICENSE="LGPL2" |
claudinei@3338 | 9 WEB_SITE="http://icculus.org/smpeg" |
al@20462 | 10 |
al@20462 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
al@20462 | 12 BRANCH="$VERSION" |
al@20462 | 13 WGET_URL="subversion|svn://svn.icculus.org/smpeg/trunk" |
al@20462 | 14 |
slaxemulator@8112 | 15 BUILD_DEPENDS="libsdl libsdl-dev gtk+-dev autoconf automake m4 subversion tar" |
al@20462 | 16 SPLIT="libsmpeg-dev" |
claudinei@3338 | 17 |
al@20462 | 18 compile_rules() { |
pascal@19932 | 19 sed -i 's/ 0-1/(unsigned int)&/g' audio/hufftable.cpp |
claudinei@3338 | 20 chmod +x install-sh |
claudinei@3338 | 21 ./autogen.sh |
al@20462 | 22 ./configure \ |
al@20462 | 23 --disable-gtk-player \ |
al@20462 | 24 $CONFIGURE_ARGS && |
al@20595 | 25 fix libtool && |
slaxemulator@6692 | 26 make LDFLAGS+=-lstdc++ && |
pascal@15004 | 27 make DESTDIR=$DESTDIR install |
claudinei@3338 | 28 } |
claudinei@3338 | 29 |
al@20462 | 30 genpkg_rules() { |
al@20462 | 31 case $PACKAGE in |
al@20462 | 32 libsmpeg) |
al@20462 | 33 mkdir -p $fs/usr/lib |
al@20462 | 34 cp -a $install/usr/lib/*.so* $fs/usr/lib |
al@20462 | 35 DEPENDS="libsdl gcc-lib-base" |
al@20462 | 36 ;; |
al@20462 | 37 *-dev) |
al@20462 | 38 mkdir -p $fs/usr/bin $fs/usr/lib $fs/usr/share $fs/usr/include |
al@20462 | 39 cp $install/usr/bin/smpeg-config $fs/usr/bin |
al@20462 | 40 chmod +x $fs/usr/bin/smpeg-config |
al@20462 | 41 cp -a $install/usr/include/smpeg $fs/usr/include |
al@20462 | 42 cp -a $install/usr/lib/*.a $fs/usr/lib |
al@20462 | 43 cp -a $install/usr/share/aclocal $fs/usr/share |
al@20462 | 44 #fix aclocal warnings |
al@20462 | 45 sed -i "s#(AM_PATH_SMPEG#([AM_PATH_SMPEG]#" $fs/usr/share/aclocal/smpeg.m4 |
al@20462 | 46 ;; |
al@20462 | 47 esac |
claudinei@3338 | 48 } |