summaryrefslogtreecommitdiff
path: root/math/algae/files/patch-configure
diff options
context:
space:
mode:
authorTijl Coosemans <tijl@FreeBSD.org>2013-12-22 16:22:28 +0000
committerTijl Coosemans <tijl@FreeBSD.org>2013-12-22 16:22:28 +0000
commit3f80fdea42527c395d6bc87286b866c83eebe874 (patch)
treee9f8cc238027fcf93c3338cf77f61f09531e928f /math/algae/files/patch-configure
parentRevert r337193, groff needs perl, makes a loop, is bad. (diff)
- USES=fortran (eliminate FORTRANLIBS, LDFLAGS and pre-configure).
- Remove some patches and post-patch. - Remove USE_AUTOTOOLS=autoconf and patch configure script directly. - Replace BROKEN with BROKEN_${ARCH}. - Staging (add DESTDIR support to the makefiles). - Make sure the port uses its own arpack, blas, lapack and superlu.
Notes
Notes: svn path=/head/; revision=337197
Diffstat (limited to 'math/algae/files/patch-configure')
-rw-r--r--math/algae/files/patch-configure43
1 files changed, 43 insertions, 0 deletions
diff --git a/math/algae/files/patch-configure b/math/algae/files/patch-configure
new file mode 100644
index 000000000000..01997d12dd2d
--- /dev/null
+++ b/math/algae/files/patch-configure
@@ -0,0 +1,43 @@
+--- configure.orig
++++ configure
+@@ -2561,9 +2561,9 @@
+ cat > conftest.$ac_ext <<EOF
+ #line 2562 "configure"
+ #include "confdefs.h"
+-int main(int argc, char *argv);
++int main(int argc, char **argv);
+ int t(void);
+-int main(int argc, char *argv) { return t(); }
++int main(int argc, char **argv) { return t(); }
+ int t(void) { return 0; }
+ EOF
+ if eval $ac_compile; then
+@@ -4479,7 +4479,7 @@
+ *-unicos* ) f77_lib_names="F77 I77 sci f" ;;
+ * ) f77_lib_names="F77 I77" ;;
+ esac
+-f77_lib_names="$f77_lib_names g2c f2c"
++f77_lib_names=gfortran
+ for f in $f77_lib_names; do reversed_names="$f $reversed_names"; done
+
+ #---------------------------------------------------------------------
+@@ -5494,8 +5494,7 @@
+ # checks (except for LAPACK) don't need it and won't find it.
+
+ if test "$BLAS" = xblas; then
+- LDFLAGS="$LDFLAGS -L../blas"
+- LOCAL_LIBS="-lblas $LOCAL_LIBS"
++ LOCAL_LIBS="../blas/libblas.a $LOCAL_LIBS"
+ fi
+
+
+@@ -5590,8 +5589,7 @@
+ # checks don't need it and won't find it.
+
+ if test "$LAPACK" = xlapack; then
+- LDFLAGS="$LDFLAGS -L../lapack"
+- LOCAL_LIBS="-llapack $LOCAL_LIBS"
++ LOCAL_LIBS="../lapack/liblapack.a $LOCAL_LIBS"
+ fi
+
+