blob: 95847113dcfae4f123a8aa9b37e7c9062541e7d4 (
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# Contributor: August Klein <amatcoder@gmail.com>
# Maintainer: August Klein <amatcoder@gmail.com>
pkgname=sdl2
pkgver=2.0.10
pkgrel=0
pkgdesc="A development library designed to provide low level access to audio, keyboard, mouse, joystick and graphics"
url="https://www.libsdl.org"
arch="all"
license="Zlib"
depends_dev="directfb-dev"
makedepends="cmake 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 wayland-dev
wayland-protocols"
subpackages="$pkgname-dev"
source="https://www.libsdl.org/release/SDL2-$pkgver.tar.gz
directfb-cflags.patch"
options="!check" # No good way to run the available tests
builddir="$srcdir/SDL2-$pkgver"
# secfixes:
# 2.0.10-r0:
# - CVE-2019-7572
# - CVE-2019-7573
# - CVE-2019-7574
# - CVE-2019-7575
# - CVE-2019-7576
# - CVE-2019-7578
# - CVE-2019-7635
# - CVE-2019-7636
# - CVE-2019-7637
# - CVE-2019-7638
prepare() {
default_prepare
mkdir "$builddir"/build
}
build() {
cd "$builddir"/build
# NOTE: Please do not remove the -DVIDEO_DIRECTFB=ON flag.
# Some apps, used for booting Alpine derivatives, require this to function!
cmake "$builddir" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DSDL_TEST=OFF \
-DALSA=ON \
-DCLOCK_GETTIME=ON \
-DARTS=OFF \
-DESD=OFF \
-DNAS=OFF \
-DRPATH=OFF \
-DVIDEO_X11=ON \
-DVIDEO_DIRECTFB=ON \
-DVIDEO_WAYLAND=ON
make
}
package() {
cd "$builddir"/build
DESTDIR="$pkgdir" make install
}
sha512sums="f49b869362699b3282f6e82920e59c7fac581bcbf955f18a81cc126293c08093a90df7fcb39517cc8bc32708d2213fe645a42b655d6d811c1386efebb3d3c798 SDL2-2.0.10.tar.gz
e4e946a3bd51e011be1aa7d0c9a22182b1c00f277f4ae758dbe54f4ab1e4edb27f56f4324f9ace8d09f337a2f65b64b72e51326449ab2327632ff8b5fb57414b directfb-cflags.patch"
|