aboutsummaryrefslogtreecommitdiffstats
path: root/main/sdl/APKBUILD
blob: 9b7f902d8d29a282ae42e9e92b8755b639ef1839 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=sdl
pkgver=1.2.15
pkgrel=3
pkgdesc="A library for portable low-level access to a video framebuffer, audio output, mouse, and keyboard"
url="http://www.libsdl.org"
arch="all"
license="LGPL"
subpackages="$pkgname-dev $pkgname-doc"
depends=
depends_dev="libx11-dev libiconv-dev"
makedepends="$depends_dev libxext-dev libxrender-dev libx11-dev libice-dev
	libsm-dev libxrandr-dev mesa-dev alsa-lib-dev libiconv-dev glu-dev"
source="http://www.libsdl.org/release/SDL-$pkgver.tar.gz
	SDL-1.2.10-GrabNotViewable.patch"
_builddir="$srcdir"/SDL-$pkgver

prepare() {
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--disable-nasm \
		--disable-esd \
		--disable-video-svga \
		--disable-video-ggi \
		--disable-video-aalib \
		--enable-alsa \
		--with-x \
		--disable-rpath \
		--disable-nls 
	make
}

package() {
	cd "$srcdir"/SDL-$pkgver
	make DESTDIR="$pkgdir" install
	rm "$pkgdir"/usr/lib/*.la
}

md5sums="9d96df8417572a2afb781a7c4c811a85  SDL-1.2.15.tar.gz
37ad001a4d2ff924a5fab356b49f8a78  SDL-1.2.10-GrabNotViewable.patch"