Don't hardcode /usr/local

This commit is contained in:
Sergey Bugaev 2017-01-04 22:03:22 +03:00
parent 0845f49bca
commit 43398147a8

View File

@ -61,26 +61,26 @@ if (NOT DARLING_NO_EXECUTABLES)
install(DIRECTORY DESTINATION libexec/darling/Volumes)
install(DIRECTORY DESTINATION libexec/darling/Volumes/SystemRoot)
InstallSymlink(/ /usr/local/libexec/darling/Volumes/DarlingEmulatedDrive)
InstallSymlink(/ ${CMAKE_INSTALL_PREFIX}/libexec/darling/Volumes/DarlingEmulatedDrive)
install(DIRECTORY DESTINATION libexec/darling/proc)
install(DIRECTORY DESTINATION libexec/darling/var)
install(DIRECTORY DESTINATION libexec/darling/var/root)
install(DIRECTORY DESTINATION libexec/darling/var/run)
InstallSymlink(/dev/log /usr/local/libexec/darling/var/run/syslog)
InstallSymlink(/dev/log ${CMAKE_INSTALL_PREFIX}/libexec/darling/var/run/syslog)
install(DIRECTORY DESTINATION libexec/darling/usr)
install(DIRECTORY DESTINATION libexec/darling/usr/local)
install(DIRECTORY DESTINATION libexec/darling/usr/local/share)
InstallSymlink(/Volumes/SystemRoot/usr/local/share/darling /usr/local/libexec/darling/usr/local/share/darling)
InstallSymlink(/Volumes/SystemRoot${CMAKE_INSTALL_PREFIX}/share/darling ${CMAKE_INSTALL_PREFIX}/libexec/darling/usr/local/share/darling)
InstallSymlink(/Volumes/SystemRoot/dev /usr/local/libexec/darling/dev)
InstallSymlink(/Volumes/SystemRoot/tmp /usr/local/libexec/darling/tmp)
InstallSymlink(/Volumes/SystemRoot/home /usr/local/libexec/darling/Users)
InstallSymlink(/Volumes/SystemRoot/dev ${CMAKE_INSTALL_PREFIX}/libexec/darling/dev)
InstallSymlink(/Volumes/SystemRoot/tmp ${CMAKE_INSTALL_PREFIX}/libexec/darling/tmp)
InstallSymlink(/Volumes/SystemRoot/home ${CMAKE_INSTALL_PREFIX}/libexec/darling/Users)
install(DIRECTORY DESTINATION libexec/darling/etc/ld.so.conf.d)
install(CODE "execute_process(COMMAND bash ${DARLING_TOP_DIRECTORY}/src/setup-ld-so.sh WORKING_DIRECTORY ${CMAKE_INSTALL_PREFIX}/libexec/darling)")
InstallSymlink(/Volumes/SystemRoot/lib /usr/local/libexec/darling/lib)
InstallSymlink(/Volumes/SystemRoot/lib64 /usr/local/libexec/darling/lib64)
InstallSymlink(/Volumes/SystemRoot/lib ${CMAKE_INSTALL_PREFIX}/libexec/darling/lib)
InstallSymlink(/Volumes/SystemRoot/lib64 ${CMAKE_INSTALL_PREFIX}/libexec/darling/lib64)
endif (NOT DARLING_NO_EXECUTABLES)