| 9 | This changes appears insufficient to properly change the build directory throughout the build. If you solve the missing header issue with... |
| 10 | |
| 11 | |
| 12 | {{{ |
| 13 | --- Portfile.orig 2015-11-08 12:30:50.000000000 -0500 |
| 14 | +++ Portfile 2015-11-09 19:54:42.000000000 -0500 |
| 15 | @@ -5,6 +5,7 @@ |
| 16 | PortGroup cmake 1.0 |
| 17 | PortGroup mpi 1.0 |
| 18 | PortGroup github 1.0 |
| 19 | +PortGroup compilers 1.0 |
| 20 | |
| 21 | compilers.choose cc cxx |
| 22 | |
| 23 | @@ -32,17 +33,19 @@ |
| 24 | checksums rmd160 5c4d583e12deb3fbc2b5a8031882311cbfd22c7e \ |
| 25 | sha256 f98ce6a51d8f813e1b4fa626c054ddbf7a985403ca30f890733cb1abf2bd6e05 |
| 26 | |
| 27 | -depends_lib port:maloc \ |
| 28 | +depends_lib port:eigen3 \ |
| 29 | + port:maloc \ |
| 30 | port:readline |
| 31 | |
| 32 | -# BEM needs 'gfortran', hard-coded, and configure fails without it if BEM is enabled, with a syntax error |
| 33 | -#CMake Error at CMakeLists.txt:217 (get_filename_component): |
| 34 | -# get_filename_component called with incorrect number of arguments |
| 35 | +compilers.setup require_fortran -clang -dragonegg -gcc44 -gcc45 -gcc46 -g95 |
| 36 | + |
| 37 | configure.args-append -DENABLE_OPENMP:BOOL=OFF \ |
| 38 | - -DENABLE_BEM=OFF |
| 39 | + -DENABLE_BEM=OFF \ |
| 40 | + -DCMAKE_CXX_COMPILER_ARG1:STRING="-I${prefix}/include -I${prefix}/include/eigen3" \ |
| 41 | + -DCMAKE_C_COMPILER_ARG1:STRING="-I${prefix}/include -I${prefix}/include/eigen3" |
| 42 | |
| 43 | # make sure this comes after further options that the cmake portgroup adds, to specify directory correctly |
| 44 | -configure.post_args ./apbs |
| 45 | +configure.post_args ./apbs |
| 46 | |
| 47 | test.run yes |
| 48 | test { |
| 49 | }}} |
| 50 | |
| 51 | You are still left with the build being unable to properly find the built libraries... |
| 52 | |
| 53 | ld: library not found for -lapbs_geoflow |
| 54 | |
| 55 | The packaging changes required for 1.4.1 (which has dramatic changes in the source layout are very far from ready). |