[MacPorts] #57211: liblas failed with Mojave
MacPorts
noreply at macports.org
Thu Oct 11 10:47:00 UTC 2018
#57211: liblas failed with Mojave
------------------------+------------------------
Reporter: stanimura | Owner: venabled@…
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.5.3
Resolution: | Keywords: mojave
Port: liblas |
------------------------+------------------------
Comment (by stanimura):
Personally I solved this issue by editing Portfile of liblas as followd:
{{{
$ diff -u
/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/gis/liblas/Portfile
liblas.Profile
---
/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/gis/liblas/Portfile
2018-02-17 00:25:28.000000000 +0900
+++ liblas.Profile 2018-10-11 19:41:03.000000000 +0900
@@ -37,8 +37,12 @@
port:gdal \
port:libgeotiff
-post-destroot {
- exec install_name_tool -id ${prefix}/lib/liblas.2.4.0.dylib
${destroot}${prefix}/lib/liblas.2.4.0.dylib
- exec install_name_tool -id ${prefix}/lib/liblas_c.2.4.0.dylib
${destroot}${prefix}/lib/liblas_c.2.4.0.dylib
- exec install_name_tool -change "@rpath/liblas.3.dylib"
${prefix}/lib/liblas.3.dylib ${destroot}${prefix}/lib/liblas_c.2.4.0.dylib
-}
+configure.dir
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_liblas/liblas/work/libLAS-1.8.1/makefiles
+configure.cmd cmake
+configure.args {-G "Unix Makefiles" ../ }
+
+#post-destroot {
+# exec install_name_tool -id ${prefix}/bin/Release/liblas.2.4.0.dylib
${destroot}${prefix}/lib/liblas.2.4.0.dylib
+# exec install_name_tool -id
${prefix}/bin/Release/liblas_c.2.4.0.dylib
${destroot}${prefix}/lib/liblas_c.2.4.0.dylib
+# exec install_name_tool -change "@rpath/liblas.3.dylib"
${prefix}/lib/liblas.3.dylib ${destroot}${prefix}/lib/liblas_c.2.4.0.dylib
+#}
}}}
Since configure.dir is hardcoding, it may not work elsewhere.
--
Ticket URL: <https://trac.macports.org/ticket/57211#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list