aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-08-03 10:57:05 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-08-03 15:02:47 +0000
commit546bc5ad66e2217d853e3a40b210b95988bd521b (patch)
treefddcc1f5766b6f3f65e1b1bb88407ddb91f16ea3
parent48c2535b8681fde943da6d7cdc908b4cedcf1de5 (diff)
downloadaports-546bc5ad66e2217d853e3a40b210b95988bd521b.tar.gz
aports-546bc5ad66e2217d853e3a40b210b95988bd521b.tar.bz2
aports-546bc5ad66e2217d853e3a40b210b95988bd521b.tar.xz
main/imlib2: upgrade to 1.7.0
-rw-r--r--main/imlib2/APKBUILD12
-rw-r--r--main/imlib2/fix-s390x.patch16
2 files changed, 24 insertions, 4 deletions
diff --git a/main/imlib2/APKBUILD b/main/imlib2/APKBUILD
index 961d276009..2b880bb848 100644
--- a/main/imlib2/APKBUILD
+++ b/main/imlib2/APKBUILD
@@ -1,6 +1,6 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=imlib2
-pkgver=1.6.1
+pkgver=1.7.0
pkgrel=0
pkgdesc="Image manipulation library"
url="https://sourceforge.net/projects/enlightenment"
@@ -9,8 +9,10 @@ license="Imlib2"
subpackages="$pkgname-dev"
depends_dev="freetype-dev libxext-dev libsm-dev"
makedepends="$depends_dev tiff-dev giflib-dev bzip2-dev libpng-dev
- libid3tag-dev libjpeg-turbo-dev zlib-dev util-linux-dev"
-source="https://downloads.sourceforge.net/enlightenment/imlib2-$pkgver.tar.gz"
+ libid3tag-dev libjpeg-turbo-dev zlib-dev util-linux-dev libwebp-dev"
+source="https://downloads.sourceforge.net/enlightenment/imlib2-$pkgver.tar.gz
+ fix-s390x.patch
+ "
build() {
./configure \
@@ -29,6 +31,7 @@ build() {
--with-jpeg \
--with-png \
--with-tiff \
+ --with-webp \
--with-zlib
make
}
@@ -41,4 +44,5 @@ package() {
make DESTDIR=$pkgdir install
}
-sha512sums="0c6d874973c46c7e96e49fc391d463ec8c7c5ce9de682600cb4e28ca81ff0366a02055cbec2a2b743204051243d20b2316ab602b98df9d03dcf319297f7e6a13 imlib2-1.6.1.tar.gz"
+sha512sums="97eade309e254c62ef32eac4d18f49c038b9b9c1489f1258a92d2f084a0b53e58b0c80487eb69ecb0da9be23c9deb47f06d6361f18f5b18fa34817871c515e73 imlib2-1.7.0.tar.gz
+1ed2636affbf171e8cba969c3959d2d728216dd0250dc6dcc40b6102c0b47290b4fa63acf2f1837c944d8a3c2bf460c848b9ecd30ee094acd0e82ec15022c346 fix-s390x.patch"
diff --git a/main/imlib2/fix-s390x.patch b/main/imlib2/fix-s390x.patch
new file mode 100644
index 0000000000..1c2506a65d
--- /dev/null
+++ b/main/imlib2/fix-s390x.patch
@@ -0,0 +1,16 @@
+Upstream: Should be
+Reason: Fixes compilation on big-endian arches like s390x
+
+diff --git a/src/modules/loaders/loader_argb.c b/src/modules/loaders/loader_argb.c
+index ec58ca3..e696fe4 100644
+--- a/src/modules/loaders/loader_argb.c
++++ b/src/modules/loaders/loader_argb.c
+@@ -52,7 +52,7 @@ load2(ImlibImage * im, int load_data)
+ goto quit;
+
+ #ifdef WORDS_BIGENDIAN
+- for (l = 0; l < im->w; l++)
++ for (int l = 0; l < im->w; l++)
+ SWAP_LE_32_INPLACE(ptr[l]);
+ #endif
+ ptr += im->w;