wok-next annotate libsdl2/receipt @ rev 20307
mplayer-svn tiny libpng patch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Nov 10 15:10:02 2017 +0100 (2017-11-10) |
parents | 5b063a7e40ae |
children | c0521c689857 |
rev | line source |
---|---|
al@20231 | 1 # SliTaz package receipt v2. |
pascal@17104 | 2 |
pascal@17104 | 3 PACKAGE="libsdl2" |
al@20231 | 4 VERSION="2.0.5" |
pascal@17104 | 5 CATEGORY="x-window" |
al@20231 | 6 SHORT_DESC="Cross-platform interactive media development library" |
pascal@17104 | 7 MAINTAINER="tcg.thegamer@gmail.com" |
pascal@17345 | 8 LICENSE="zlib/libpng" |
al@20231 | 9 WEB_SITE="http://libsdl.org/" |
al@20231 | 10 LFS="http://www.linuxfromscratch.org/blfs/view/stable/multimedia/sdl2.html" |
al@20231 | 11 |
pascal@17104 | 12 TARBALL="SDL2-$VERSION.tar.gz" |
al@20231 | 13 WGET_URL="http://www.libsdl.org/release/$TARBALL" |
pascal@17104 | 14 |
al@20231 | 15 BUILD_DEPENDS="alsa-lib-dev doxygen pulseaudio-dev xorg-libXcursor-dev \ |
al@20231 | 16 xorg-libXinerama-dev xorg-libXScrnSaver-dev xorg-libXxf86vm-dev mesa17-dev \ |
al@20231 | 17 wayland-dev wayland-protocols-dev libxkbcommon-dev eudev-dev dbus-dev ibus-dev \ |
al@20231 | 18 tslib-dev graphviz" # + fcitx-dev -> broken |
al@20231 | 19 SPLIT="libsdl2-dev" |
pascal@17104 | 20 |
al@20231 | 21 compile_rules() { |
al@20231 | 22 ./configure \ |
al@20231 | 23 --disable-oss \ |
al@20231 | 24 $CONFIGURE_ARGS && |
pascal@17104 | 25 make && |
al@20231 | 26 cd docs && doxygen && cd - && |
al@20231 | 27 make install || return 1 |
al@20231 | 28 |
al@20231 | 29 rm $install/usr/lib/libSDL2*.a |
al@20231 | 30 cook_pick_docs \ |
al@20231 | 31 docs/output/html/*.html \ |
al@20231 | 32 docs/output/html/*.css \ |
al@20231 | 33 docs/output/html/*.js \ |
al@20231 | 34 docs/output/html/*.png |
pascal@17104 | 35 } |
pascal@17104 | 36 |
al@20231 | 37 genpkg_rules() { |
al@20231 | 38 case $PACKAGE in |
al@20231 | 39 libsdl2) |
al@20231 | 40 copy @std |
al@20231 | 41 DEPENDS="tslib" |
al@20231 | 42 SUGGESTED="alsa-lib mesa17 dbus" |
al@20231 | 43 ;; |
al@20231 | 44 *-dev) |
al@20231 | 45 copy @dev |
al@20231 | 46 DEPENDS="libsdl2 tslib-dev" |
al@20231 | 47 ;; |
al@20231 | 48 esac |
pascal@17104 | 49 } |