wok-next view libsmpeg/receipt @ rev 21017

Some maintenance
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Oct 16 16:46:05 2018 +0300 (2018-10-16)
parents df20b2110f7e
children d5aab818505e
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 gtk2-dev autoconf automake m4 subversion tar"
17 SPLIT="$PACKAGE-dev"
19 compile_rules() {
20 sed -i 's/ 0-1/(unsigned int)&/g' audio/hufftable.cpp
21 chmod +x install-sh
23 ./autogen.sh
24 ./configure \
25 --disable-gtk-player \
26 $CONFIGURE_ARGS &&
27 fix libtool &&
28 make LDFLAGS+=-lstdc++ &&
29 make DESTDIR=$DESTDIR install
30 }
32 genpkg_rules() {
33 case $PACKAGE in
34 libsmpeg)
35 mkdir -p $fs/usr/lib
36 cp -a $install/usr/lib/*.so* $fs/usr/lib
37 DEPENDS="libsdl gcc-lib-base"
38 ;;
39 *-dev)
40 mkdir -p $fs/usr/bin $fs/usr/lib $fs/usr/share $fs/usr/include
41 cp $install/usr/bin/smpeg-config $fs/usr/bin
42 chmod +x $fs/usr/bin/smpeg-config
43 cp -a $install/usr/include/smpeg $fs/usr/include
44 cp -a $install/usr/lib/*.a $fs/usr/lib
45 cp -a $install/usr/share/aclocal $fs/usr/share
46 #fix aclocal warnings
47 sed -i "s#(AM_PATH_SMPEG#([AM_PATH_SMPEG]#" $fs/usr/share/aclocal/smpeg.m4
48 ;;
49 esac
50 }