aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2004-01-30 06:28:53 +0800
committerkrion <krion@FreeBSD.org>2004-01-30 06:28:53 +0800
commitb1834481098018ba2dd51060a027a5d16e48eab9 (patch)
treef739aef8125b86492573080cb0b0de104aef9b3d /graphics
parenta0bc5fc08e7b5c4dbe4ad28fc162594789637817 (diff)
downloadfreebsd-ports-graphics-b1834481098018ba2dd51060a027a5d16e48eab9.tar.gz
freebsd-ports-graphics-b1834481098018ba2dd51060a027a5d16e48eab9.tar.zst
freebsd-ports-graphics-b1834481098018ba2dd51060a027a5d16e48eab9.zip
- Add patch to fix build on alpha
PR: ports/62080 Submitted by: maintainer Noticed by: bento via kris
Diffstat (limited to 'graphics')
-rw-r--r--graphics/xd3d/Makefile5
-rw-r--r--graphics/xd3d/files/patch-RULES.freeBSD16
2 files changed, 21 insertions, 0 deletions
diff --git a/graphics/xd3d/Makefile b/graphics/xd3d/Makefile
index 9fc5a14900b..6302baf14f8 100644
--- a/graphics/xd3d/Makefile
+++ b/graphics/xd3d/Makefile
@@ -45,6 +45,11 @@ F77?= f77
FFLAGS?= -O
MEMORY_XD3D?= 64
+.if ${MACHINE_ARCH} == "i386"
+FFLAGS+= -malign-double
+CFLAGS+= -malign-double
+.endif
+
.if defined(LANG) && ${LANG:Mfr*} != ""
XD3D_LANG= FRANCAIS
.else
diff --git a/graphics/xd3d/files/patch-RULES.freeBSD b/graphics/xd3d/files/patch-RULES.freeBSD
new file mode 100644
index 00000000000..34b60251eba
--- /dev/null
+++ b/graphics/xd3d/files/patch-RULES.freeBSD
@@ -0,0 +1,16 @@
+--- RULES.freeBSD.orig Mon Dec 1 14:55:58 2003
++++ RULES.freeBSD Thu Jan 29 21:43:28 2004
+@@ -54,11 +54,11 @@
+ #
+ # Options for the Fortran compiler
+ #
+-OPTF = %%FFLAGS%% -malign-double
++OPTF = %%FFLAGS%%
+ #
+ # Options for the C compiler
+ #
+-OPTC = %%CFLAGS%% -malign-double
++OPTC = %%CFLAGS%%
+
+ #-----------------------------------------------
+ # You should not need to change anything below !