wok-next annotate libsdl2/receipt @ rev 20551
Up libmatchbox
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Apr 06 03:32:57 2018 +0300 (2018-04-06) |
parents | f28a3772c252 |
children | 5841522533ec |
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@20502 | 16 xorg-libXinerama-dev xorg-libXScrnSaver-dev xorg-libXxf86vm-dev mesa-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@20502 | 42 SUGGESTED="alsa-lib mesa 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 } |