diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-08-07 02:42:21 +0000 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-08-07 02:42:21 +0000 |
commit | 1b73ffa242930400c4c44b11b8674aa2c50d5ce2 (patch) | |
tree | 22e1fb3ea87d3655595d257874e40face85b381e | |
parent | 284a61f3e5681d32544223ea0b4ef7645b8ddf20 (diff) | |
download | packages-1b73ffa242930400c4c44b11b8674aa2c50d5ce2.tar.gz packages-1b73ffa242930400c4c44b11b8674aa2c50d5ce2.tar.bz2 packages-1b73ffa242930400c4c44b11b8674aa2c50d5ce2.tar.xz packages-1b73ffa242930400c4c44b11b8674aa2c50d5ce2.zip |
user/sdl2_image: pull in, fix up
-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" |