aboutsummaryrefslogtreecommitdiffstats
path: root/main/sdl/APKBUILD
blob: 228ed5e7e5654d286aaa9ea33da871868b8784b8 (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
50
51
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=sdl
pkgver=1.2.15
pkgrel=9
pkgdesc="A library for portable low-level access to a video framebuffer, audio output, mouse, and keyboard"
url="http://www.libsdl.org"
arch="all"
options="!check"  # Tests are all interactive.
license="LGPL-2.1+"
subpackages="$pkgname-dev $pkgname-doc"
depends=
depends_dev="libx11-dev"
makedepends="$depends_dev libxext-dev libxrender-dev libx11-dev libice-dev
	libsm-dev libxrandr-dev mesa-dev alsa-lib-dev glu-dev"
source="https://www.libsdl.org/release/SDL-$pkgver.tar.gz
	SDL-1.2.10-GrabNotViewable.patch
	SDL-1.2.15-const_XData32.patch
	"
builddir="$srcdir"/SDL-$pkgver

prepare() {
	cd "$builddir"
	update_config_sub
	default_prepare
}

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

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="ac392d916e6953b0925a7cbb0f232affea33339ef69b47a0a7898492afb9784b93138986df53d6da6d3e2ad79af1e9482df565ecca30f89428be0ae6851b1adc  SDL-1.2.15.tar.gz
20049408d4c00d895c39a7901d889d1874ebcd382e93b2e8df38bd3726e2236f4e9a980720724cf176a35d05fb0db5dbcabd42089423adeb404f2dba16d52b7b  SDL-1.2.10-GrabNotViewable.patch
c414a088350e4b039edf46b109721bea01300ad959b84c313f34d5bc085cab97107abb55a71cb8343f092546e4a36c52febf029ffa7d5bacbd580aee43c07bf3  SDL-1.2.15-const_XData32.patch"