wok-current view libsdl/receipt @ rev 24327
updated aspell-en (2019.10.06.0 -> 2020.12.07.0)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Jan 27 13:26:44 2022 +0100 (2022-01-27) |
parents | 1067bb7f1e24 |
children | ede1d184d5c5 |
line source
1 # SliTaz package receipt.
3 PACKAGE="libsdl"
4 VERSION="1.2.15"
5 CATEGORY="x-window"
6 SHORT_DESC="Simple DirectMedia Layer."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="LGPL2.1"
9 WEB_SITE="http://www.libsdl.org/"
11 SOURCE="SDL"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="http://www.libsdl.org/release/$TARBALL"
15 DEPENDS="xorg-libX11 xorg-libXext xorg-libXrender"
16 BUILD_DEPENDS="alsa-lib-dev libglu-mesa mesa-dev xorg-libX11-dev xorg-libXext-dev \
17 xorg-libXrender-dev xorg-libXt-dev"
19 HOST_ARCH="i486 arm"
21 # Handle cross compilation.
22 case "$ARCH" in
23 arm) BUILD_DEPENDS="xorg-libX11-devxorg-libXext-dev xorg-libXrender-dev \
24 xorg-libXt-dev" ;;
25 esac
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 # patch -Np1 -i $stuff/sdl-$VERSION-joystick-crash.diff
31 # patch -Np1 -i $stuff/sdl-$VERSION-fix-mouse-clicking.patch
32 # patch -Np1 -i $stuff/sdl-$VERSION-fix-disappearing-cursor.patch
33 # patch -Np1 -i $stuff/sdl-1.2.14-add-XGetRequest-symbol.patch
34 ./configure $CONFIGURE_ARGS &&
35 make -j 1 &&
36 make install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/lib
43 cp -a $install/usr/lib/*.so* $fs/usr/lib
44 }
46 post_install()
47 {
48 [ ! -d "$1$INSTALLED/libSDL" ] || rm -rf "$1$INSTALLED/libSDL"
49 }