aboutsummaryrefslogtreecommitdiffstats
path: root/science
diff options
context:
space:
mode:
authormaho <maho@FreeBSD.org>2009-06-08 15:07:19 +0800
committermaho <maho@FreeBSD.org>2009-06-08 15:07:19 +0800
commit2e4c90528ae7dfbbd15f1be531bc6d10404502c5 (patch)
treef234202ff5e2a6c6e2b837786c8f2ba3326149a3 /science
parentd91150563a2b33f9d13787c9030d356b5c811e27 (diff)
downloadfreebsd-ports-gnome-2e4c90528ae7dfbbd15f1be531bc6d10404502c5.tar.gz
freebsd-ports-gnome-2e4c90528ae7dfbbd15f1be531bc6d10404502c5.tar.zst
freebsd-ports-gnome-2e4c90528ae7dfbbd15f1be531bc6d10404502c5.zip
Fix build on amd64 and now it's usable.
Diffstat (limited to 'science')
-rw-r--r--science/gamess/files/patch-comp4
-rw-r--r--science/gamess/files/patch-compddi2
-rw-r--r--science/gamess/files/patch-zunix.c10
3 files changed, 13 insertions, 3 deletions
diff --git a/science/gamess/files/patch-comp b/science/gamess/files/patch-comp
index c728947b184a..1327f95fe9a1 100644
--- a/science/gamess/files/patch-comp
+++ b/science/gamess/files/patch-comp
@@ -259,14 +259,14 @@
+ set OPT='-O2'
+ if ($MODULE == zheev) set OPT='-O0' # defensive compiling
+ if (($MODULE == qeigen) || ($MODULE == int2c)) then
-+ mv $MODULE.f $MODULE.junk
++ mv -f $MODULE.f $MODULE.junk
+ sed -e "s/Q-/D-/g" \
+ -e "s/Q+00/D+00/g" \
+ -e "s/REAL\*16/DOUBLE PRECISION/" $MODULE.junk > $MODULE.f
+ rm -f $MODULE.junk
+ endif
+ set echo
-+ %%FC%% -fdefault-integer-8 $OPT -std=legacy $MODULE.f
++ %%FC%% -c -fdefault-integer-8 $OPT -std=legacy $MODULE.f
+ unset echo
+ breaksw
+
diff --git a/science/gamess/files/patch-compddi b/science/gamess/files/patch-compddi
index 6196abf36b00..1a74b1eba8fc 100644
--- a/science/gamess/files/patch-compddi
+++ b/science/gamess/files/patch-compddi
@@ -81,7 +81,7 @@
+ exit 4
+ endsw
+
-+ set CLIBS = "%%PTHREAD_LIB%%"
++ set CLIBS = "%%PTHREAD_LIBS%%"
+ set F77_OPTS = "-DINT_SIZE=int -D_UNDERSCORES=$NumUS"
+ set AR_FLAGS = 'cr'
+ set RANLIB_FLAGS = ' '
diff --git a/science/gamess/files/patch-zunix.c b/science/gamess/files/patch-zunix.c
new file mode 100644
index 000000000000..2e1cd4cff1b0
--- /dev/null
+++ b/science/gamess/files/patch-zunix.c
@@ -0,0 +1,10 @@
+--- source/zunix.c~ 2008-10-31 23:05:41.000000000 +0900
++++ source/zunix.c 2009-06-08 15:37:42.000000000 +0900
+@@ -440,7 +440,6 @@
+ #ifdef LINUX64
+
+ #include <stdlib.h>
+-#include <malloc.h>
+
+ #define FORTINT long
+