wok-4.x view libsmpeg/receipt @ rev 5561
hubbub, libnsgif, libparserutils, libsmpeg: cache svn fetched files in SOURCES_REPOSITORY
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri May 14 10:47:49 2010 +0200 (2010-05-14) |
parents | 8752c40cc534 |
children | a11358feced4 |
line source
1 # SliTaz package receipt.
3 PACKAGE="libsmpeg"
4 SOURCE="smpeg"
5 VERSION="389"
6 CATEGORY="development"
7 SHORT_DESC="Mpeg decoding library"
8 MAINTAINER="claudinei@slitaz.org"
9 WEB_SITE="http://icculus.org/smpeg"
10 DEPENDS="libsdl gcc-lib-base"
11 BUILD_DEPENDS="libsdl libsdl-dev gtk+-dev autoconf automake m4 subversion"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 [ -d "$SOURCE-$VERSION" ] && rm -rf $SOURCE-$VERSION
18 TARBALL=$SOURCES_REPOSITORY/$PACKAGE-svn-$VERSION.tar.gz
19 if [ -f $TARBALL ]; then
20 tar xzf $TARBALL
21 else
22 svn co svn://svn.icculus.org/$SOURCE/trunk \
23 -r $VERSION $SOURCE-$VERSION
24 tar czf $TARBALL $SOURCE-$VERSION
25 fi
26 cd $src
27 chmod +x install-sh
28 ./autogen.sh
29 ./configure --prefix=/usr --disable-gtk-player $CONFIGURE_ARGS &&
30 make &&
31 make DESTDIR=$PWD/_pkg install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/lib
38 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
40 }