diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-07-22 03:30:20 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-07-22 03:30:20 -0500 |
commit | 1c31e89fd1415000c5d4db50414a034325bcc1c7 (patch) | |
tree | b6da13fc6235c5348676b3d2dd3851ac6ba8f7e8 /user/sdl_image | |
parent | 22f23d02ea1f3ba5669c559022dd4be312a4b140 (diff) | |
download | packages-1c31e89fd1415000c5d4db50414a034325bcc1c7.tar.gz packages-1c31e89fd1415000c5d4db50414a034325bcc1c7.tar.bz2 packages-1c31e89fd1415000c5d4db50414a034325bcc1c7.tar.xz packages-1c31e89fd1415000c5d4db50414a034325bcc1c7.zip |
user/sdl_image: pull in, fix up
Diffstat (limited to 'user/sdl_image')
-rw-r--r-- | user/sdl_image/APKBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/user/sdl_image/APKBUILD b/user/sdl_image/APKBUILD new file mode 100644 index 000000000..16f3d6551 --- /dev/null +++ b/user/sdl_image/APKBUILD @@ -0,0 +1,40 @@ +# Contributor: Carlo Landmeter +# Maintainer: +pkgname=sdl_image +pkgver=1.2.12 +pkgrel=5 +pkgdesc="Library to load images of various formats as SDL surfaces" +url="https://www.libsdl.org/projects/SDL_image/release-1.2.html" +arch="all" +options="!check" # No test suite. +license="Zlib" +depends="" +makedepends="libjpeg-turbo-dev libpng-dev libwebp-dev sdl-dev tiff-dev zlib-dev" +subpackages="$pkgname-dev" +source="https://www.libsdl.org/projects/SDL_image/release/SDL_image-${pkgver}.tar.gz" +builddir="$srcdir"/SDL_image-$pkgver + +prepare() { + cd "$builddir" + update_config_sub + default_prepare +} + +build() { + cd "$builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info + make +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install +} + +sha512sums="0e71b280abc2a7f15755e4480a3c1b52d41f9f8b0c9216a6f5bd9fc0e939456fb5d6c10419e1d1904785783f9a1891ead278c03e88b0466fecc6871c3ca40136 SDL_image-1.2.12.tar.gz" |