summaryrefslogtreecommitdiff
path: root/user/sdl2/APKBUILD
blob: 910eb176303acd13aad7c5d5430ced90aa51fa0b (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
47
# Contributor: August Klein <amatcoder@gmail.com>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=sdl2
pkgver=2.0.9
pkgrel=0
pkgdesc="Low level audio, keyboard, mouse, joystick and graphics library"
url="https://www.libsdl.org/"
arch="all"
license="zlib"
depends=""
makedepends="alsa-lib-dev libx11-dev libxcursor-dev libxext-dev libxi-dev
	libxkbcommon-dev libxrandr-dev libxrender-dev libusb-dev mesa-dev
	libxscrnsaver-dev dbus-dev eudev-dev pulseaudio-dev"
subpackages="$pkgname-dev"
source="https://www.libsdl.org/release/SDL2-$pkgver.tar.gz
	ensure-c++-on-ppc.patch
	"
builddir="$srcdir/SDL2-$pkgver"

build() {
	cd "$builddir"
	# pmOS needs DirectFB for battery animations and LUKS unlocking
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--enable-alsa \
		--enable-clock_gettime \
		--disable-arts \
		--disable-esd \
		--disable-nas \
		--disable-rpath \
		--with-x \
	make
}

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

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

sha512sums="a78a4708b2bb5b35a7c7b7501eb3bd60a9aa3bb95a3d84e57763df4a377185e7312a94b66321eef7ca0d17255e4b402fc950e83ef0dbbd08f14ff1194107dc10  SDL2-2.0.9.tar.gz
f64402503f4cf7e7d65efc1b397c9d632b0f592ee04893884155d0e88bc88e0ae096778cbd30a2caf61246430b43bd17a1f78dda8a8abcbc8ebd60ef107386ac  ensure-c++-on-ppc.patch"