wok view libsdl/receipt @ rev 24780

transmission: autoconf 2.70+ bug workaround
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Mar 19 20:17:02 2022 +0000 (2022-03-19)
parents 6aefc0ee1ed5
children
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 # What is the latest version available today?
28 current_version()
29 {
30 wget -O - ${WGET_URL%/*} 2>/dev/null | \
31 sed "/latest/d;/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
32 }
34 # Rules to configure and make the package.
35 compile_rules()
36 {
37 # patch -Np1 -i $stuff/sdl-$VERSION-joystick-crash.diff
38 # patch -Np1 -i $stuff/sdl-$VERSION-fix-mouse-clicking.patch
39 # patch -Np1 -i $stuff/sdl-$VERSION-fix-disappearing-cursor.patch
40 # patch -Np1 -i $stuff/sdl-1.2.14-add-XGetRequest-symbol.patch
41 ./configure $CONFIGURE_ARGS &&
42 make -j 1 &&
43 make install
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 mkdir -p $fs/usr/lib
50 cp -a $install/usr/lib/*.so* $fs/usr/lib
51 }
53 post_install()
54 {
55 [ ! -d "$1$INSTALLED/libSDL" ] || rm -rf "$1$INSTALLED/libSDL"
56 }