summaryrefslogtreecommitdiff
path: root/math/freefem++/files
diff options
context:
space:
mode:
authorThierry Thomas <thierry@FreeBSD.org>2004-07-10 23:19:14 +0000
committerThierry Thomas <thierry@FreeBSD.org>2004-07-10 23:19:14 +0000
commit69101eb9298187cd745e0b0b436fc0eeaa38a7a1 (patch)
tree4b2159a4d3054294270cf3ae8461057cceaa4e71 /math/freefem++/files
parento Add VCD plugin [1] (diff)
Upgrade to 1.41.
Diffstat (limited to 'math/freefem++/files')
-rw-r--r--math/freefem++/files/patch-Makefile11
-rw-r--r--math/freefem++/files/patch-configure151
-rw-r--r--math/freefem++/files/patch-examples++-load::load.link26
-rw-r--r--math/freefem++/files/patch-examples++-tutorial::Makefile.in11
-rw-r--r--math/freefem++/files/patch-src::Makefile-linux41
-rw-r--r--math/freefem++/files/patch-src::femlib::MatriceCreuse.hpp11
6 files changed, 199 insertions, 52 deletions
diff --git a/math/freefem++/files/patch-Makefile b/math/freefem++/files/patch-Makefile
deleted file mode 100644
index 64b5a9dde8ca..000000000000
--- a/math/freefem++/files/patch-Makefile
+++ /dev/null
@@ -1,11 +0,0 @@
---- Makefile.orig Fri Aug 22 15:23:41 2003
-+++ Makefile Sat Oct 25 17:10:47 2003
-@@ -3,7 +3,7 @@
- # ----------------------------------------------
- src?=./src
- include $(src)/Makefile-$(HOSTTYPE)
--CXXFLAGS = $(OPTFLAGS) $(FFFLAGS) $(includedir) $(INCARPACKPP)
-+CXXFLAGS+= $(OPTFLAGS) $(FFFLAGS) $(includedir) $(INCARPACKPP)
- CXXMPIFLAGS= $(CXXFLAGS) $(MPIFLAGS) -DPARALLELE $(INCARPACKPP)
- LIBS=$(LIBARPACK) $(LIBF77)
- VERSION=1.34
diff --git a/math/freefem++/files/patch-configure b/math/freefem++/files/patch-configure
new file mode 100644
index 000000000000..31bf66e4380c
--- /dev/null
+++ b/math/freefem++/files/patch-configure
@@ -0,0 +1,151 @@
+--- configure.orig Wed Jul 7 14:03:35 2004
++++ configure Sat Jul 10 19:31:39 2004
+@@ -3701,13 +3701,13 @@
+
+
+
+-echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
+-echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
++echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
++echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
+ if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+ else
+ ac_check_lib_save_LIBS=$LIBS
+-LIBS="-lpthread $LIBS"
++LIBS="-lc_r $LIBS"
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+ /* confdefs.h. */
+@@ -3760,7 +3760,7 @@
+ #define HAVE_LIBPTHREAD 1
+ _ACEOF
+
+- LIBS="-lpthread $LIBS"
++ LIBS="-lc_r $LIBS"
+
+ fi
+
+@@ -6947,82 +6947,15 @@
+ ff_wget=no
+ fi
+
+-# Looking for the BLAS
+-# --------------------
+-
+-# Trying default locations
+ ff_blas_ok=no
+-ff_save_libs="$LIBS"
+-echo "$as_me:$LINENO: checking for daxpy_ in -lblas" >&5
+-echo $ECHO_N "checking for daxpy_ in -lblas... $ECHO_C" >&6
+-if test "${ac_cv_lib_blas_daxpy_+set}" = set; then
+- echo $ECHO_N "(cached) $ECHO_C" >&6
+-else
+- ac_check_lib_save_LIBS=$LIBS
+-LIBS="-lblas $LIBS"
+-cat >conftest.$ac_ext <<_ACEOF
+-#line $LINENO "configure"
+-/* confdefs.h. */
+-_ACEOF
+-cat confdefs.h >>conftest.$ac_ext
+-cat >>conftest.$ac_ext <<_ACEOF
+-/* end confdefs.h. */
+-
+-/* Override any gcc2 internal prototype to avoid an error. */
+-#ifdef __cplusplus
+-extern "C"
+-#endif
+-/* We use char because int might match the return type of a gcc2
+- builtin and then its argument prototype would still apply. */
+-char daxpy_ ();
+-int
+-main ()
+-{
+-daxpy_ ();
+- ;
+- return 0;
+-}
+-_ACEOF
+-rm -f conftest.$ac_objext conftest$ac_exeext
+-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+- (eval $ac_link) 2>&5
+- ac_status=$?
+- echo "$as_me:$LINENO: \$? = $ac_status" >&5
+- (exit $ac_status); } &&
+- { ac_try='test -s conftest$ac_exeext'
+- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+- (eval $ac_try) 2>&5
+- ac_status=$?
+- echo "$as_me:$LINENO: \$? = $ac_status" >&5
+- (exit $ac_status); }; }; then
+- ac_cv_lib_blas_daxpy_=yes
+-else
+- echo "$as_me: failed program was:" >&5
+-sed 's/^/| /' conftest.$ac_ext >&5
+-
+-ac_cv_lib_blas_daxpy_=no
+-fi
+-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+-LIBS=$ac_check_lib_save_LIBS
+-fi
+-echo "$as_me:$LINENO: result: $ac_cv_lib_blas_daxpy_" >&5
+-echo "${ECHO_T}$ac_cv_lib_blas_daxpy_" >&6
+-if test $ac_cv_lib_blas_daxpy_ = yes; then
+- LIBS="$LIBS -lblas"
+- ff_blas_ok=yes
+- ff_blas_lib="-lblas"
+-else
+- LIBS="$ff_save_libs"
+-fi
+-
+
+-# Trying Atlas (location corresponding to Debian package)
++# Trying Atlas (location corresponding to FreeBSD package)
+ if test "$ff_blas_ok" = no;
+ then
+- echo "$as_me:$LINENO: checking for daxpy_ in /usr/lib/atlas/libblas.a" >&5
+-echo $ECHO_N "checking for daxpy_ in /usr/lib/atlas/libblas.a... $ECHO_C" >&6
++ echo "$as_me:$LINENO: checking for daxpy_ in /usr/local/lib/libatlas" >&5
++echo $ECHO_N "checking for daxpy_ in /usr/local/libatlas... $ECHO_C" >&6
+ ff_save_libs="$LIBS"
+- LIBS="$LIBS -L/usr/lib/atlas -lblas"
++ LIBS="$LIBS -lf2c -lf77blas -latlas -lgslcblas"
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+ /* confdefs.h. */
+@@ -7059,7 +6992,7 @@
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ff_blas_ok=yes
+- ff_blas_lib="-L/usr/lib/atlas -lblas"
++ ff_blas_lib="-lf2c -lf77blas -latlas -lgslcblas"
+ else
+ echo "$as_me: failed program was:" >&5
+ sed 's/^/| /' conftest.$ac_ext >&5
+@@ -7477,7 +7410,7 @@
+
+
+
+-for ac_header in umfpack.h umfpack/umfpack.h
++for ac_header in UMFPACK/umfpack.h
+ do
+ as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
+ if eval "test \"\${$as_ac_Header+set}\" = set"; then
+@@ -7690,7 +7623,7 @@
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+ else
+ ac_check_lib_save_LIBS=$LIBS
+-LIBS="-lumfpack $ff_umfpack_lib $LIBS"
++LIBS="$ff_umfpack_lib -lumfpack $LIBS"
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+ /* confdefs.h. */
+@@ -7744,7 +7677,7 @@
+ #define HAVE_LIBUMFPACK 1
+ _ACEOF
+
+- ff_umfpack_lib="$ff_umfpack_lib -lumfpack"
++ ff_umfpack_lib="-lumfpack $ff_umfpack_lib"
+ ff_umfpack_ok=yes
+ fi
+
diff --git a/math/freefem++/files/patch-examples++-load::load.link b/math/freefem++/files/patch-examples++-load::load.link
new file mode 100644
index 000000000000..59d0e0ff7d43
--- /dev/null
+++ b/math/freefem++/files/patch-examples++-load::load.link
@@ -0,0 +1,26 @@
+--- examples++-load/load.link.orig Wed Jun 30 14:17:01 2004
++++ examples++-load/load.link Sun Jul 11 00:30:37 2004
+@@ -9,18 +9,18 @@
+ Darwin)
+ export MACOSX_DEPLOYMENT_TARGET=10.3
+ SHARED="-bundle -undefined dynamic_lookup" ;;
+- Linux|CYGWIN*)
++ Linux|FreeBSD|CYGWIN*)
+ SHARED="-shared " ;;
+ *)
+ echo "sorry unknown achitecture "`uname`
+ exit 1
+ esac
+
+- echo g++ -c $INC $PIC $1.cpp
+- g++ -c $INC $PIC $1.cpp
++ echo $CXX -c $INC $PIC $1.cpp
++ $CXX -c $INC $PIC $1.cpp
+
+- echo g++ $SHARED $1.o -o $1.so
+- g++ $SHARED $1.o -o $1.so
++ echo $CXX $SHARED $1.o -o $1.so
++ $CXX $SHARED $1.o -o $1.so
+
+ else
+ echo "sorry file $1.cpp does not exist"
diff --git a/math/freefem++/files/patch-examples++-tutorial::Makefile.in b/math/freefem++/files/patch-examples++-tutorial::Makefile.in
new file mode 100644
index 000000000000..9ccedbefff71
--- /dev/null
+++ b/math/freefem++/files/patch-examples++-tutorial::Makefile.in
@@ -0,0 +1,11 @@
+--- examples++-tutorial/Makefile.in.orig Wed Jul 7 14:47:45 2004
++++ examples++-tutorial/Makefile.in Sat Jul 10 21:10:37 2004
+@@ -290,7 +290,7 @@
+ uninstall-info-am
+
+
+-all-local: all.edp regtests.edp
++all-local: all.edp
+
+ all.edp:
+ (echo "NoUseOfWait=true;int verbosityy=verbosity;"; \
diff --git a/math/freefem++/files/patch-src::Makefile-linux b/math/freefem++/files/patch-src::Makefile-linux
deleted file mode 100644
index b2605b9e1eca..000000000000
--- a/math/freefem++/files/patch-src::Makefile-linux
+++ /dev/null
@@ -1,41 +0,0 @@
---- src/Makefile-linux.orig Tue Feb 10 13:23:56 2004
-+++ src/Makefile-linux Thu May 6 21:52:05 2004
-@@ -1,19 +1,18 @@
--LIBLOCAL = -ldl -rdynamic # for dlopen (see load.cpp)
--# for dlopen (see load.cpp and man dlopen)
--LIBX11= -L/usr/X11R6/lib -lX11 -lm
--INCLUDEX11 = /usr/X11R6/include
--CXX=g++ #C++ compiler
--CXXMPI=mpiCC # compilation with mpi
--OOPTFLAGS= -O # compilation with optimisation
-+# $FreeBSD$
-+#LIBLOCAL = -ldl # for dlopen (see load.cpp and man dlopen)
-+LIBX11= -L$(X11BASE)/lib -lX11 -lm
-+INCLUDEX11 = $(X11BASE)/include
-+OOPTFLAGS= -Wno-deprecated
- GOPTFLAGS= -g # compilation with debugging
- #--------------------------------------------------
- # the flag of eigen value part with arpack++ tools
- #-------------------------------------------------
--ARPACKDIR=../../arpack/ARPACK # here the arpack dir is at same level of FreeFem++v... dir
- EIGEN= eigenvalue.o
--LIBARPACK= -L$(ARPACKDIR) -larpack_linux -llapack -lblas
--LIBF77= -lg2c
--INCARPACKPP = -DEIGENVALUE -I../arpack/include # the FreeFem++ arpack++ files (in freefem tree)
-+LIBARPACK= -L$(LOCALBASE)/lib ${LOCALBASE}/lib/libarpack.a -lalapack -lf77blas -lcblas -latlas
-+LIBF77= -lg2c -lm
-+INCARPACKPP = -DEIGENVALUE -I$(LOCALBASE)/include/ARPACK++
-+IUMFPACK= -DUMFPACK -I$(LOCALBASE)/include/UMFPACK -I$(LOCALBASE)/include/AMD
-+LIBUMFPACK= -L$(LOCALBASE)/lib -lumfpack -lamd
- # ------------------------------
- # compilation flags of FreeFem++
- # ------------------------------
-@@ -32,7 +31,7 @@
- # ---------------------------
- # install and compile dir.
- # ----------------------
--BIN_DIR=$(HOME)/bin-$(HOSTTYPE)
-+BIN_DIR=$(PREFIX)/bin
- COMPILE_DIR=c-$(HOSTTYPE)
- #----------------------
-
diff --git a/math/freefem++/files/patch-src::femlib::MatriceCreuse.hpp b/math/freefem++/files/patch-src::femlib::MatriceCreuse.hpp
new file mode 100644
index 000000000000..49158a300ba7
--- /dev/null
+++ b/math/freefem++/files/patch-src::femlib::MatriceCreuse.hpp
@@ -0,0 +1,11 @@
+--- ./src/femlib/MatriceCreuse.hpp.orig Fri Jun 25 10:56:36 2004
++++ ./src/femlib/MatriceCreuse.hpp Thu Jul 8 00:19:27 2004
+@@ -10,7 +10,7 @@
+ #include <umfpack.h>
+ #else
+ #ifdef HAVE_UMFPACK_UMFPACK_H
+-#include <umfpack/umfpack.h>
++#include <UMFPACK/umfpack.h>
+ #else
+
+ // Defaults to a local version of the UMFPACK headers