aboutsummaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorAde Lovett <ade@FreeBSD.org>2004-10-04 23:27:44 +0000
committerAde Lovett <ade@FreeBSD.org>2004-10-04 23:27:44 +0000
commitf9dde1308b54665d8dba3a1f1b41d035ec1f1ff7 (patch)
tree8f500100e3b6fc0d234d58d020a3f7d051324c34 /math
parent46e4cb731056ac12047f1af8014d2056822b98b8 (diff)
downloadports-f9dde1308b54665d8dba3a1f1b41d035ec1f1ff7.tar.gz
ports-f9dde1308b54665d8dba3a1f1b41d035ec1f1ff7.zip
Notes
Diffstat (limited to 'math')
-rw-r--r--math/pari/Makefile2
-rw-r--r--math/pari/files/hack-src:headers::paricom.h20
2 files changed, 21 insertions, 1 deletions
diff --git a/math/pari/Makefile b/math/pari/Makefile
index e05a21f1321a..a7cbc6578b34 100644
--- a/math/pari/Makefile
+++ b/math/pari/Makefile
@@ -38,7 +38,7 @@ PLIST= ${PKGDIR}/pkg-plist.emacs
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 502126
-BROKEN= "Does not compile on FreeBSD >= 5.x"
+EXTRA_PATCHES= ${FILESDIR}/hack-src:headers::paricom.h
.endif
.if ${ARCH} == "amd64"
diff --git a/math/pari/files/hack-src:headers::paricom.h b/math/pari/files/hack-src:headers::paricom.h
new file mode 100644
index 000000000000..a02b299ee7dd
--- /dev/null
+++ b/math/pari/files/hack-src:headers::paricom.h
@@ -0,0 +1,20 @@
+--- src/headers/paricom.h.orig Fri Nov 3 13:00:24 2000
++++ src/headers/paricom.h Wed Sep 29 20:22:41 2004
+@@ -86,3 +86,2 @@
+
+-#ifdef NOEXP2
+ # ifdef __cplusplus
+@@ -92,12 +91,4 @@
+ # define exp2(x) (exp((double)(x)*LOG2))
+-# ifndef __CYGWIN32__
+-# define log2(x) (log((double)(x))/LOG2)
+-# endif
++# define log2(x) (log((double)(x))/LOG2)
+ # endif
+-#else
+- BEGINEXTERN
+- double exp2(double);
+- double log2(double);
+- ENDEXTERN
+-#endif
+