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