wok-6.x view libsdl/receipt @ rev 11931

clamav: improve package
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Thu Mar 01 02:34:58 2012 +0100 (2012-03-01)
parents 42fbb057e6bc
children 04f1f2b56a0f
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 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 }