[ompl] Added a patch with libdir fixes Removed out of date patch

rmattes rmattes at fedoraproject.org
Thu Aug 9 16:58:52 UTC 2012


commit 38f6107a080d6cc627b9bd4b2f974fe1dbee76d3
Author: Rich Mattes <richmattes at gmail.com>
Date:   Thu Aug 9 12:58:28 2012 -0400

    Added a patch with libdir fixes
    Removed out of date patch

 ompl-0.10.2-fedora.patch |   91 ----------------------------------------------
 ompl-0.11.1-fedora.patch |   45 +++++++++++++++++++++++
 2 files changed, 45 insertions(+), 91 deletions(-)
---
diff --git a/ompl-0.11.1-fedora.patch b/ompl-0.11.1-fedora.patch
new file mode 100644
index 0000000..8208bf8
--- /dev/null
+++ b/ompl-0.11.1-fedora.patch
@@ -0,0 +1,45 @@
+diff -up ./ompl-0.11.1-Source/CMakeLists.txt.fedora ./ompl-0.11.1-Source/CMakeLists.txt
+--- ./ompl-0.11.1-Source/CMakeLists.txt.fedora	2012-07-26 10:16:30.000000000 -0400
++++ ./ompl-0.11.1-Source/CMakeLists.txt	2012-08-06 12:50:34.163944174 -0400
+@@ -27,6 +27,8 @@ set(OMPL_DEMO_INSTALL_DIR "share/ompl${O
+     CACHE STRING "Relative path to directory where demos will be installed")
+ set(OMPL_DOC_INSTALL_DIR "share/ompl${OMPL_INSTALL_SUFFIX}/doc"
+     CACHE STRING "Relative path to directory where documentation will be installed")
++set(OMPL_LIB_INSTALL_DIR "lib" 
++    CACHE STRING "Relative path to directory where libraries will be installed")
+ 
+ include_directories("${OMPL_INCLUDE_DIR}")
+ 
+@@ -80,7 +82,7 @@ if (NOT MSVC)
+   set(PKG_OMPL_LIBS "-lompl")
+   set(pkg_conf_file "${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules/ompl.pc")
+   configure_file("${pkg_conf_file}.in" "${pkg_conf_file}" @ONLY)
+-  install(FILES ${pkg_conf_file} DESTINATION lib/pkgconfig/
++  install(FILES ${pkg_conf_file} DESTINATION ${OMPL_LIB_INSTALL_DIR}/pkgconfig/
+     COMPONENT pkgconfig RENAME "ompl${OMPL_INSTALL_SUFFIX}.pc")
+ 
+   install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/doc/dox/FindOMPL.cmake"
+diff -up ./ompl-0.11.1-Source/src/CMakeLists.txt.fedora ./ompl-0.11.1-Source/src/CMakeLists.txt
+--- ./ompl-0.11.1-Source/src/CMakeLists.txt.fedora	2012-08-06 12:54:27.446819515 -0400
++++ ./ompl-0.11.1-Source/src/CMakeLists.txt	2012-08-06 12:54:36.941560225 -0400
+@@ -8,7 +8,7 @@ install(DIRECTORY ompl/ DESTINATION "inc
+     REGEX "/doc$" EXCLUDE
+     REGEX "/tests$" EXCLUDE)
+ 
+-install(DIRECTORY external/omplext_odeint/ DESTINATION "include/omplext_odeint${OMPL_INSTALL_SUFFIX}")
++install(DIRECTORY external/omplext_odeint/ DESTINATION "include/ompl/omplext_odeint${OMPL_INSTALL_SUFFIX}")
+ 
+ # Add target to install Py++ and its dependencies pygccxml and gccxml
+ if (APPLE)
+diff -up ./ompl-0.11.1-Source/src/ompl/CMakeLists.txt.fedora ./ompl-0.11.1-Source/src/ompl/CMakeLists.txt
+--- ./ompl-0.11.1-Source/src/ompl/CMakeLists.txt.fedora	2012-07-26 10:16:30.000000000 -0400
++++ ./ompl-0.11.1-Source/src/ompl/CMakeLists.txt	2012-08-06 12:50:34.163944174 -0400
+@@ -68,7 +68,7 @@ else(MSVC)
+ endif(MSVC)
+ 
+ # install the library
+-install(TARGETS ompl DESTINATION lib/)
++install(TARGETS ompl DESTINATION ${OMPL_LIB_INSTALL_DIR})
+ if(NOT MSVC)
+     get_target_property(OMPL_LIBRARY_LOC ompl LOCATION)
+     add_custom_command(TARGET ompl POST_BUILD


More information about the scm-commits mailing list