summaryrefslogtreecommitdiff
path: root/user/sdl2_image/APKBUILD
blob: d320f1076f5f9ead4a1603e21092010d6651e1b0 (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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: 
pkgname=sdl2_image
pkgver=2.0.4
pkgrel=0
_pkgname=SDL2_image
pkgdesc="Library to load images of various formats as SDL surfaces"
url="https://www.libsdl.org/projects/SDL_image/"
arch="all"
license="zlib"
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"

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="7320a5c9111908d402fbb0c12a49eb359a6db645c0c86839793ebb1a5b75eaca7c85eb96851f3a0b4a68a2f06363c8189555afd4f1048a4a41447370eddd7e6a  SDL2_image-2.0.4.tar.gz"