wok-next annotate libsdl2/receipt @ rev 21017

Some maintenance
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Oct 16 16:46:05 2018 +0300 (2018-10-16)
parents df20b2110f7e
children d5aab818505e
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@21017 10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/multimedia/sdl2.html"
al@20883 11 REPOLOGY="sdl2"
al@20231 12
pascal@17104 13 TARBALL="SDL2-$VERSION.tar.gz"
al@20231 14 WGET_URL="http://www.libsdl.org/release/$TARBALL"
pascal@17104 15
al@20231 16 BUILD_DEPENDS="alsa-lib-dev doxygen pulseaudio-dev xorg-libXcursor-dev \
al@20502 17 xorg-libXinerama-dev xorg-libXScrnSaver-dev xorg-libXxf86vm-dev mesa-dev \
al@20231 18 wayland-dev wayland-protocols-dev libxkbcommon-dev eudev-dev dbus-dev ibus-dev \
al@20231 19 tslib-dev graphviz" # + fcitx-dev -> broken
al@20231 20 SPLIT="libsdl2-dev"
pascal@17104 21
al@20231 22 compile_rules() {
al@20231 23 ./configure \
al@20231 24 --disable-oss \
al@20231 25 $CONFIGURE_ARGS &&
al@20595 26 fix libtool &&
pascal@17104 27 make &&
al@20231 28 cd docs && doxygen && cd - &&
al@20231 29 make install || return 1
al@20231 30
al@20231 31 rm $install/usr/lib/libSDL2*.a
al@20231 32 cook_pick_docs \
al@20231 33 docs/output/html/*.html \
al@20231 34 docs/output/html/*.css \
al@20231 35 docs/output/html/*.js \
al@20231 36 docs/output/html/*.png
pascal@17104 37 }
pascal@17104 38
al@20231 39 genpkg_rules() {
al@20231 40 case $PACKAGE in
al@20231 41 libsdl2)
al@20231 42 copy @std
al@20231 43 DEPENDS="tslib"
al@20502 44 SUGGESTED="alsa-lib mesa dbus"
al@20231 45 ;;
al@20231 46 *-dev)
al@20231 47 copy @dev
al@20231 48 DEPENDS="libsdl2 tslib-dev"
al@20231 49 ;;
al@20231 50 esac
pascal@17104 51 }