summaryrefslogtreecommitdiff
path: root/repo/sdl2-image/sdl2-image.xibuild
blob: 893107a12070cd1c8e372f31cfc9d1ce734498c0 (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
#!/bin/sh

NAME="sdl2-image"
DESC="A simple library to load images of various formats as SDL surfaces"

MAKEDEPS=" sdl2 libpng libjpeg-turbo libwebp tiff zlib"

PKG_VER=2.0.5
SOURCE="https://www.libsdl.org/projects/SDL_image/release/SDL2_image-$PKG_VER.tar.gz"

ADDITIONAL="
CVE-2019-13616.patch
"

prepare () {
    apply_patches
}

build() {
	./configure \
		--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="$PKG_DEST" install
}