wok-next annotate 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 |
rev | line source |
---|---|
pankso@3424 | 1 # SliTaz package receipt. |
pankso@3424 | 2 |
pankso@3424 | 3 PACKAGE="libsdl" |
slaxemulator@6195 | 4 VERSION="1.2.14" |
pankso@3424 | 5 CATEGORY="x-window" |
pankso@3424 | 6 SHORT_DESC="Simple DirectMedia Layer (used by Qemu)." |
pankso@3424 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@14718 | 8 LICENSE="LGPL2.1" |
pankso@3424 | 9 SOURCE="SDL" |
pankso@3424 | 10 TARBALL="$SOURCE-$VERSION.tar.gz" |
pankso@3424 | 11 WEB_SITE="http://www.libsdl.org/" |
pankso@3424 | 12 WGET_URL="http://www.libsdl.org/release/$TARBALL" |
pankso@16084 | 13 HOST_ARCH="i486 arm" |
pankso@3424 | 14 |
pascal@14718 | 15 DEPENDS="xorg-libXext xorg-libXrender xorg-libX11" |
pankso@16085 | 16 BUILD_DEPENDS="libglu-mesa mesa-dev xorg-libXt-dev xorg-libXext-dev \ |
pankso@16085 | 17 xorg-libXrender-dev xorg-libX11-dev" |
pankso@16085 | 18 |
pankso@16085 | 19 # Handle cross compilation. |
pankso@16085 | 20 arm) BUILD_DEPENDS="xorg-libXt-dev xorg-libXext-dev xorg-libXrender-dev \ |
pankso@16085 | 21 xorg-libX11-dev" ;; |
pankso@16085 | 22 esac |
pascal@14718 | 23 |
pankso@3424 | 24 # Rules to configure and make the package. |
pankso@3424 | 25 compile_rules() |
pankso@3424 | 26 { |
pankso@3424 | 27 cd $src |
slaxemulator@9408 | 28 patch -Np1 -i $stuff/sdl-$VERSION-joystick-crash.diff |
slaxemulator@9408 | 29 patch -Np1 -i $stuff/sdl-$VERSION-fix-mouse-clicking.patch |
slaxemulator@9408 | 30 patch -Np1 -i $stuff/sdl-$VERSION-fix-disappearing-cursor.patch |
pascal@14719 | 31 patch -Np1 -i $stuff/sdl-1.2.14-add-XGetRequest-symbol.patch |
gokhlayeh@11573 | 32 ./configure $CONFIGURE_ARGS && make && make install |
pankso@3424 | 33 } |
pankso@3424 | 34 |
pankso@3424 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@3424 | 36 genpkg_rules() |
pankso@3424 | 37 { |
pankso@3424 | 38 mkdir -p $fs/usr/lib |
pascal@14718 | 39 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pankso@3424 | 40 } |
pankso@3424 | 41 |
pankso@3424 | 42 post_install() |
pankso@3424 | 43 { |
pankso@3426 | 44 [ -d "/var/lib/tazpkg/installed/libSDL" ] && rm -rf /var/lib/tazpkg/installed/libSDL |
pankso@3424 | 45 } |