wok-next diff 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 |
line diff
1.1 --- a/libsdl2/receipt Fri Nov 07 10:39:54 2014 +0100 1.2 +++ b/libsdl2/receipt Fri Nov 10 15:10:02 2017 +0100 1.3 @@ -1,31 +1,49 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="libsdl2" 1.8 -VERSION="2.0.3" 1.9 +VERSION="2.0.5" 1.10 CATEGORY="x-window" 1.11 -SHORT_DESC="a cross-platform interactive media development library" 1.12 +SHORT_DESC="Cross-platform interactive media development library" 1.13 MAINTAINER="tcg.thegamer@gmail.com" 1.14 LICENSE="zlib/libpng" 1.15 +WEB_SITE="http://libsdl.org/" 1.16 +LFS="http://www.linuxfromscratch.org/blfs/view/stable/multimedia/sdl2.html" 1.17 + 1.18 TARBALL="SDL2-$VERSION.tar.gz" 1.19 -WEB_SITE="http://libsdl.org" 1.20 -WGET_URL="${WEB_SITE}/release/${TARBALL}" 1.21 +WGET_URL="http://www.libsdl.org/release/$TARBALL" 1.22 1.23 -DEPENDS="alsa-lib mesa dbus" 1.24 -BUILD_DEPENDS="alsa-lib-dev mesa-dev mesa-wayland-dev pulseaudio-dev dbus-dev" 1.25 +BUILD_DEPENDS="alsa-lib-dev doxygen pulseaudio-dev xorg-libXcursor-dev \ 1.26 +xorg-libXinerama-dev xorg-libXScrnSaver-dev xorg-libXxf86vm-dev mesa17-dev \ 1.27 +wayland-dev wayland-protocols-dev libxkbcommon-dev eudev-dev dbus-dev ibus-dev \ 1.28 +tslib-dev graphviz" # + fcitx-dev -> broken 1.29 +SPLIT="libsdl2-dev" 1.30 1.31 -# Rules to configure and make the package. 1.32 -compile_rules() 1.33 -{ 1.34 - cd $src 1.35 - ./configure --prefix=/usr $CONFIGURE_ARGS && 1.36 +compile_rules() { 1.37 + ./configure \ 1.38 + --disable-oss \ 1.39 + $CONFIGURE_ARGS && 1.40 make && 1.41 - make DESTDIR=$DESTDIR install 1.42 + cd docs && doxygen && cd - && 1.43 + make install || return 1 1.44 + 1.45 + rm $install/usr/lib/libSDL2*.a 1.46 + cook_pick_docs \ 1.47 + docs/output/html/*.html \ 1.48 + docs/output/html/*.css \ 1.49 + docs/output/html/*.js \ 1.50 + docs/output/html/*.png 1.51 } 1.52 1.53 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.54 -genpkg_rules() 1.55 -{ 1.56 - mkdir -p $fs/usr/lib 1.57 - cp -a $install/usr/lib/*so* $fs/usr/lib 1.58 - cp -a $install/usr/bin $fs/usr 1.59 +genpkg_rules() { 1.60 + case $PACKAGE in 1.61 + libsdl2) 1.62 + copy @std 1.63 + DEPENDS="tslib" 1.64 + SUGGESTED="alsa-lib mesa17 dbus" 1.65 + ;; 1.66 + *-dev) 1.67 + copy @dev 1.68 + DEPENDS="libsdl2 tslib-dev" 1.69 + ;; 1.70 + esac 1.71 }