aboutsummaryrefslogtreecommitdiffstats
path: root/main/sdl2_image/APKBUILD
blob: 6023ff887b2232463c1fce2d1e3be46bc5b33f86 (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: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=sdl2_image
pkgver=2.0.5
pkgrel=0
_pkgname=SDL2_image
pkgdesc="A simple library to load images of various formats as SDL surfaces"
url="http://www.libsdl.org/projects/SDL_image/"
arch="all"
license="zlib"
makedepends="sdl2-dev libpng-dev libjpeg-turbo-dev
	libwebp-dev tiff-dev zlib-dev"
subpackages="$pkgname-dev"
source="http://www.libsdl.org/projects/SDL_image/release/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

# secfixes:
#   2.0.5-r0:
#     - CVE-2019-5060 TALOS-2019-0844
#     - CVE-2019-5059 TALOS-2019-0843
#     - CVE-2019-5058 TALOS-2019-0842
#     - CVE-2019-5057 TALOS-2019-0841
#     - CVE-2019-5052 TALOS-2019-0821
#     - CVE-2019-5051 TALOS-2019-0820
#     - CVE-2019-12222
#     - CVE-2019-12221
#     - CVE-2019-12219
#     - CVE-2019-12218
#     - CVE-2019-12217
#   2.0.2-r1:
#     - CVE-2017-12122 TALOS-2017-0488
#     - CVE-2017-14440 TALOS-2017-0489
#     - CVE-2017-14441 TALOS-2017-0490
#     - CVE-2017-14442 TALOS-2017-0491
#     - CVE-2017-14448 TALOS-2017-0497
#     - CVE-2017-14450 TALOS-2017-0499
#     - CVE-2018-3837 TALOS-2018-0519
#     - CVE-2018-3838 TALOS-2018-0520
#     - CVE-2018-3839 TALOS-2018-0521

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--disable-static \
		--enable-png \
		--enable-png-shared \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make
}

check() {
	cd "$builddir"
	make check
}

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

sha512sums="77e743d3f32707e015b290c1379ae3c7d7a3fe265995713267f0d0ec6517de4808f0de9890b5ab28445941af5bc9fbff346620629e0d7d7e9f365262cab05ee7  SDL2_image-2.0.5.tar.gz"