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

# secfixes:
#   2.0.5:
#       - CVE-2019-12216
#       - CVE-2019-12217
#       - CVE-2019-12218
#       - CVE-2019-12219
#       - CVE-2019-12220
#       - CVE-2019-12221

build() {
	./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() {
	make check
}

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

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