wok-next view libsdl/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
line source
1 # SliTaz package receipt v2.
3 PACKAGE="libsdl"
4 VERSION="1.2.15"
5 CATEGORY="x-window"
6 SHORT_DESC="Simple DirectMedia Layer"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="LGPL2.1"
9 WEB_SITE="http://www.libsdl.org/"
10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/multimedia/sdl.html"
11 REPOLOGY="sdl"
13 TARBALL="SDL-$VERSION.tar.gz"
14 WGET_URL="http://www.libsdl.org/release/$TARBALL"
16 BUILD_DEPENDS="nasm alsa-lib-dev xorg-libX11-dev xorg-libICE-dev \
17 xorg-libXrandr-dev mesa-dev glu-dev tslib-dev libusb-dev"
18 SPLIT="libsdl-dev"
20 compile_rules() {
21 sed -e '/_XData32/s:register long:register _Xconst long:' \
22 -i src/video/x11/SDL_x11sym.h &&
24 ./configure \
25 CPPFLAGS="-I/usr/include/libusb-1.0" \
26 --disable-static \
27 $CONFIGURE_ARGS &&
28 fix libtool &&
29 make &&
30 make install || return 1
32 cook_pick_docs docs/html/*.html
33 }
35 genpkg_rules() {
36 case $PACKAGE in
37 libsdl)
38 copy @std
39 DEPENDS="tslib"
40 ;;
41 *-dev)
42 copy @dev
43 DEPENDS="libsdl tslib-dev xorg-libX11-dev"
44 ;;
45 esac
46 }