diff options
Diffstat (limited to 'user/sdl2_image/APKBUILD')
-rw-r--r-- | user/sdl2_image/APKBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/user/sdl2_image/APKBUILD b/user/sdl2_image/APKBUILD new file mode 100644 index 000000000..20395fd56 --- /dev/null +++ b/user/sdl2_image/APKBUILD @@ -0,0 +1,42 @@ +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: +pkgname=sdl2_image +pkgver=2.0.2 +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="468f1a5aaee0b6920adb80df21aaaa41bfc5c642b4a00ac60244a90c5e9f27b092b73bcdd2c5520aa1de2759e8b174686b186a51f2d07e7e188ce2cd10519724 SDL2_image-2.0.2.tar.gz" |