aboutsummaryrefslogtreecommitdiffstats
path: root/cad/gplcver
diff options
context:
space:
mode:
authorarved <arved@FreeBSD.org>2006-01-20 22:18:34 +0800
committerarved <arved@FreeBSD.org>2006-01-20 22:18:34 +0800
commit05d551567ce495d9acd0bbb21c294e341a2bfbee (patch)
treee929f18c3ea0a8b65b52ba095e6fefc79a4c3efb /cad/gplcver
parent00386cca03fd3eb433bbbb3d82dbae364a22034a (diff)
downloadfreebsd-ports-gnome-05d551567ce495d9acd0bbb21c294e341a2bfbee.tar.gz
freebsd-ports-gnome-05d551567ce495d9acd0bbb21c294e341a2bfbee.tar.zst
freebsd-ports-gnome-05d551567ce495d9acd0bbb21c294e341a2bfbee.zip
Fix build on sparc
Diffstat (limited to 'cad/gplcver')
-rw-r--r--cad/gplcver/Makefile4
-rw-r--r--cad/gplcver/files/patch-src-v.h10
-rw-r--r--cad/gplcver/files/patch-src-v_dbg2.c11
-rw-r--r--cad/gplcver/files/patch-src-v_ex2.c11
-rw-r--r--cad/gplcver/files/patch-src-v_ms.c11
-rw-r--r--cad/gplcver/files/patch-src-v_src3.c11
6 files changed, 54 insertions, 4 deletions
diff --git a/cad/gplcver/Makefile b/cad/gplcver/Makefile
index 0b05f53e364d..47074407390f 100644
--- a/cad/gplcver/Makefile
+++ b/cad/gplcver/Makefile
@@ -24,10 +24,6 @@ PLIST_FILES= bin/cver
.include <bsd.port.pre.mk>
-.if ${ARCH} == "sparc64"
-BROKEN= "Does not compile on sparc64"
-.endif
-
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/cver ${PREFIX}/bin
diff --git a/cad/gplcver/files/patch-src-v.h b/cad/gplcver/files/patch-src-v.h
new file mode 100644
index 000000000000..3f6fb5d4c1da
--- /dev/null
+++ b/cad/gplcver/files/patch-src-v.h
@@ -0,0 +1,10 @@
+--- src/v.h.orig Fri Jan 20 15:02:16 2006
++++ src/v.h Fri Jan 20 15:02:33 2006
+@@ -119,7 +119,6 @@
+ #endif
+ } w64_u;
+ #else
+-#include <sys/isa_defs.h>
+
+ typedef union {
+ word64 w64v;
diff --git a/cad/gplcver/files/patch-src-v_dbg2.c b/cad/gplcver/files/patch-src-v_dbg2.c
new file mode 100644
index 000000000000..b37d9b2b59c6
--- /dev/null
+++ b/cad/gplcver/files/patch-src-v_dbg2.c
@@ -0,0 +1,11 @@
+--- src/v_dbg2.c.orig Fri Jan 20 09:54:37 2006
++++ src/v_dbg2.c Fri Jan 20 09:54:58 2006
+@@ -44,7 +44,7 @@
+ #endif
+
+ /* REMOVEME - no longer supporting SunOS - maybe needed for hpux? */
+-#if defined(__sparc) && !defined(__SVR4)
++#if defined(__sparc) && !defined(__SVR4) && !defined(__FreeBSD__)
+ extern int32 tolower(int32);
+ extern int32 sscanf(char *, char *, ...);
+ #endif
diff --git a/cad/gplcver/files/patch-src-v_ex2.c b/cad/gplcver/files/patch-src-v_ex2.c
new file mode 100644
index 000000000000..a35ee2956bcb
--- /dev/null
+++ b/cad/gplcver/files/patch-src-v_ex2.c
@@ -0,0 +1,11 @@
+--- src/v_ex2.c.orig Fri Jan 20 09:48:49 2006
++++ src/v_ex2.c Fri Jan 20 09:49:23 2006
+@@ -38,7 +38,7 @@
+ #endif
+
+ /* REMOVEME - no longer supporting SunOS - maybe needed for hpux? */
+-#if defined(__sparc) && !defined(__SVR4)
++#if defined(__sparc) && !defined(__SVR4) && !defined(__FreeBSD__)
+ extern int32 tolower(int32);
+ extern ungetc(int32 c, FILE *);
+ #endif
diff --git a/cad/gplcver/files/patch-src-v_ms.c b/cad/gplcver/files/patch-src-v_ms.c
new file mode 100644
index 000000000000..c4e58d53a640
--- /dev/null
+++ b/cad/gplcver/files/patch-src-v_ms.c
@@ -0,0 +1,11 @@
+--- src/v_ms.c.orig Fri Jan 20 09:56:30 2006
++++ src/v_ms.c Fri Jan 20 09:56:48 2006
+@@ -50,7 +50,7 @@
+ #endif
+
+ /* REMOVEME - no longer supporting SunOS - maybe needed for hpux? */
+-#if defined(__sparc) && !defined(__SVR4)
++#if defined(__sparc) && !defined(__SVR4) && !defined(__FreeBSD__)
+ extern int32 tolower(int32);
+ extern ungetc(int32 c, FILE *);
+ extern long time (long *);
diff --git a/cad/gplcver/files/patch-src-v_src3.c b/cad/gplcver/files/patch-src-v_src3.c
new file mode 100644
index 000000000000..c557afa3d71b
--- /dev/null
+++ b/cad/gplcver/files/patch-src-v_src3.c
@@ -0,0 +1,11 @@
+--- src/v_src3.c.orig Fri Jan 20 09:40:09 2006
++++ src/v_src3.c Fri Jan 20 09:41:23 2006
+@@ -49,7 +49,7 @@
+ #endif
+
+ /* REMOVEME - no longer supporting SunOS - maybe needed for hpux? */
+-#if defined(__sparc) && !defined(__SVR4)
++#if defined(__sparc) && !defined(__SVR4) && !defined(__FreeBSD__)
+ extern int32 tolower(int32);
+ #endif
+