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

coreutils-command, coreutils-file-summarize: restore busybox links in port_remove()
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 27 01:55:24 2011 +0100 (2011-02-27)
parents 7bbc500bb8d3
children cf8b4889e6ab
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="xorg-libXext-dev xorg-libXrender-dev xorg-libX11-dev libglu-mesa xorg-xproto xorg-xextproto "
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"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 patch -Np1 -i ../stuff/$PACKAGE-$VERSION-joystick-crash.diff
20 patch -Np1 -i ../stuff/$PACKAGE-$VERSION-fix-mouse-clicking.patch
21 patch -Np1 -i ../stuff/$PACKAGE-$VERSION-fix-disappearing-cursor.patch
22 ./configure \
23 --prefix=/usr \
24 --infodir=/usr/share/info \
25 --mandir=/usr/share/man \
26 $CONFIGURE_ARGS &&
27 make &&
28 make DESTDIR=$PWD/_pkg install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/lib
35 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
36 }
38 post_install()
39 {
40 [ -d "/var/lib/tazpkg/installed/libSDL" ] && rm -rf /var/lib/tazpkg/installed/libSDL
41 }