wok-next view libsmpeg/receipt @ rev 20785

gpgme: add gnupg, since build can not find gpgconf and gpg
author Erkan Yilmaz <erkan@slitaz.org>
date Sat Jun 09 07:02:52 2018 +0000 (2018-06-09)
parents 8940878905f3
children df20b2110f7e
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"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 BRANCH="$VERSION"
13 WGET_URL="subversion|svn://svn.icculus.org/smpeg/trunk"
15 BUILD_DEPENDS="libsdl libsdl-dev gtk+-dev autoconf automake m4 subversion tar"
16 SPLIT="libsmpeg-dev"
18 compile_rules() {
19 sed -i 's/ 0-1/(unsigned int)&/g' audio/hufftable.cpp
20 chmod +x install-sh
21 ./autogen.sh
22 ./configure \
23 --disable-gtk-player \
24 $CONFIGURE_ARGS &&
25 fix libtool &&
26 make LDFLAGS+=-lstdc++ &&
27 make DESTDIR=$DESTDIR install
28 }
30 genpkg_rules() {
31 case $PACKAGE in
32 libsmpeg)
33 mkdir -p $fs/usr/lib
34 cp -a $install/usr/lib/*.so* $fs/usr/lib
35 DEPENDS="libsdl gcc-lib-base"
36 ;;
37 *-dev)
38 mkdir -p $fs/usr/bin $fs/usr/lib $fs/usr/share $fs/usr/include
39 cp $install/usr/bin/smpeg-config $fs/usr/bin
40 chmod +x $fs/usr/bin/smpeg-config
41 cp -a $install/usr/include/smpeg $fs/usr/include
42 cp -a $install/usr/lib/*.a $fs/usr/lib
43 cp -a $install/usr/share/aclocal $fs/usr/share
44 #fix aclocal warnings
45 sed -i "s#(AM_PATH_SMPEG#([AM_PATH_SMPEG]#" $fs/usr/share/aclocal/smpeg.m4
46 ;;
47 esac
48 }