aboutsummaryrefslogtreecommitdiffstats
path: root/main/sdl_image
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-04-05 20:26:08 -0500
committerTimo Teräs <timo.teras@iki.fi>2018-04-09 10:10:58 +0000
commitda3454c92fdcd2b468c62b916ff4e18b2d565616 (patch)
tree05b583b6fde1791f7c7364a2f513280276e7b349 /main/sdl_image
parent58331d582a590654a3ef023a81f1d0fd2a228469 (diff)
downloadaports-da3454c92fdcd2b468c62b916ff4e18b2d565616.tar.bz2
aports-da3454c92fdcd2b468c62b916ff4e18b2d565616.tar.xz
main/sdl_image: multiple fixes
* Enable libwebp, since we have it now. (still dynamic dep) * Fix license; this is zlib license, not LGPL. * Mark as having no test suite. * Modernise to meet modern Alpine packaging standards.
Diffstat (limited to 'main/sdl_image')
-rw-r--r--main/sdl_image/APKBUILD30
1 files changed, 13 insertions, 17 deletions
diff --git a/main/sdl_image/APKBUILD b/main/sdl_image/APKBUILD
index 16ce47cda3..f9f9cd6b22 100644
--- a/main/sdl_image/APKBUILD
+++ b/main/sdl_image/APKBUILD
@@ -2,44 +2,40 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=sdl_image
pkgver=1.2.12
-pkgrel=3
+pkgrel=4
pkgdesc="A simple library to load images of various formats as SDL surfaces"
url="http://www.libsdl.org/projects/SDL_image/"
arch="all"
-license="LGPL-2.0-or-later"
+options="!check" # No test suite.
+license="Zlib"
depends=""
-makedepends="sdl-dev libpng-dev libjpeg-turbo-dev tiff-dev zlib-dev"
+makedepends="sdl-dev libpng-dev libjpeg-turbo-dev libwebp-dev tiff-dev zlib-dev"
install=""
subpackages="$pkgname-dev"
source="http://www.libsdl.org/projects/SDL_image/release/SDL_image-${pkgver}.tar.gz"
-_builddir="$srcdir"/SDL_image-$pkgver
+builddir="$srcdir"/SDL_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
+ cd "$builddir"
+ update_config_sub
+ default_prepare
}
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
- --infodir=/usr/share/info \
- || return 1
- make || return 1
+ --infodir=/usr/share/info
+ make
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
}
sha512sums="0e71b280abc2a7f15755e4480a3c1b52d41f9f8b0c9216a6f5bd9fc0e939456fb5d6c10419e1d1904785783f9a1891ead278c03e88b0466fecc6871c3ca40136 SDL_image-1.2.12.tar.gz"