aboutsummaryrefslogtreecommitdiffstats
path: root/main/sdl2/APKBUILD
blob: 930c7a48b9acc38758dc20d7da7df17e6c64c7fa (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
# Contributor: August Klein <amatcoder@gmail.com>
# Maintainer: August Klein <amatcoder@gmail.com>
pkgname=sdl2
pkgver=2.0.8
pkgrel=1
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
	fix-directfb-include.patch
	fix-directfb-renderer.patch"
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="673c6058b8692a36b4a3594456b10ef6051efe79e4fb644421fc5c76b11fd68b895840a2c8b72413418c378733e2993d33f19767d0d7ed101eda6310bd70c869  SDL2-2.0.8.tar.gz
f57a7a7b89f11934835b5693d104354be1107ddd31d34f6cfc07cf480b0811d775c95685f6b6b20c6154f03744ed976c8092973ddb6e87773969b8394e852c24  fix-directfb-include.patch
a37d0ee6f7d4570493d54a29dea9d1fbdbd28a7303a5da1f7e189a9485a9d1833ef6c04287b07820aed3f1aad05fee6ee76522099930f5bc44d1cced360eb692  fix-directfb-renderer.patch"