Commit 4c0bda09 authored by Anthony Mallet's avatar Anthony Mallet

[wip/openscenegraph] Move to robotpkg

(missed the remove in previous commit)
parent f863b09c
......@@ -42,7 +42,6 @@ SUBDIR+= octovis
SUBDIR+= ompl
SUBDIR+= openhrp3-hrp2
SUBDIR+= openhrp3-simulator-wo-rtm
SUBDIR+= openscenegraph
SUBDIR+= osg-dae
SUBDIR+= pal-gazebo-plugins
SUBDIR+= pal-gazebo-worlds
......
The OpenSceneGraph is an open source high performance 3D graphics toolkit, used by application developers in fields such as visual simulation, games, virtual reality, scientific visualization and modelling. Written entirely in Standard C++ and OpenGL it runs on all Windows platforms, OSX, GNU/Linux, IRIX, Solaris, HP-Ux, AIX and FreeBSD operating systems. The OpenSceneGraph is now well established as the world leading scene graph technology, used widely in the vis-sim, space, scientific, oil-gas, games and virtual reality industries.
# robotpkg Makefile for: graphics/OpenSceneGraph
# Created: Guilhem Saurel on Mon, 25 May 2020
#
ORG= openscenegraph
NAME= OpenSceneGraph
VERSION= 3.6.5
PKGREVISION= 1
DISTNAME= ${NAME}-${VERSION}
MASTER_SITES= ${MASTER_SITE_GITHUB:=${ORG}/${NAME}}/archive/
WRKSRC= ${WRKDIR}/${NAME}-${DISTNAME}
CATEGORIES= graphics
COMMENT= open source high performance 3D graphics toolkit
LICENSE= gnu-lgpl-v2.1
MAINTAINER= gsaurel@laas.fr
export COLLADA_DIR= ${PREFIX.collada-dom}
include ../../graphics/collada-dom/depend.mk
include ../../mk/sysdep/cmake.mk
include ../../mk/language/c.mk
include ../../mk/language/c++.mk
include ../../mk/robotpkg.mk
This diff is collapsed.
# robotpkg depend.mk for: graphics/OpenSceneGraph
# Created: Guilhem Saurel on Mon, 25 May 2020
#
DEPEND_DEPTH:= ${DEPEND_DEPTH}+
OPENSCENEGRAPH_DEPEND_MK:= ${OPENSCENEGRAPH_DEPEND_MK}+
ifeq (+,$(DEPEND_DEPTH))
DEPEND_PKG+= openscenegraph
endif
ifeq (+,$(OPENSCENEGRAPH_DEPEND_MK)) # -------------------------------------
PREFER.openscenegraph?= robotpkg
DEPEND_USE+= openscenegraph
DEPEND_ABI.openscenegraph?= OpenSceneGraph>=3.6
DEPEND_DIR.openscenegraph?= ../../wip/openscenegraph
SYSTEM_SEARCH.openscenegraph=\
'include/osg/Object' \
'lib/libosg.so' \
'lib/pkgconfig/openscenegraph.pc:/Version/s/[^0-9.]//gp'
endif # OPENSCENEGRAPH_DEPEND_MK -------------------------------------------
DEPEND_DEPTH:= ${DEPEND_DEPTH:+=}
SHA1 (OpenSceneGraph-3.6.5.tar.gz) = aef898a4e48dc235d8f1a5fd3f753fd2cb7b7861
RMD160 (OpenSceneGraph-3.6.5.tar.gz) = 1b9e1fd9250f5c3de85966d94edf5be393fa3928
Size (OpenSceneGraph-3.6.5.tar.gz) = 5780762 bytes
SHA1 (patch-aa) = e31ca9eeae33c1b586d9e8332884648d07f2aa90
SHA1 (patch-ab) = e74f3e82d40c9201c23345df90aad036a2d4c107
SHA1 (patch-ac) = c0cd50f891b081a73dfb7a52a31921dd8df69d2a
Fix collada-dom detection
--- CMakeModules/FindCOLLADA.cmake.orig 2020-01-31 12:03:07.000000000 +0100
+++ CMakeModules/FindCOLLADA.cmake 2020-05-25 14:34:24.246147844 +0200
@@ -62,6 +62,7 @@
FIND_PATH(COLLADA_INCLUDE_DIR dae.h
${COLLADA_DOM_ROOT}/include
+ $ENV{COLLADA_DIR}/include/collada-dom2.4
$ENV{COLLADA_DIR}/include
$ENV{COLLADA_DIR}
~/Library/Frameworks
@@ -312,11 +312,11 @@
)
-SET(COLLADA_FOUND "NO")
+SET(COLLADA_FOUND OFF CACHE BOOL "collada-dom has been found")
IF(COLLADA_DYNAMIC_LIBRARY OR COLLADA_STATIC_LIBRARY)
IF (COLLADA_INCLUDE_DIR)
- SET(COLLADA_FOUND "YES")
+ SET(COLLADA_FOUND ON CACHE BOOL "collada-dom has been found" FORCE)
FIND_PATH(COLLADA_INCLUDE_DOMANY_DIR 1.4/dom/domAny.h
${COLLADA_INCLUDE_DIR}
disable plugin broken with recent boost versions
ref https://github.com/openscenegraph/OpenSceneGraph/issues/921
--- src/osgPlugins/CMakeLists.txt.orig 2020-01-31 12:03:07.000000000 +0100
+++ src/osgPlugins/CMakeLists.txt 2020-05-25 15:06:57.408117224 +0200
@@ -303,9 +303,6 @@
ADD_PLUGIN_DIRECTORY(sdl)
ENDIF(SDL_FOUND)
-IF(ASIO_FOUND)
- ADD_PLUGIN_DIRECTORY(RestHttpDevice)
-ENDIF(ASIO_FOUND)
IF(ZEROCONF_FOUND)
Deactivate plugins not available on all robotpkg targets
--- src/osgPlugins/CMakeLists.txt.orig 2020-01-31 12:03:07.000000000 +0100
+++ src/osgPlugins/CMakeLists.txt 2020-05-30 12:44:19.876536382 +0200
@@ -106,10 +106,8 @@
ADD_PLUGIN_DIRECTORY(jp2)
ENDIF()
IF(OPENEXR_FOUND AND ZLIB_FOUND AND OSG_CPP_EXCEPTIONS_AVAILABLE)
- ADD_PLUGIN_DIRECTORY(exr)
ENDIF()
IF(GIFLIB_FOUND)
- ADD_PLUGIN_DIRECTORY(gif)
ENDIF()
IF(PNG_FOUND AND OSG_CPP_EXCEPTIONS_AVAILABLE)
ADD_PLUGIN_DIRECTORY(png)
@@ -118,8 +116,6 @@
ADD_PLUGIN_DIRECTORY(tiff)
ENDIF()
IF(GDAL_FOUND)
- ADD_PLUGIN_DIRECTORY(gdal)
- ADD_PLUGIN_DIRECTORY(ogr)
ENDIF()
IF(GTA_FOUND AND OSG_CPP_EXCEPTIONS_AVAILABLE)
ADD_PLUGIN_DIRECTORY(gta)
@@ -210,7 +206,6 @@
ENDIF()
IF(FFMPEG_FOUND AND OSG_CPP_EXCEPTIONS_AVAILABLE)
- ADD_PLUGIN_DIRECTORY(ffmpeg)
ENDIF()
IF(GSTREAMER_FOUND AND GLIB_FOUND)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment