aboutsummaryrefslogtreecommitdiffstats
path: root/science/abinit/files
diff options
context:
space:
mode:
authorthierry <thierry@FreeBSD.org>2009-04-10 23:22:53 +0800
committerthierry <thierry@FreeBSD.org>2009-04-10 23:22:53 +0800
commit8eaf9a5225df26962419178278fcadad3ec608b2 (patch)
treed525b558cfe10c17ae205eb02e468de87af768c2 /science/abinit/files
parent227576f861c980e8fd9ae054a71908f6dc1ac5c4 (diff)
downloadfreebsd-ports-graphics-8eaf9a5225df26962419178278fcadad3ec608b2.tar.gz
freebsd-ports-graphics-8eaf9a5225df26962419178278fcadad3ec608b2.tar.zst
freebsd-ports-graphics-8eaf9a5225df26962419178278fcadad3ec608b2.zip
- Upgrade to 5.7.3
Release notes at <http://www.abinit.org/Infos_v5.7/release_notes/release_notes.html> - enable bindings to get the headers This requires makemake and GSL. Approved by: Maho (maintainer)
Diffstat (limited to 'science/abinit/files')
-rw-r--r--science/abinit/files/patch-bindings_parser_ab_dtset_c.c11
-rw-r--r--science/abinit/files/patch-config+m4+init.m4129
-rw-r--r--science/abinit/files/patch-config_scripts_make-macros-autotools11
3 files changed, 151 insertions, 0 deletions
diff --git a/science/abinit/files/patch-bindings_parser_ab_dtset_c.c b/science/abinit/files/patch-bindings_parser_ab_dtset_c.c
new file mode 100644
index 00000000000..e1f4eb3da3e
--- /dev/null
+++ b/science/abinit/files/patch-bindings_parser_ab_dtset_c.c
@@ -0,0 +1,11 @@
+--- bindings/parser/ab_dtset_c.c.orig 2009-02-22 07:08:32.000000000 +0100
++++ bindings/parser/ab_dtset_c.c 2009-03-26 22:21:33.000000000 +0100
+@@ -7,6 +7,8 @@
+ /* g95 : #define FC_MOD_NAME(A) ab_dtset_MP_ ## A */
+ #define FC_MOD_CALL(A,...) FC_MOD_NAME(A)(__VA_ARGS__)
+
++typedef unsigned int uint;
++
+ /* Fortran interface. */
+ void FC_MOD_NAME(ab_dtset_new)(int *dt, const char *filename, int *len);
+ void FC_MOD_NAME(ab_dtset_new_from_string)(int *dt, const char *string, int *len);
diff --git a/science/abinit/files/patch-config+m4+init.m4 b/science/abinit/files/patch-config+m4+init.m4
new file mode 100644
index 00000000000..0d31f2013a9
--- /dev/null
+++ b/science/abinit/files/patch-config+m4+init.m4
@@ -0,0 +1,129 @@
+--- ./config/m4/init.m4.orig 2009-03-11 06:12:22.000000000 +0100
++++ ./config/m4/init.m4 2009-03-28 16:29:06.000000000 +0100
+@@ -231,6 +231,101 @@
+ abi_cpu_bits="64"
+ ;;
+
++ i386-*freebsd*)
++ dnl Pentium 3 ?
++ if test "${abi_cpu_model}" = ""; then
++ abi_cpu_model=`sysctl hw.model | grep 'Pentium III'`
++ if test "${abi_cpu_model}" != ""; then
++ abi_cpu_model="pentium3"
++ abi_cpu_64bits="no"
++ abi_cpu_bits="32"
++ fi
++ fi
++ dnl Pentium 4 ?
++ if test "${abi_cpu_model}" = ""; then
++ abi_cpu_model=`sysctl hw.model | grep 'Intel(R) Pentium(R) 4'`
++ if test "${abi_cpu_model}" != ""; then
++ abi_cpu_model="pentium4"
++ abi_cpu_64bits="no"
++ abi_cpu_bits="32"
++ fi
++ fi
++ dnl Pentium 4M ?
++ if test "${abi_cpu_model}" = ""; then
++ abi_cpu_model=`sysctl hw.model | grep 'Intel(R) Pentium(R) M'`
++ if test "${abi_cpu_model}" != ""; then
++ abi_cpu_model="pentium4"
++ abi_cpu_64bits="no"
++ abi_cpu_bits="32"
++ fi
++ fi
++ dnl Unknown
++ if test "${abi_cpu_model}" = ""; then
++ abi_cpu_model="unknown"
++ fi
++ dnl The processor is anyway 32-bit
++ abi_cpu_64bits="no"
++ abi_cpu_bits="32"
++ ;;
++
++ amd64-*freebsd*)
++ dnl Opteron ?
++ if test "${abi_cpu_model}" = ""; then
++ abi_cpu_model=`sysctl hw.model | grep 'Opteron'`
++ if test "${abi_cpu_model}" != ""; then
++ abi_cpu_model="opteron"
++ abi_cpu_64bits="yes"
++ abi_cpu_bits="64"
++ fi
++ fi
++ dnl Xeon ?
++ if test "${abi_cpu_model}" = ""; then
++ abi_cpu_model=`sysctl hw.model | grep 'Intel(R) XEON(TM)'`
++ if test "${abi_cpu_model}" != ""; then
++ abi_cpu_model="xeon"
++ abi_cpu_64bits="yes"
++ abi_cpu_bits="64"
++ fi
++ fi
++ dnl Unknown
++ if test "${abi_cpu_model}" = ""; then
++ abi_cpu_model="unknown"
++ fi
++ dnl The processor is anyway 64-bit
++ abi_cpu_64bits="yes"
++ abi_cpu_bits="64"
++ ;;
++
++ ia64-*freebsd*)
++ dnl Itanium 1 ?
++ if test "${abi_cpu_model}" = ""; then
++ abi_cpu_model=`sysctl hw.model | grep 'Itanium 1'`
++ if test "${abi_cpu_model}" = ""; then
++ abi_cpu_model="itanium1"
++ fi
++ fi
++ dnl Itanium 2 ?
++ if test "${abi_cpu_model}" = ""; then
++ abi_cpu_model=`sysctl hw.model | grep 'Itanium 2'`
++ if test "${abi_cpu_model}" != ""; then
++ abi_cpu_model="itanium2"
++ fi
++ fi
++ dnl Unknown
++ if test "${abi_cpu_model}" = ""; then
++ abi_cpu_model="unknown"
++ fi
++ dnl The processor is anyway 64-bit
++ abi_cpu_64bits="yes"
++ abi_cpu_bits="64"
++ ;;
++
++ sparc64-*freebsd*)
++ abi_cpu_model="unknown"
++ abi_cpu_64bits="yes"
++ abi_cpu_bits="64"
++ ;;
++
+ esac
+
+ AC_SUBST(abi_cpu_vendor)
+@@ -289,15 +384,15 @@
+ fi
+
+ dnl Set-up all directory names
+- abinit_bindir="${abinit_prefix}/abinit/${ABINIT_VERSION_BASE}/bin"
+- abinit_chkdir="${abinit_prefix}/abinit/${ABINIT_VERSION_BASE}/tests"
+- abinit_datdir="${abinit_prefix}/abinit"
+- abinit_docdir="${abinit_prefix}/abinit/${ABINIT_VERSION_BASE}/doc"
+- abinit_incdir="${abinit_prefix}/abinit/${ABINIT_VERSION_BASE}/include"
+- abinit_libdir="${abinit_prefix}/abinit/${ABINIT_VERSION_BASE}/lib"
+- abinit_mandir="${abinit_prefix}/abinit/man"
+- abinit_rundir="${abinit_prefix}/abinit/bin"
+- abinit_wwwdir="${abinit_prefix}/abinit/${ABINIT_VERSION_BASE}/www"
++ abinit_bindir="${abinit_prefix}/bin"
++ abinit_chkdir="${abinit_prefix}/share/examples/abinit/tests"
++ abinit_datdir="${abinit_prefix}/share/abinit"
++ abinit_docdir="${abinit_prefix}/share/doc/abinit/"
++ abinit_incdir="${abinit_prefix}/include/abinit"
++ abinit_libdir="${abinit_prefix}/lib"
++ abinit_mandir="${abinit_prefix}/man"
++ abinit_rundir="${abinit_prefix}/bin"
++ abinit_wwwdir="${abinit_prefix}/www/abinit"
+
+ dnl Substitute all variables
+ AC_SUBST(abinit_prefix)
diff --git a/science/abinit/files/patch-config_scripts_make-macros-autotools b/science/abinit/files/patch-config_scripts_make-macros-autotools
new file mode 100644
index 00000000000..690b7c8cb42
--- /dev/null
+++ b/science/abinit/files/patch-config_scripts_make-macros-autotools
@@ -0,0 +1,11 @@
+--- ./config/scripts/make-macros-autotools.orig 2009-02-22 07:08:33.000000000 +0100
++++ ./config/scripts/make-macros-autotools 2009-03-25 22:34:01.000000000 +0100
+@@ -413,7 +413,7 @@
+ now = strftime("%Y/%m/%d %H:%M:%S +0000",gmtime())
+
+ # Get Autotools versions
+-(m4_ret,m4_version) = commands.getstatusoutput("m4 --version")
++(m4_ret,m4_version) = commands.getstatusoutput("gm4 --version")
+ (ac_ret,ac_version) = commands.getstatusoutput("autoconf --version")
+ (am_ret,am_version) = commands.getstatusoutput("automake --version")
+ (lt_ret,lt_version) = commands.getstatusoutput("libtool --version")