Changeset View
Changeset View
Standalone View
Standalone View
chinese/librime/files/patch-CMakeLists.txt
--- CMakeLists.txt.orig 2014-12-21 11:46:44 UTC | --- CMakeLists.txt.orig 2014-12-21 11:46:44 UTC | ||||
+++ CMakeLists.txt | +++ CMakeLists.txt | ||||
@@ -123,7 +123,7 @@ if(NOT DEFINED BIN_INSTALL_DIR) | @@ -123,7 +123,7 @@ if(NOT DEFINED BIN_INSTALL_DIR) | ||||
set(BIN_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/bin) | set(BIN_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/bin) | ||||
endif() | endif() | ||||
-if(${CMAKE_SYSTEM_NAME} MATCHES "Linux") | -if(${CMAKE_SYSTEM_NAME} MATCHES "Linux") | ||||
+if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD|DragonFly") | +if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD|DragonFly") | ||||
# uninstall target | # uninstall target | ||||
configure_file( | configure_file( | ||||
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/cmake_uninstall.cmake.in" | "${CMAKE_CURRENT_SOURCE_DIR}/cmake/cmake_uninstall.cmake.in" | ||||
@@ -142,7 +142,7 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Linux") | |||||
${PROJECT_BINARY_DIR}/rime.pc | |||||
@ONLY) | |||||
install(FILES include/rime_api.h DESTINATION include) | |||||
- install(FILES ${PROJECT_BINARY_DIR}/rime.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig) | |||||
+ install(FILES ${PROJECT_BINARY_DIR}/rime.pc DESTINATION ${CMAKE_INSTALL_PREFIX}/libdata/pkgconfig) | |||||
install(FILES cmake/RimeConfig.cmake DESTINATION share/cmake/rime) | |||||
if(BUILD_DATA) | |||||
install(FILES ${PROJECT_SOURCE_DIR}/data/default.yaml DESTINATION ${pkgdatadir}) | |||||
@@ -153,7 +153,7 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Linux") | @@ -153,7 +153,7 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Linux") | ||||
file(GLOB supplement_schema ${PROJECT_SOURCE_DIR}/data/supplement/*.yaml) | file(GLOB supplement_schema ${PROJECT_SOURCE_DIR}/data/supplement/*.yaml) | ||||
install(FILES ${supplement_schema} DESTINATION ${pkgdatadir}) | install(FILES ${supplement_schema} DESTINATION ${pkgdatadir}) | ||||
endif(BUILD_DATA) | endif(BUILD_DATA) | ||||
-endif(${CMAKE_SYSTEM_NAME} MATCHES "Linux") | -endif(${CMAKE_SYSTEM_NAME} MATCHES "Linux") | ||||
+endif(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD|DragonFly") | +endif(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD|DragonFly") | ||||
if(BUILD_SHARED_LIBS) | if(BUILD_SHARED_LIBS) | ||||
add_definitions(-DRIME_BUILD_SHARED_LIBS) | add_definitions(-DRIME_BUILD_SHARED_LIBS) |