From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- dev-ros/stage_ros/files/fltk.patch | 68 ++++++++++++++++++++++++++++ dev-ros/stage_ros/files/stageconfig.patch | 73 +++++++++++++++++++++++++++++++ 2 files changed, 141 insertions(+) create mode 100644 dev-ros/stage_ros/files/fltk.patch create mode 100644 dev-ros/stage_ros/files/stageconfig.patch (limited to 'dev-ros/stage_ros/files') diff --git a/dev-ros/stage_ros/files/fltk.patch b/dev-ros/stage_ros/files/fltk.patch new file mode 100644 index 000000000000..3e7dc2582944 --- /dev/null +++ b/dev-ros/stage_ros/files/fltk.patch @@ -0,0 +1,68 @@ +commit c62d2b2e64e3d36cac91fbd656db8f69b7c42dc5 +Author: Alexis Ballier +Date: Wed Sep 23 14:58:50 2015 +0200 + + Revert "Remove all references to FLTK/Fluid" + + This reverts commit 933f2bf0b776ee028aaa4b58a382101d81fb042e. + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 7ddd2c7..f709ea5 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -14,12 +14,27 @@ find_package(catkin REQUIRED + + find_package(Boost REQUIRED COMPONENTS system thread) + ++find_package(FLTK REQUIRED) ++if(FLTK_FOUND) ++ # FindFLTK.cmake doesn't populate FLTK_INCLUDE_DIRS on some systems, ++ # so we try to use FLTK_INCLUDE_DIR if we need to. ++ if("${FLTK_INCLUDE_DIRS}" STREQUAL "") ++ set(FLTK_INCLUDE_DIRS "${FLTK_INCLUDE_DIR}") ++ endif() ++ message(status "FLTK_LIBRARIES=" ${FLTK_LIBRARIES}) ++ message(status "FLTK_INCLUDE_DIR=" ${FLTK_INCLUDE_DIR}) ++ message(status "FLTK_INCLUDE_DIRS=" ${FLTK_INCLUDE_DIRS}) ++else() ++ message(fatal_error "FLTK not found...aborting!") ++endif() ++ + set(Stage_DIR cmake) + find_package(Stage REQUIRED) + + include_directories( + ${catkin_INCLUDE_DIRS} + ${Boost_INCLUDE_DIRS} ++ ${FLTK_INCLUDE_DIRS} + ${Stage_INCLUDE_DIRS} + ) + +@@ -34,6 +49,7 @@ endif() + target_link_libraries(stageros + ${catkin_LIBRARIES} + ${Boost_LIBRARIES} ++ ${FLTK_LIBRARIES} + ${Stage_LIBRARIES} + ${${PROJECT_NAME}_extra_libs} + ) +diff --git a/package.xml b/package.xml +index 8803254..fde1a64 100644 +--- a/package.xml ++++ b/package.xml +@@ -17,6 +17,7 @@ + catkin + + boost ++ libfltk-dev + geometry_msgs + nav_msgs + roscpp +@@ -28,6 +29,7 @@ + tf + + boost ++ fluid + geometry_msgs + nav_msgs + roscpp diff --git a/dev-ros/stage_ros/files/stageconfig.patch b/dev-ros/stage_ros/files/stageconfig.patch new file mode 100644 index 000000000000..baadba4ec10c --- /dev/null +++ b/dev-ros/stage_ros/files/stageconfig.patch @@ -0,0 +1,73 @@ +commit 7e9a04fef3b02510017d0ea3bbea047c32a408b1 +Author: Alexis Ballier +Date: Wed Sep 23 14:55:50 2015 +0200 + + Revert "Use upstream stage-config.cmake" + + This reverts commit 55700196507b44ea577233747de25dbf271cdef8. + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 89c433d..7ddd2c7 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -14,12 +14,13 @@ find_package(catkin REQUIRED + + find_package(Boost REQUIRED COMPONENTS system thread) + +-find_package(stage REQUIRED) ++set(Stage_DIR cmake) ++find_package(Stage REQUIRED) + + include_directories( + ${catkin_INCLUDE_DIRS} + ${Boost_INCLUDE_DIRS} +- ${STAGE_INCLUDE_DIRS} ++ ${Stage_INCLUDE_DIRS} + ) + + catkin_package() +@@ -33,7 +34,7 @@ endif() + target_link_libraries(stageros + ${catkin_LIBRARIES} + ${Boost_LIBRARIES} +- ${STAGE_LIBRARIES} ++ ${Stage_LIBRARIES} + ${${PROJECT_NAME}_extra_libs} + ) + if(catkin_EXPORTED_TARGETS) +diff --git a/cmake/StageConfig.cmake b/cmake/StageConfig.cmake +new file mode 100644 +index 0000000..118e41c +--- /dev/null ++++ b/cmake/StageConfig.cmake +@@ -0,0 +1,30 @@ ++# - Try to find Stage ++# ++# Once done this will define ++# ++# Stage_FOUND - system has Stage ++# Stage_INCLUDE_DIRS - the Stage include directory ++# Stage_LIBRARIES - the Stage libraries ++# ++# Written by William Woodall ++# ++ ++find_package(PkgConfig) ++pkg_check_modules(PC_Stage stage) ++ ++find_library(Stage_LIBRARIES ++ NAMES ${PC_Stage_LIBRARIES} ++ PATHS ${PC_Stage_LIBRARY_DIRS} ++) ++ ++set(Stage_INCLUDE_DIRS ${PC_Stage_INCLUDE_DIRS}) ++ ++include(FindPackageHandleStandardArgs) ++find_package_handle_standard_args(Stage ++ DEFAULT_MSG ++ Stage_LIBRARIES Stage_INCLUDE_DIRS ++) ++ ++mark_as_advanced(Stage_LIBRARIES Stage_INCLUDE_DIRS) ++ ++set(Stage_FOUND ${STAGE_FOUND}) -- cgit v1.2.3