wok-current annotate libsdl/receipt @ rev 15076
homebank: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Aug 13 16:48:11 2013 +0000 (2013-08-13) |
parents | 6eff489aa802 |
children | 53082fab5f1e |
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" |
slaxemulator@9408 | 13 COOK_OPT="!libtool" |
pankso@3424 | 14 |
pascal@14718 | 15 DEPENDS="xorg-libXext xorg-libXrender xorg-libX11" |
pascal@14718 | 16 BUILD_DEPENDS="libglu-mesa mesa-dev xorg-libXt-dev xorg-libXext-dev xorg-libXrender-dev xorg-libX11-dev" |
pascal@14718 | 17 |
pankso@3424 | 18 # Rules to configure and make the package. |
pankso@3424 | 19 compile_rules() |
pankso@3424 | 20 { |
pankso@3424 | 21 cd $src |
slaxemulator@9408 | 22 patch -Np1 -i $stuff/sdl-$VERSION-joystick-crash.diff |
slaxemulator@9408 | 23 patch -Np1 -i $stuff/sdl-$VERSION-fix-mouse-clicking.patch |
slaxemulator@9408 | 24 patch -Np1 -i $stuff/sdl-$VERSION-fix-disappearing-cursor.patch |
pascal@14719 | 25 patch -Np1 -i $stuff/sdl-1.2.14-add-XGetRequest-symbol.patch |
gokhlayeh@11573 | 26 ./configure $CONFIGURE_ARGS && make && make install |
pankso@3424 | 27 } |
pankso@3424 | 28 |
pankso@3424 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@3424 | 30 genpkg_rules() |
pankso@3424 | 31 { |
pankso@3424 | 32 mkdir -p $fs/usr/lib |
pascal@14718 | 33 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pankso@3424 | 34 } |
pankso@3424 | 35 |
pankso@3424 | 36 post_install() |
pankso@3424 | 37 { |
pankso@3426 | 38 [ -d "/var/lib/tazpkg/installed/libSDL" ] && rm -rf /var/lib/tazpkg/installed/libSDL |
pankso@3424 | 39 } |