Open satmandu opened 1 year ago
Do you want to send a pull request which fixes that? What about the automake build, does it also require a fix?
The automake build is fine, but we prefer CMAKE as it tends to make for cleaner builds.
I think you need to support the cmake CMAKE_INSTALL_LIBDIR
variable. Most packages do, but this isn't the only package that we've had to massage.
Actually, CMAKE_LIBRARY_PATH
seems to be the more universally used variable...
This might be sufficient:
# use GNU install dirs (e.g. lib64 instead of lib)
INCLUDE(GNUInstallDirs)
As per https://github.com/facebook/hhvm/blob/fdad0855eb63f528a357f11c5307df0ab29cec9b/CMakeLists.txt#L80
Oops! I missed some!
src/CMakeLists.txt
also needs modification.
set(lib ${CMAKE_SHARED_LIBRARY_PREFIX})
looks like it needs changing as does install(TARGETS leptonica EXPORT LeptonicaTargets RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib)
Please make PR so we can test it. GNUInstallDirs could be useful for linux, not sure about Mac but I have doubt about Windows...
I'm hacking up the cmake build files to get this to build correctly on x86_64 chromebrew, modifying these files, where
#{ARCH_LIB}
is eitherlib
orlib64
on the relevant systems, but ideally we wouldn't have to engage in this hackery. 😅