wok-next view libsmpeg/receipt @ rev 20957

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