From 1b73ffa242930400c4c44b11b8674aa2c50d5ce2 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Tue, 7 Aug 2018 02:42:21 +0000 Subject: user/sdl2_image: pull in, fix up --- user/sdl2_image/APKBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 user/sdl2_image/APKBUILD (limited to 'user/sdl2_image') 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 +# 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" -- cgit v1.2.3-70-g09d2