wok-next annotate libsdl/receipt @ rev 20143
postgresql: receipt v2
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Nov 01 11:18:25 2017 +0100 (2017-11-01) |
parents | 0a667524ce79 |
children | c0521c689857 |
rev | line source |
---|---|
al@19957 | 1 # SliTaz package receipt v2. |
pankso@3424 | 2 |
pankso@3424 | 3 PACKAGE="libsdl" |
al@19957 | 4 VERSION="1.2.15" |
pankso@3424 | 5 CATEGORY="x-window" |
al@18570 | 6 SHORT_DESC="Simple DirectMedia Layer" |
pankso@3424 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@14718 | 8 LICENSE="LGPL2.1" |
pankso@3424 | 9 WEB_SITE="http://www.libsdl.org/" |
al@19957 | 10 LFS="http://www.linuxfromscratch.org/blfs/view/stable/multimedia/sdl.html" |
al@19957 | 11 |
al@19957 | 12 TARBALL="SDL-$VERSION.tar.gz" |
pankso@3424 | 13 WGET_URL="http://www.libsdl.org/release/$TARBALL" |
pankso@3424 | 14 |
al@19957 | 15 BUILD_DEPENDS="nasm alsa-lib-dev xorg-libX11-dev xorg-libXrandr-dev \ |
al@19957 | 16 libglu-mesa-dev tslib-dev" |
al@19957 | 17 SPLIT="libsdl-dev" |
pankso@16085 | 18 |
al@19957 | 19 compile_rules() { |
al@19957 | 20 sed -e '/_XData32/s:register long:register _Xconst long:' \ |
al@19957 | 21 -i src/video/x11/SDL_x11sym.h && |
pascal@14718 | 22 |
al@19957 | 23 ./configure \ |
al@19957 | 24 --disable-static \ |
al@19957 | 25 $CONFIGURE_ARGS && |
al@19957 | 26 make && |
al@19957 | 27 make install || return 1 |
al@19957 | 28 |
al@19957 | 29 cook_pick_docs docs/html/*.html |
pankso@3424 | 30 } |
pankso@3424 | 31 |
al@19957 | 32 genpkg_rules() { |
al@19957 | 33 case $PACKAGE in |
al@19957 | 34 libsdl) |
al@19957 | 35 copy @std |
al@19957 | 36 DEPENDS="tslib" |
al@19957 | 37 ;; |
al@19957 | 38 *-dev) |
al@19957 | 39 copy @dev |
pascal@19966 | 40 DEPENDS="libsdl tslib-dev xorg-libX11-dev" |
al@19957 | 41 ;; |
al@19957 | 42 esac |
pankso@3424 | 43 } |