wok-6.x annotate libsdl/receipt @ rev 24715

updated lfs-book (8.4 -> 11.1)
author Hans-G?nter Theisgen
date Tue Mar 15 06:57:03 2022 +0100 (2022-03-15)
parents 6aefc0ee1ed5
children
rev   line source
pankso@3424 1 # SliTaz package receipt.
pankso@3424 2
pankso@3424 3 PACKAGE="libsdl"
Hans-G?nter@21289 4 VERSION="1.2.15"
pankso@3424 5 CATEGORY="x-window"
Hans-G?nter@21289 6 SHORT_DESC="Simple DirectMedia Layer."
pankso@3424 7 MAINTAINER="pankso@slitaz.org"
pascal@14718 8 LICENSE="LGPL2.1"
Hans-G?nter@21289 9 WEB_SITE="http://www.libsdl.org/"
Hans-G?nter@21289 10
pankso@3424 11 SOURCE="SDL"
pankso@3424 12 TARBALL="$SOURCE-$VERSION.tar.gz"
pankso@3424 13 WGET_URL="http://www.libsdl.org/release/$TARBALL"
Hans-G?nter@21289 14
Hans-G?nter@21289 15 DEPENDS="xorg-libX11 xorg-libXext xorg-libXrender"
Hans-G?nter@21289 16 BUILD_DEPENDS="alsa-lib-dev libglu-mesa mesa-dev xorg-libX11-dev xorg-libXext-dev \
Hans-G?nter@21289 17 xorg-libXrender-dev xorg-libXt-dev"
Hans-G?nter@21289 18
pankso@16084 19 HOST_ARCH="i486 arm"
pankso@3424 20
pankso@16085 21 # Handle cross compilation.
pankso@16086 22 case "$ARCH" in
Hans-G?nter@21289 23 arm) BUILD_DEPENDS="xorg-libX11-devxorg-libXext-dev xorg-libXrender-dev \
Hans-G?nter@21289 24 xorg-libXt-dev" ;;
pankso@16085 25 esac
pascal@14718 26
pascal@24447 27 # What is the latest version available today?
pascal@24447 28 current_version()
pascal@24447 29 {
pascal@24447 30 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24447 31 sed "/latest/d;/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
pascal@24447 32 }
pascal@24447 33
pankso@3424 34 # Rules to configure and make the package.
pankso@3424 35 compile_rules()
pankso@3424 36 {
Hans-G?nter@21289 37 # patch -Np1 -i $stuff/sdl-$VERSION-joystick-crash.diff
Hans-G?nter@21289 38 # patch -Np1 -i $stuff/sdl-$VERSION-fix-mouse-clicking.patch
Hans-G?nter@21289 39 # patch -Np1 -i $stuff/sdl-$VERSION-fix-disappearing-cursor.patch
Hans-G?nter@21289 40 # patch -Np1 -i $stuff/sdl-1.2.14-add-XGetRequest-symbol.patch
Hans-G?nter@21289 41 ./configure $CONFIGURE_ARGS &&
Hans-G?nter@21289 42 make -j 1 &&
Hans-G?nter@21289 43 make install
pankso@3424 44 }
pankso@3424 45
pankso@3424 46 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@3424 47 genpkg_rules()
pankso@3424 48 {
pankso@3424 49 mkdir -p $fs/usr/lib
pascal@14718 50 cp -a $install/usr/lib/*.so* $fs/usr/lib
pankso@3424 51 }
pankso@3424 52
pankso@3424 53 post_install()
pankso@3424 54 {
pascal@18707 55 [ ! -d "$1$INSTALLED/libSDL" ] || rm -rf "$1$INSTALLED/libSDL"
pankso@3424 56 }