aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2022-01-14 23:03:23 +0000
committerprspkt <p.rspkt@yandex.com>2022-01-14 23:09:07 +0000
commitcfa9b3b75e1b08e19655935685b546b8557f3ff3 (patch)
treefa70f67bdcd976ee939b07ee4e4b44a0f509b55b
parentafc8d553e2603e1e52a432fa39fa8c84197a2f1c (diff)
downloadaports-cfa9b3b75e1b08e19655935685b546b8557f3ff3.tar.gz
aports-cfa9b3b75e1b08e19655935685b546b8557f3ff3.tar.bz2
aports-cfa9b3b75e1b08e19655935685b546b8557f3ff3.tar.xz
community/imv: re-enable riscv64 et al
-rw-r--r--community/imv/APKBUILD18
1 files changed, 13 insertions, 5 deletions
diff --git a/community/imv/APKBUILD b/community/imv/APKBUILD
index 1958f90a92..61a688c2b7 100644
--- a/community/imv/APKBUILD
+++ b/community/imv/APKBUILD
@@ -1,11 +1,10 @@
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=imv
pkgver=4.3.1
-pkgrel=1
+pkgrel=2
pkgdesc="Image viewer for X11/Wayland"
url="https://sr.ht/~exec64/imv"
-# s390x, mips64 and riscv64 blocked by librsvg
-arch="all !s390x !mips64 !riscv64"
+arch="all"
license="MIT"
makedepends="
meson
@@ -13,7 +12,6 @@ makedepends="
fontconfig-dev
freeimage-dev
sdl2_ttf-dev
- librsvg-dev
wayland-dev
mesa-dev
libxkbcommon-dev
@@ -31,6 +29,16 @@ source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~exec64/imv/archive/v$pkgver.
"
builddir="$srcdir/$pkgname-v$pkgver"
+case $CARCH in
+ s390x|mips64|riscv64)
+ _rsvg=""
+ ;;
+ *)
+ makedepends="$makedepends librsvg-dev"
+ _rsvg="-Dlibrsvg=enabled"
+ ;;
+esac
+
build() {
abuild-meson \
-Dwindows=all \
@@ -40,9 +48,9 @@ build() {
-Dlibtiff=disabled \
-Dlibpng=disabled \
-Dlibjpeg=disabled \
- -Dlibrsvg=enabled \
-Dlibnsgif=disabled \
-Dlibheif=disabled \
+ $_rsvg \
. output
meson compile ${JOBS:+-j ${JOBS}} -C output
}