aboutsummaryrefslogtreecommitdiff
path: root/misc/free42/files/patch-gtk_build-intel-lib.sh
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2021-03-25 19:09:35 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2021-03-25 19:09:35 +0000
commit4ca9027198b0dd3eef2f2e6bba75dac979f56cca (patch)
treeda1d7c57f0f103dd7399de6d607db0de06a878c3 /misc/free42/files/patch-gtk_build-intel-lib.sh
parent862a720c830ac23e16b2644b91b122ca4aca2dbf (diff)
downloadports-4ca9027198b0dd3eef2f2e6bba75dac979f56cca.tar.gz
ports-4ca9027198b0dd3eef2f2e6bba75dac979f56cca.zip
Notes
Diffstat (limited to 'misc/free42/files/patch-gtk_build-intel-lib.sh')
-rw-r--r--misc/free42/files/patch-gtk_build-intel-lib.sh26
1 files changed, 26 insertions, 0 deletions
diff --git a/misc/free42/files/patch-gtk_build-intel-lib.sh b/misc/free42/files/patch-gtk_build-intel-lib.sh
new file mode 100644
index 000000000000..a7d873ad9e8f
--- /dev/null
+++ b/misc/free42/files/patch-gtk_build-intel-lib.sh
@@ -0,0 +1,26 @@
+--- gtk/build-intel-lib.sh.orig 2021-03-05 01:52:42 UTC
++++ gtk/build-intel-lib.sh
+@@ -43,6 +43,8 @@ fi
+
+ tar xvfz ../inteldecimal/IntelRDFPMathLib20U1.tar.gz
+ cd IntelRDFPMathLib20U1
++sed -i '' -e 's/\r//g' LIBRARY/src/bid_functions.h
++patch -p0 <../intel-lib-freebsd.patch
+ patch -p0 <../intel-lib-linux.patch
+
+ # When building for architectures other than x86 or x86_64, I remove the
+@@ -55,11 +58,11 @@ patch -p0 <../intel-lib-linux.patch
+ # it to x86_64 works when targeting arm64, a 64-bit platform.
+ # Of course, proceed with caution. Your mileage may vary.
+
+-case `uname -m` in
+- armv7|armv7l|ppc)
++case `uname -p` in
++ armv6|armv7|armv7l|ppc|powerpc|powerpcspe|mips)
+ patch -p0 <../intel-lib-unknown-32bit.patch
+ ;;
+- aarch64|arm64|i86pc)
++ aarch64|arm64|i86pc|powerpc64|powerpc64le|mips64|riscv64)
+ patch -p0 <../intel-lib-unknown-64bit.patch
+ ;;
+ esac