updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / libtcod-svn / cmake.patch
blobbc623854d3c434cb41379856608c7723252fd02b
1 --- src/CMakeLists.txt (revision 521)
2 +++ src/CMakeLists.txt (working copy)
3 @@ -90,6 +90,6 @@
5 #${LIBTCOD_CPP_NAME} is empty on non-linux platforms
6 INSTALL(TARGETS ${LIBTCOD_NAME} ${LIBTCOD_GUI_NAME} ${LIBTCOD_CPP_NAME}
7 - RUNTIME DESTINATION ${INSTALL_DIR}
8 - LIBRARY DESTINATION ${INSTALL_DIR}
9 + RUNTIME DESTINATION ${DESTDIR}${CMAKE_INSTALL_PREFIX}/bin
10 + LIBRARY DESTINATION ${DESTDIR}${CMAKE_INSTALL_PREFIX}/lib
12 --- samples/CMakeLists.txt (revision 521)
13 +++ samples/CMakeLists.txt (working copy)
14 @@ -64,6 +64,6 @@
15 ENDIF()
17 INSTALL(TARGETS samples_c samples_cpp hmtool
18 - RUNTIME DESTINATION ${INSTALL_DIR}
19 - LIBRARY DESTINATION ${INSTALL_DIR}
20 + RUNTIME DESTINATION ${DESTDIR}${CMAKE_INSTALL_PREFIX}/share/libtcod/bin
21 + LIBRARY DESTINATION ${DESTDIR}${CMAKE_INSTALL_PREFIX}/share/libtcod/lib
23 --- CMakeLists.txt (revision 521)
24 +++ CMakeLists.txt (working copy)
25 @@ -53,6 +53,9 @@
26 IF(CMAKE_BUILD_TYPE MATCHES "Debug")
27 find_library(EFENCE_LIBRARY efence PATHS /usr/lib /usr/local/lib)
28 ENDIF()
29 + INSTALL(DIRECTORY include/ DESTINATION ${DESTDIR}${CMAKE_INSTALL_PREFIX}/include/libtcod
30 + PATTERN ".svn" EXCLUDE
31 + PERMISSIONS OWNER_WRITE OWNER_READ GROUP_READ WORLD_READ)
32 ENDIF()
34 add_subdirectory(src) #Needs to come first since samples depend on it