aboutsummaryrefslogtreecommitdiffstats
path: root/main/sdl2_image
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2017-09-30 16:07:10 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2017-09-30 16:12:19 +0000
commita5b31547112b3dd601560252e7beee265cbfc3ca (patch)
tree6870f67f5a46b9eba02705f9e0117c836ec9cc9d /main/sdl2_image
parentbfcd198805772179ebe8f735f396671a2cf5af46 (diff)
downloadaports-a5b31547112b3dd601560252e7beee265cbfc3ca.tar.bz2
aports-a5b31547112b3dd601560252e7beee265cbfc3ca.tar.xz
main/sdl2_image: added check, added png support
Diffstat (limited to 'main/sdl2_image')
-rw-r--r--main/sdl2_image/APKBUILD18
1 files changed, 12 insertions, 6 deletions
diff --git a/main/sdl2_image/APKBUILD b/main/sdl2_image/APKBUILD
index 26c9fbb2d5..c2e830651f 100644
--- a/main/sdl2_image/APKBUILD
+++ b/main/sdl2_image/APKBUILD
@@ -2,13 +2,12 @@
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=sdl2_image
pkgver=2.0.1
-pkgrel=2
+pkgrel=3
_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"
-depends=""
makedepends="sdl2-dev libpng-dev libjpeg-turbo-dev
libwebp-dev tiff-dev zlib-dev"
subpackages="$pkgname-dev"
@@ -21,16 +20,23 @@ build() {
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
+ --disable-static \
+ --enable-png \
+ --enable-png-shared \
--sysconfdir=/etc \
--mandir=/usr/share/man \
- --infodir=/usr/share/info \
- || return 1
- make || return 1
+ --infodir=/usr/share/info
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
}
package() {
cd "$builddir"
- make DESTDIR="$pkgdir" install || return 1
+ make DESTDIR="$pkgdir" install
}
md5sums="d94b94555ba022fa249a53a021dc3606 SDL2_image-2.0.1.tar.gz"