aboutsummaryrefslogtreecommitdiffstats
path: root/main/sdl2/APKBUILD
blob: 57364da98db615c803dbda238d26c981fa888504 (plain) (blame)
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
# Contributor: August Klein <amatcoder@gmail.com>
# Maintainer: August Klein <amatcoder@gmail.com>
pkgname=sdl2
pkgver=2.0.9
pkgrel=0
pkgdesc="A development library designed to provide low level access to audio, keyboard, mouse, joystick and graphics"
url="http://www.libsdl.org"
arch="all"
license="zlib"
depends=""
depends_dev="directfb-dev"
makedepends="alsa-lib-dev directfb-dev libxcursor-dev libxrandr-dev libxrender-dev mesa-dev
	libxscrnsaver-dev libxi-dev libx11-dev libxext-dev libusb-dev libxkbcommon-dev"
subpackages="$pkgname-dev"
source="https://www.libsdl.org/release/SDL2-$pkgver.tar.gz"
builddir="$srcdir/SDL2-$pkgver"

build() {
	cd "$builddir"
	# NOTE: Please do not remove the --enable-video-directfb flag.
	# Some apps, used for booting Alpine derivatives, require this to function!
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--enable-alsa \
		--enable-clock_gettime \
		--disable-arts \
		--disable-esd \
		--disable-nas \
		--disable-rpath \
		--with-x \
		--enable-video-directfb
	make
}

check() {
	[ "$($builddir/sdl2-config --version)" = "$pkgver" ]
}

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

sha512sums="a78a4708b2bb5b35a7c7b7501eb3bd60a9aa3bb95a3d84e57763df4a377185e7312a94b66321eef7ca0d17255e4b402fc950e83ef0dbbd08f14ff1194107dc10  SDL2-2.0.9.tar.gz"