wok view libsdl/receipt @ rev 14273

njconnect - posible workaround for broken busybox unxz
author Pawel P. <xj@wp.pl>
date Fri Apr 05 11:46:37 2013 +0000 (2013-04-05)
parents b7319995b37e
children 6eff489aa802
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 mesa-dev xorg-libXt-dev xorg-libXext-dev xorg-libXrender-dev xorg-libX11-dev"
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 $CONFIGURE_ARGS && 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 }