wok view libsdl/receipt @ rev 16085
ARM: add the fox toolkit (so we have a few gui apps untils GTK cross compile) and fix libsdl bdeps
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Mar 16 00:44:38 2014 +0100 (2014-03-16) |
parents | 53082fab5f1e |
children | 0514c1f0caa8 |
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 LICENSE="LGPL2.1"
9 SOURCE="SDL"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="http://www.libsdl.org/"
12 WGET_URL="http://www.libsdl.org/release/$TARBALL"
13 HOST_ARCH="i486 arm"
15 DEPENDS="xorg-libXext xorg-libXrender xorg-libX11"
16 BUILD_DEPENDS="libglu-mesa mesa-dev xorg-libXt-dev xorg-libXext-dev \
17 xorg-libXrender-dev xorg-libX11-dev"
19 # Handle cross compilation.
20 arm) BUILD_DEPENDS="xorg-libXt-dev xorg-libXext-dev xorg-libXrender-dev \
21 xorg-libX11-dev" ;;
22 esac
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 cd $src
28 patch -Np1 -i $stuff/sdl-$VERSION-joystick-crash.diff
29 patch -Np1 -i $stuff/sdl-$VERSION-fix-mouse-clicking.patch
30 patch -Np1 -i $stuff/sdl-$VERSION-fix-disappearing-cursor.patch
31 patch -Np1 -i $stuff/sdl-1.2.14-add-XGetRequest-symbol.patch
32 ./configure $CONFIGURE_ARGS && make && make install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/lib
39 cp -a $install/usr/lib/*.so* $fs/usr/lib
40 }
42 post_install()
43 {
44 [ -d "/var/lib/tazpkg/installed/libSDL" ] && rm -rf /var/lib/tazpkg/installed/libSDL
45 }