aboutsummaryrefslogtreecommitdiffstats
path: root/cad
diff options
context:
space:
mode:
authorshaun <shaun@FreeBSD.org>2006-12-06 05:45:12 +0800
committershaun <shaun@FreeBSD.org>2006-12-06 05:45:12 +0800
commit5143508ad672eb5ebc282abceb7084bed10c3b8e (patch)
treec914ed330eb9491b823ee0117cff599031868d9b /cad
parent395f05c9f65ee4511d96f36670dbcf1d7940eee1 (diff)
downloadfreebsd-ports-gnome-5143508ad672eb5ebc282abceb7084bed10c3b8e.tar.gz
freebsd-ports-gnome-5143508ad672eb5ebc282abceb7084bed10c3b8e.tar.zst
freebsd-ports-gnome-5143508ad672eb5ebc282abceb7084bed10c3b8e.zip
- Fix build on sparc64. [1]
- Respect ${X11BASE}. [2] PR: ports/105535 [1], ports/106245 [2] Submitted by: Erik Greenwald <erik@smluc.org> (maintainer)
Diffstat (limited to 'cad')
-rw-r--r--cad/brlcad/Makefile3
-rw-r--r--cad/brlcad/files/patch-include_machine.h31
2 files changed, 34 insertions, 0 deletions
diff --git a/cad/brlcad/Makefile b/cad/brlcad/Makefile
index 326ecca98b10..c041d453685d 100644
--- a/cad/brlcad/Makefile
+++ b/cad/brlcad/Makefile
@@ -175,6 +175,9 @@ CONFIGURE_ARGS+= --enable-optimized
.endif
.endif
+post-patch:
+ ${REINPLACE_CMD} "s+/usr/X11R6+${X11BASE}+" ${WRKSRC}/configure
+
pre-install:
${CP} ${FILESDIR}/mged.sh ${WRKSRC}
${REINPLACE_CMD} -e 's+%%BRLCAD_ROOT%%+${PREFIX}+g;' \
diff --git a/cad/brlcad/files/patch-include_machine.h b/cad/brlcad/files/patch-include_machine.h
new file mode 100644
index 000000000000..bab5ec121661
--- /dev/null
+++ b/cad/brlcad/files/patch-include_machine.h
@@ -0,0 +1,31 @@
+Index: include/machine.h
+===================================================================
+RCS file: /cvsroot/brlcad/brlcad/include/machine.h,v
+retrieving revision 14.20
+diff -u -r14.20 machine.h
+--- include/machine.h 18 Sep 2006 05:24:07 -0000 14.20
++++ include/machine.h 14 Nov 2006 18:00:33 -0000
+@@ -611,7 +611,8 @@
+
+ #endif
+
+-#if defined(__sparc64__)
++/* TODO: should this be looking for solaris/sunos tags? */
++#if defined(__sparc64__) && !defined(__FreeBSD__)
+ /********************************
+ * *
+ * Sparc 64 *
+@@ -702,11 +703,11 @@
+ # define LOCAL auto /* static|auto, for serial|parallel cpu */
+
+ /* amd64 */
+-# if defined(__x86_64__)
++# if defined(__x86_64__) || defined(__sparc64__) || defined(__ia64__)
+ # define BITV_SHIFT 6
+ # define MAX_PSW 256
+ /* ia32 */
+-# elif !defined(__ia64__) && !defined(__x86_64__) && !defined(__sparc64__)
++# else
+ # define BITV_SHIFT 5
+ # define MAX_PSW 16
+ # endif