aboutsummaryrefslogtreecommitdiffstats
path: root/main/lcms
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2018-02-15 15:18:24 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2018-02-15 15:18:39 +0000
commit3714e669c9b3dad8b85d2d148c2ee414d466eb4d (patch)
tree1c7569b578abba6358936e431816b1de0c0a8106 /main/lcms
parent80ee059109481bdd77655bcbd4745c052ea9391d (diff)
downloadaports-3714e669c9b3dad8b85d2d148c2ee414d466eb4d.tar.bz2
aports-3714e669c9b3dad8b85d2d148c2ee414d466eb4d.tar.xz
main/lcms: fix ppc64le build
Diffstat (limited to 'main/lcms')
-rw-r--r--main/lcms/APKBUILD6
-rw-r--r--main/lcms/ppc64le.patch11
2 files changed, 15 insertions, 2 deletions
diff --git a/main/lcms/APKBUILD b/main/lcms/APKBUILD
index 8df5310462..529b6e2980 100644
--- a/main/lcms/APKBUILD
+++ b/main/lcms/APKBUILD
@@ -11,7 +11,8 @@ makedepends="tiff-dev libjpeg-turbo-dev zlib-dev"
subpackages="$pkgname-dev $pkgname-doc liblcms"
source="http://downloads.sourceforge.net/project/lcms/lcms/$pkgver/lcms-$pkgver.tar.gz
configure-for-musl.patch
- CVE-2013-4276.patch"
+ CVE-2013-4276.patch
+ ppc64le.patch"
prepare() {
cd "$builddir"
@@ -46,4 +47,5 @@ liblcms() {
sha512sums="85a55ad0673f0df2aaa80d18caa50314319f8da5ee4d84eed919059d0dad9861d684ef6353ce0ec6f9892a4603ce8e8e12f84d46858e23f52846b8aefd3cf449 lcms-1.19.tar.gz
5ef4671234cec59a8ba088937d6e4c26cfdadbe69ad2654eeb8521fd7c15f7405fc18f860722b41e2da9f55637325fe39e36c080003eed0371e6610d2e3fd264 configure-for-musl.patch
-73037e6e2f8e52f402c5160a38e1d8cc6f7f5f88145d68f733f796def539902a6dfcf685eae076d1456d885c782771993dc64f78b4e381421b0e4e8730eaa1d2 CVE-2013-4276.patch"
+73037e6e2f8e52f402c5160a38e1d8cc6f7f5f88145d68f733f796def539902a6dfcf685eae076d1456d885c782771993dc64f78b4e381421b0e4e8730eaa1d2 CVE-2013-4276.patch
+1dbbbaaf797fb2f14f87a844eb1ce124ff31aba71f5b50f803ab3116159c343307edccf4564c5b9e6e05e852b06b8025bbea53b5c62aa7ed9b457571bc9475eb ppc64le.patch"
diff --git a/main/lcms/ppc64le.patch b/main/lcms/ppc64le.patch
new file mode 100644
index 0000000000..928e05137f
--- /dev/null
+++ b/main/lcms/ppc64le.patch
@@ -0,0 +1,11 @@
+--- lcms-1.19.orig/include/lcms.h
++++ lcms-1.19/include/lcms.h
+@@ -139,7 +139,7 @@
+ # define USE_BIG_ENDIAN 1
+ #endif
+
+-#if defined(__sgi__) || defined(__sgi) || defined(__powerpc__) || defined(sparc) || defined(__ppc__) || defined(__s390__) || defined(__s390x__)
++#if defined(__sgi__) || defined(__sgi) || defined(__powerpc__) || defined(sparc) || defined(__s390__) || defined(__s390x__)
+ # define USE_BIG_ENDIAN 1
+ #endif
+