aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2019-08-24 12:42:02 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2019-08-24 12:42:02 +0000
commit8966b85498895339095e735acc118f74da544deb (patch)
treec19786069e06bf25747f854df7f1023ab4098a70
parentbd2ffebe9edab06e2c36e656b0d7f5220c9e8755 (diff)
Notes
-rw-r--r--math/amath/Makefile3
-rw-r--r--math/amath/files/patch-src_real_prim.h11
2 files changed, 11 insertions, 3 deletions
diff --git a/math/amath/Makefile b/math/amath/Makefile
index 687c18851841..9eeb82dbe3dc 100644
--- a/math/amath/Makefile
+++ b/math/amath/Makefile
@@ -13,9 +13,6 @@ COMMENT= Simple command line calculator
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
-NOT_FOR_ARCHS= powerpc powerpc64 powerpcspe
-NOT_FOR_ARCHS_REASON= Must define endianness
-
USES= gmake
USE_LDCONFIG= ${PREFIX}/lib/${PORTNAME}
HAS_CONFIGURE= yes
diff --git a/math/amath/files/patch-src_real_prim.h b/math/amath/files/patch-src_real_prim.h
new file mode 100644
index 000000000000..341e46b6f933
--- /dev/null
+++ b/math/amath/files/patch-src_real_prim.h
@@ -0,0 +1,11 @@
+--- src/real/prim.h.orig 2019-07-18 20:14:48 UTC
++++ src/real/prim.h
+@@ -106,7 +106,7 @@ int __kernel_rem_pio2(double* x, double* y, int e0, in
+ /* Detect other BE CPUs */
+ #if !defined(__IEEE_LITTLE_ENDIAN) && !defined(__IEEE_BIG_ENDIAN)
+ #if defined(PPCCPU) || defined(__PPC__) || \
+- defined(__powerpc__) || defined(__powerpc64__) \
++ defined(__powerpc__) || defined(__powerpc64__) || \
+ defined(__mips__) || defined(__mips)
+ #define __IEEE_BIG_ENDIAN
+ #endif