| 2 | |
| 3 | This is the preliminary fix from my pull request for ortep3: |
| 4 | |
| 5 | {{{ |
| 6 | post-build { |
| 7 | # Preliminary fix of not finding the fortran libraries |
| 8 | if { ${os.arch} eq "arm" } { |
| 9 | set libgfortran [glob -tails -directory ${prefix}/lib/libgcc libgfortran.*.dylib] |
| 10 | set libquadmath [glob -tails -directory ${prefix}/lib/libgcc libquadmath.*.dylib] |
| 11 | system -W ${worksrcpath} "install_name_tool -change @rpath/${libgfortran} @executable_path/../lib/libgcc/${libgfortran} ortep3" |
| 12 | system -W ${worksrcpath} "install_name_tool -change @rpath/${libquadmath} @executable_path/../lib/libgcc/${libquadmath} ortep3" |
| 13 | } |
| 14 | } |
| 15 | }}} |