wok-next view libsdl/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents f48456621a9d
children 5669e8b3be70
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="devel@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="$PACKAGE-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 }