wok-6.x view libsdl/receipt @ rev 10659
erlang: fix wrong bdep
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri May 27 07:31:03 2011 +0200 (2011-05-27) |
parents | cf8b4889e6ab |
children | 42fbb057e6bc |
line source
1 # SliTaz package receipt.
3 PACKAGE="libsdl"
4 VERSION="1.2.14"
5 CATEGORY="x-window"
6 SHORT_DESC="Simple DirectMedia Layer (used by Qemu)."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="xorg-libXext xorg-libXrender xorg-libX11"
9 BUILD_DEPENDS="libglu-mesa"
10 SOURCE="SDL"
11 TARBALL="$SOURCE-$VERSION.tar.gz"
12 WEB_SITE="http://www.libsdl.org/"
13 WGET_URL="http://www.libsdl.org/release/$TARBALL"
14 COOK_OPT="!libtool"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 patch -Np1 -i $stuff/sdl-$VERSION-joystick-crash.diff
21 patch -Np1 -i $stuff/sdl-$VERSION-fix-mouse-clicking.patch
22 patch -Np1 -i $stuff/sdl-$VERSION-fix-disappearing-cursor.patch
23 ./configure && make && make install
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/usr/lib
30 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
31 }
33 post_install()
34 {
35 [ -d "/var/lib/tazpkg/installed/libSDL" ] && rm -rf /var/lib/tazpkg/installed/libSDL
36 }