wok-next view libsdl/receipt @ rev 20577
More fix libtool
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Apr 14 03:34:33 2018 +0300 (2018-04-14) |
parents | c0521c689857 |
children | 5841522533ec |
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/stable/multimedia/sdl.html"
12 TARBALL="SDL-$VERSION.tar.gz"
13 WGET_URL="http://www.libsdl.org/release/$TARBALL"
15 BUILD_DEPENDS="nasm alsa-lib-dev xorg-libX11-dev xorg-libICE-dev \
16 xorg-libXrandr-dev mesa-dev glu-dev tslib-dev libusb-dev"
17 SPLIT="libsdl-dev"
19 compile_rules() {
20 sed -e '/_XData32/s:register long:register _Xconst long:' \
21 -i src/video/x11/SDL_x11sym.h &&
23 ./configure \
24 CPPFLAGS="-I/usr/include/libusb-1.0" \
25 --disable-static \
26 $CONFIGURE_ARGS &&
27 make &&
28 make install || return 1
30 cook_pick_docs docs/html/*.html
31 }
33 genpkg_rules() {
34 case $PACKAGE in
35 libsdl)
36 copy @std
37 DEPENDS="tslib"
38 ;;
39 *-dev)
40 copy @dev
41 DEPENDS="libsdl tslib-dev xorg-libX11-dev"
42 ;;
43 esac
44 }