wok-next view libsdl/receipt @ rev 19920
apache: update bdeps; libsdl: tiny patch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Oct 14 18:38:33 2017 +0200 (2017-10-14) |
parents | 1067bb7f1e24 |
children | 0a667524ce79 |
line source
1 # SliTaz package receipt.
3 PACKAGE="libsdl"
4 VERSION="1.2.14"
5 CATEGORY="x-window"
6 SHORT_DESC="Simple DirectMedia Layer"
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 alsa-lib-dev"
19 # Handle cross compilation.
20 case "$ARCH" in
21 arm) BUILD_DEPENDS="xorg-libXt-dev xorg-libXext-dev xorg-libXrender-dev \
22 xorg-libX11-dev" ;;
23 esac
25 # Rules to configure and make the package.
26 compile_rules()
27 {
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 sed -i 's/"=X" (mem)/"=m" (mem)/' src/video/mmx.h
33 ./configure $CONFIGURE_ARGS && make && make install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/lib
40 cp -a $install/usr/lib/*.so* $fs/usr/lib
41 }
43 post_install()
44 {
45 [ ! -d "$1$INSTALLED/libSDL" ] || rm -rf "$1$INSTALLED/libSDL"
46 }