diff options
author | Thierry Thomas <thierry@FreeBSD.org> | 2020-11-29 16:28:55 +0000 |
---|---|---|
committer | Thierry Thomas <thierry@FreeBSD.org> | 2020-11-29 16:28:55 +0000 |
commit | bd8b95648760ef7b27742e85056b7efde3e1a35c (patch) | |
tree | 0132f6e76e18f0e230f1a661a3159af28d439108 /math/freefem++/files | |
parent | devel/notcurses: Update to 2.0.8 (diff) |
Revive port math/freefem++: finite element method application.
PR: 242759
Submitted by: Kouichi Hirabayashi
Notes
Notes:
svn path=/head/; revision=556585
Diffstat (limited to 'math/freefem++/files')
-rw-r--r-- | math/freefem++/files/patch-Makefile.am | 53 | ||||
-rw-r--r-- | math/freefem++/files/patch-configure.ac | 38 | ||||
-rw-r--r-- | math/freefem++/files/patch-examples_CMakeLists.txt | 11 | ||||
-rw-r--r-- | math/freefem++/files/patch-plugin_seq_load.link.in | 11 |
4 files changed, 113 insertions, 0 deletions
diff --git a/math/freefem++/files/patch-Makefile.am b/math/freefem++/files/patch-Makefile.am new file mode 100644 index 000000000000..b66fac3a3a87 --- /dev/null +++ b/math/freefem++/files/patch-Makefile.am @@ -0,0 +1,53 @@ +--- Makefile.am.orig 2020-04-02 12:11:06 UTC ++++ Makefile.am +@@ -142,20 +142,17 @@ idp/CC.idp + + FF_MAC_PREFIX=FreeFem++v$(VERSION)$(ADD_PACKAGE_NAME) + +-FF_EXAMPLES_FILES=examples/tutorial/aile.msh \ +- examples/tutorial/xyf \ +- examples/3d/dodecaedre01.mesh \ +- examples/3d/lac-leman-v4.msh \ +- examples/load/load.link \ +- examples/load/cube.msh \ +- examples/load/fig.pgm \ +- examples/plugin/lg.pgm \ +- examples/mpi/regtests.sh \ +- examples/misc/speedtest.sh \ +- examples/*/*.edp \ +- examples/CheckAllEdp \ +- examples/plugin/ch.pts \ +- examples/plugin/g.gmesh ++FF_EXAMPLES_FILES=tutorial/aile.msh \ ++ tutorial/xyf \ ++ 3d/dodecaedre01.mesh \ ++ 3d/lac-leman-v4.msh \ ++ plugin/lg.pgm \ ++ mpi/regtests.sh \ ++ misc/speedtest.sh \ ++ */*.edp \ ++ CheckAllEdp \ ++ plugin/ch.pts \ ++ plugin/g.gmesh + + clean-local:: + -find . \( -name '*~' -or -name ListOfUnAllocPtr.bin \) | xargs rm +@@ -259,13 +256,14 @@ clean-local:: + # ---------------------- + install-exec-local:: bin/script/PostInstall.sh FreeFEM-documentation.pdf + test `uname` != Darwin || $(MAKE) FreeFem++-CoCoa bin/script/PostInstall.sh +- $(mkinstalldirs) -m 755 $(DESTDIR)$(pkgdatadir)/$(VERSION) ++ $(mkinstalldirs) -m 755 $(DESTDIR)$(pkgdatadir) \ ++ $(DESTDIR)$(PREFIX)/share/examples/freefem++ + test `uname` != Darwin || $(mkinstalldirs) -m 755 $(DESTDIR)/etc/paths.d/ + test `uname` != Darwin || $(mkinstalldirs) -m 755 $(DESTDIR)/usr/local/bin +- tar cvf - $(FF_EXAMPLES_FILES)| (cd $(DESTDIR)$(pkgdatadir)/$(VERSION); tar xvf -) +- $(INSTALL_SCRIPT) examples/CheckAll examples/CheckAllEdp $(DESTDIR)$(pkgdatadir)/$(VERSION) ++ cd examples ; tar cvf - $(FF_EXAMPLES_FILES) | (cd $(DESTDIR)$(PREFIX)/share/examples/freefem++; tar xvf -) ++ $(INSTALL_SCRIPT) examples/CheckAll examples/CheckAllEdp $(DESTDIR)$(PREFIX)/share/examples/freefem++ + $(mkinstalldirs) -m 755 $(DESTDIR)${bindir} +- test ! -s FreeFEM-documentation.pdf || $(INSTALL_DATA) FreeFEM-documentation.pdf "$(DESTDIR)$(pkgdatadir)" ++ test ! -s FreeFEM-documentation.pdf || $(INSTALL_DATA) FreeFEM-documentation.pdf "$(DESTDIR)$(PREFIX)/share/doc/freefem++" + test `uname` != Darwin || $(INSTALL_SCRIPT) FreeFem++-CoCoa $(DESTDIR)${bindir} + test `uname` != Darwin || echo $(bindir) >$(DESTDIR)/etc/paths.d/FreeFem++ + test `uname` != Darwin || ( rm $(DESTDIR)/usr/local/bin/FreeFem++-CoCoa ; $(INSTALL_SCRIPT) FreeFem++-CoCoa $(DESTDIR)/usr/local/bin ) diff --git a/math/freefem++/files/patch-configure.ac b/math/freefem++/files/patch-configure.ac new file mode 100644 index 000000000000..99c7f2fa18a6 --- /dev/null +++ b/math/freefem++/files/patch-configure.ac @@ -0,0 +1,38 @@ +--- configure.ac.orig 2020-04-02 12:11:06 UTC ++++ configure.ac +@@ -65,7 +65,7 @@ m4_define([AC_FF_WHERELIB], + AC_MSG_CHECKING(check $1) + ff_save_libs=$LIBS + LIBS="$LIBS $2 $4" +- AC_LINK_IFELSE([AC_LANG_PROGRAM([m4_if($3,,,[#include <$3>])],[])], [ff_WHERE=yes],[ff_WHERE=no]) ++ AC_LINK_IFELSE([AC_LANG_PROGRAM([m4_if($3,,,[#include <$3>],[#include <stdint.h>],[#include <stdio.h>])],[])], [ff_WHERE=yes],[ff_WHERE=no]) + if test "$ff_WHERE" = "yes" ; then + echo "$1 LD $2" >>$ff_where_lib_conf + ff_WHERE_INC=`AS_DIRNAME(["$3"])` +@@ -674,7 +674,7 @@ ff_prefix_dir_data="$datadir/$PACKAGE_NAME" + ff_prefix_dir_include="$ff_prefix_dir/include" + ff_prefix_dir_etc="$ff_prefix_dir/etc" + ff_prefix_dir_lib_mpi="$ff_prefix_dir/lib/mpi" +-ff_prefix_dir_example="$ff_prefix_dir_data/$PACKAGE_VERSION" ++ff_prefix_dir_example="${prefix}/share/examples/freefem++" + AC_SUBST(ff_prefix_dir_lib,$ff_prefix_dir_lib) + AC_SUBST(ff_prefix_dir_include,$ff_prefix_dir_include) + AC_SUBST(ff_prefix_dir_etc,$ff_prefix_dir_etc) +@@ -2084,7 +2084,7 @@ fi + + m4_map([AC_FF_WHERELIB],[ + [[mumps],[-ldmumps -lzmumps -lmumps_common -lpord],[dmumps_c.h],[]], +- [[mumps_seq],[-ldmumps_seq -lzmumps_seq -lmumps_common_seq -lpord_seq -lmpiseq_seq],[dmumps_c.h],[]], ++ [[mumps_seq],[$ff_blas_libs $ff_lapack_lib -ldmumps_seq -lzmumps_seq -lmumps_common_seq -lpord_seq -lmpiseq_seq],[dmumps_c.h],[]], + [[libseq],[-lmpiseq_seq],[${inc_usr_include}mumps_seq/mpi.h]], + [[mumps_ptscotch],[-lpord_ptscotch -lmumps_common_ptscotch -ldmumps_ptscotch -lzmumps_ptscotch -lpord_ptscotch],[dmumps_c.h]], + [[mumps_scotch],[-lpord_scotch -lmumps_common_scotch -ldmumps_scotch -lzmumps_scotch -lpord_scotch],[dmumps_c.h]], +@@ -2092,7 +2092,7 @@ m4_map([AC_FF_WHERELIB],[ + [[superlu],[-lsuperlu],[${inc_usr_include}superlu/superlu_enum_consts.h],[]], + [[blacs],[ -lblacsCinit$ff_with_mpi -lblacsF77init$ff_with_mpi -lblacs$ff_with_mpi],[]], + [[scalapack],[-lscalapack$ff_with_mpi],[]], +- [[scotch],[-lscotch -lscotcherr],[scotch.h]], ++ [[scotch],[-lscotch -lscotcherr], [scotch.h]], + [[ptscotch],[-lptscotch -lptscotcherr],[ptscotch.h]], + [[metis],[-lmetis],[${inc_usr_include}metis/metis.h],[]], + [[metis],[-lmetis],[metis.h],[]], diff --git a/math/freefem++/files/patch-examples_CMakeLists.txt b/math/freefem++/files/patch-examples_CMakeLists.txt new file mode 100644 index 000000000000..d8053141b31d --- /dev/null +++ b/math/freefem++/files/patch-examples_CMakeLists.txt @@ -0,0 +1,11 @@ +--- examples/CMakeLists.txt.orig 2020-04-02 12:11:06 UTC ++++ examples/CMakeLists.txt +@@ -6,7 +6,7 @@ ADD_SUBDIRECTORY(examples) + ADD_SUBDIRECTORY(eigen) + #ADD_SUBDIRECTORY(plugin) + ADD_SUBDIRECTORY(mpi) +-ADD_SUBDIRECTORY(other) ++#ADD_SUBDIRECTORY(other) + ADD_SUBDIRECTORY(tutorial) + ADD_SUBDIRECTORY(ffddm) + diff --git a/math/freefem++/files/patch-plugin_seq_load.link.in b/math/freefem++/files/patch-plugin_seq_load.link.in new file mode 100644 index 000000000000..070c3859e05c --- /dev/null +++ b/math/freefem++/files/patch-plugin_seq_load.link.in @@ -0,0 +1,11 @@ +--- plugin/seq/load.link.in.orig 2020-04-02 12:11:06 UTC ++++ plugin/seq/load.link.in +@@ -245,7 +245,7 @@ case "$WIN32$uu" in + ;; + FreeBSD|NetBSD) + SHARED="-shared" +- FLAGS='-fPIC';; ++ FLAGS="-fPIC $LDFLAGS";; + # 64 bit Linux needs -fPIC (ALH) + SunOS) + SHARED="-shared" |