aboutsummaryrefslogtreecommitdiffstats
path: root/main/sdl2_image
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2016-07-29 10:39:46 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2016-07-29 10:39:46 +0000
commitfa62d715a9a1f8c10da93a632a190a1925430481 (patch)
tree077bf4ad68a4a0c4a10cfe32c6a35635173d7242 /main/sdl2_image
parent0ad72d77bd3f5d2df917d3ce9adfbc1e1d9517ca (diff)
downloadaports-fa62d715a9a1f8c10da93a632a190a1925430481.tar.bz2
aports-fa62d715a9a1f8c10da93a632a190a1925430481.tar.xz
main/sdl2_image: new aport
Diffstat (limited to 'main/sdl2_image')
-rw-r--r--main/sdl2_image/APKBUILD47
1 files changed, 47 insertions, 0 deletions
diff --git a/main/sdl2_image/APKBUILD b/main/sdl2_image/APKBUILD
new file mode 100644
index 0000000000..717887c883
--- /dev/null
+++ b/main/sdl2_image/APKBUILD
@@ -0,0 +1,47 @@
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+pkgname=sdl2_image
+pkgver=2.0.1
+pkgrel=0
+pkgdesc="A simple library to load images of various formats as SDL surfaces"
+url="http://www.libsdl.org/projects/SDL_image/"
+arch="all"
+license="LGPL2+"
+depends=""
+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/SDL2_image-${pkgver}.tar.gz"
+
+_builddir="$srcdir"/SDL2_image-$pkgver
+prepare() {
+ cd "$_builddir"
+ update_config_sub || return 1
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+md5sums="d94b94555ba022fa249a53a021dc3606 SDL2_image-2.0.1.tar.gz"
+sha256sums="3a3eafbceea5125c04be585373bfd8b3a18f259bd7eae3efc4e6d8e60e0d7f64 SDL2_image-2.0.1.tar.gz"
+sha512sums="99ed5f7b69966cea5fcf9173e7270167c24b55ab459774f10dbf90f26dcb9d5f118971ffd4e583a83148976f44ca166474669398a561169d24ffba80f852306f SDL2_image-2.0.1.tar.gz"