summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-mathematics/freemat/files/freemat-3.6-optional-deps.patch')
-rw-r--r--sci-mathematics/freemat/files/freemat-3.6-optional-deps.patch91
1 files changed, 91 insertions, 0 deletions
diff --git a/sci-mathematics/freemat/files/freemat-3.6-optional-deps.patch b/sci-mathematics/freemat/files/freemat-3.6-optional-deps.patch
new file mode 100644
index 000000000000..b7b0020a46b3
--- /dev/null
+++ b/sci-mathematics/freemat/files/freemat-3.6-optional-deps.patch
@@ -0,0 +1,91 @@
+--- acinclude.m4.orig 2008-03-24 00:40:28.000000000 +0000
++++ acinclude.m4 2008-03-24 01:40:37.000000000 +0000
+@@ -304,6 +304,11 @@
+ need_extern="no"
+ LIBS="$LIBS $FLIBS"
+
++AC_ARG_ENABLE(portaudio,
++ [--enable-portaudio],
++ [enable_portaudio=$enableval])
++if test x"$enable_portaudio" = x"yes"; then
++
+ AC_CHECK_LIB(portaudio,Pa_GetDefaultInputDevice,found_portaudio19="yes",found_portaudio19="no")
+ AC_CHECK_HEADER(portaudio.h,[],found_portaudio19="no")
+
+@@ -330,6 +335,7 @@
+ else
+ found_portaudio="no";
+ fi
++fi
+
+ AC_CHECK_LIB(pcre,pcre_compile,found_pcre="yes",found_pcre="no")
+ AC_CHECK_HEADER(pcre.h,[],found_pcre="no")
+@@ -339,6 +345,11 @@
+ AC_DEFINE(HAVE_PCRE, 1, [Set to 1 if you have libpcre])
+ fi
+
++
++AC_ARG_ENABLE(ffcall,
++ [--enable-ffcall],
++ [enable_ffcall=$enableval])
++if test x"$enable_ffcall" = x"yes"; then
+ AC_CHECK_LIB(avcall,__structcpy,found_avcall="yes",found_avcall="no")
+ AC_CHECK_HEADER(avcall.h,[],found_avcall="no")
+
+@@ -346,7 +357,7 @@
+ LIBS="-lavcall $LIBS"
+ AC_DEFINE(HAVE_AVCALL, 1, [Set to 1 if you have libavcall])
+ fi
+-
++fi
+ if test x"$is_osx" == xyes; then
+ LIBS="$LIBS -framework vecLib"
+ found_blas="yes"
+@@ -362,6 +373,10 @@
+ fi
+ fi
+
++AC_ARG_ENABLE(umfpack,
++ [--enable-umfpack],
++ [enable_umfpack=$enableval])
++if test x"$enable_umfpack" = x"yes"; then
+ AC_CHECK_LIB(amd,amd_postorder,found_amd="yes",found_amd="no")
+ AC_CHECK_HEADER(amd.h,found_amdh="yes",found_amdh="no")
+ if test x"$found_amdh" == xno; then
+@@ -405,10 +420,15 @@
+ if (test x"$found_amdh" == xyes) && (test x"$found_amd" == xyes) && (test x"$found_umfpackh" == xyes) && (test x"$found_umfpack" == xyes); then
+ AC_DEFINE(HAVE_UMFPACK, 1, [Set to 1 if you have UMFPACK])
+ fi
++fi
+
+ dnl PKG_CHECK_MODULES(fftw3, fftw3 >= 3.1.0, found_fftw3="yes", found_fftw3="no")
+ dnl PKG_CHECK_MODULES(fftw3f, fftw3f >= 3.1.0, found_fftw3f="yes", found_fftw3f="no")
+
++AC_ARG_ENABLE(fftw,
++ [--enable-fftw],
++ [enable_fftw=$enableval])
++if test x"$enable_fftw" = x"yes"; then
+ AC_CHECK_LIB(fftw3f,fftwf_malloc,found_fftw3f="yes",found_fftw3f="no")
+ AC_CHECK_LIB(fftw3,fftw_malloc,found_fftw3="yes",found_fftw3="no")
+ AC_CHECK_HEADER(fftw3.h,[],[found_fftw3="no";found_fftw3f="no"])
+@@ -422,6 +442,12 @@
+ LIBS="-lfftw3 $LIBS"
+ AC_DEFINE(HAVE_FFTW, 1, [Set to 1 if you have the double precision version of FFTW installed])
+ fi
++fi
++
++AC_ARG_ENABLE(arpack,
++ [--enable-arpack],
++ [enable_arpack=$enableval])
++if test x"$enable_arpack" = x"yes"; then
+
+ AC_F77_FUNC(znaupd)
+ if test x"$znaupd" == x"unknown"; then
+@@ -441,6 +467,7 @@
+ AC_DEFINE(HAVE_ARPACK, 1, [Set to 1 if you have ARPACK installed])
+ fi
+ fi
++fi
+
+ AC_CHECK_LIB(z,inflate,found_z="yes",found_z="no")
+ if test x"$found_z" == xyes; then