aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpsykose <alice@ayaya.dev>2023-03-02 02:20:44 +0000
committerpsykose <alice@ayaya.dev>2023-03-02 03:20:52 +0100
commit8d84fc110b9c5ce6b698bffb1d78acd918ea2a96 (patch)
tree8382d0914982a0e17778838dab273b5fde9b306f
parent34f8f3fdc5a7dbff49c7a818fa3b89bff273b640 (diff)
main/lcms2: fix big endian meson
-rw-r--r--main/lcms2/APKBUILD5
-rw-r--r--main/lcms2/bigendian.patch13
2 files changed, 17 insertions, 1 deletions
diff --git a/main/lcms2/APKBUILD b/main/lcms2/APKBUILD
index 1cfa7cf88c4..da5fbf16664 100644
--- a/main/lcms2/APKBUILD
+++ b/main/lcms2/APKBUILD
@@ -15,7 +15,9 @@ depends_dev="
"
makedepends="$depends_dev meson"
subpackages="$pkgname-dev $pkgname-doc $pkgname-utils $pkgname-plugins"
-source="https://github.com/mm2/Little-CMS/releases/download/lcms$pkgver/lcms2-$pkgver.tar.gz"
+source="https://github.com/mm2/Little-CMS/releases/download/lcms$pkgver/lcms2-$pkgver.tar.gz
+ bigendian.patch
+ "
# secfixes:
# 2.9-r1:
@@ -57,4 +59,5 @@ plugins() {
sha512sums="
ab038c369e66736e0dd3810fbac6cf5381bc3102c4dd693819367b1224f59d9e853ede081388464c0e7c213d92e6cddc48c23020953af10ad6c6802cfa17e213 lcms2-2.15.tar.gz
+43c00483efd1d6c10c7ffc484b299ab9168dc65389f4c9eee9f6724172afea5f82881acee8c384ac04ced4613c6f82c3e880233ff3b35b40fb36271676275d01 bigendian.patch
"
diff --git a/main/lcms2/bigendian.patch b/main/lcms2/bigendian.patch
new file mode 100644
index 00000000000..6f08124de28
--- /dev/null
+++ b/main/lcms2/bigendian.patch
@@ -0,0 +1,13 @@
+diff --git a/meson.build b/meson.build
+index 694895e..2aa1dff 100644
+--- a/meson.build
++++ b/meson.build
+@@ -27,7 +27,7 @@ if cc.has_function_attribute('visibility:hidden')
+ endif
+
+ if host_machine.endian() == 'big'
+- cargs = '-DWORDS_BIGENDIAN=1'
++ cargs += '-DWORDS_BIGENDIAN=1'
+ endif
+
+