diff -r 3d268c5b2108 doc/index.html
--- a/doc/index.html Sat Jan 16 23:41:32 2010 +0100
+++ b/doc/index.html Sun Jan 17 19:37:42 2010 +0100
@@ -360,6 +360,31 @@
That's it!
+
+ Step 5d: Cross compile your Project (OpenSceneGraph)
+
+
+ Using static OpenSceneGraph libraries requires a few changes to your source:
+
+ -
+ Define
OSG_LIBRARY_STATIC
+
+ -
+ Use the macro
USE_GRAPHICSWINDOW()
to explicitly reference your graphics system
+
+ -
+ Use the macro
USE_OSGPLUGIN()
to explicitly reference any plugin
+ you might want to use
+
+
+ Look at examples/osgstaticviewer/osgstaticviewer.cpp
in the
+ OpenSceneGraph source distribution for an example. This example can be
+ compiled with
+
+ i686-pc-mingw32-g++ -DOSG_LIBRARY_STATIC \
+-o osgstaticviewer.exe examples/osgstaticviewer/osgstaticviewer.cpp \
+`i686-pc-mingw32-pkg-config --cflags openscenegraph-osgViewer openscenegraph-osgPlugins` \
+`i686-pc-mingw32-pkg-config --static --libs openscenegraph-osgViewer openscenegraph-osgPlugins`
Further Steps
diff -r 3d268c5b2108 src/openscenegraph-disable-png.patch
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/openscenegraph-disable-png.patch Sun Jan 17 19:37:42 2010 +0100
@@ -0,0 +1,13 @@
+diff -uNr OpenSceneGraph-2.8.2.orig/src/osgPlugins/CMakeLists.txt OpenSceneGraph-2.8.2/src/osgPlugins/CMakeLists.txt
+--- OpenSceneGraph-2.8.2.orig/src/osgPlugins/CMakeLists.txt 2009-01-14 21:32:06.000000000 +0100
++++ OpenSceneGraph-2.8.2/src/osgPlugins/CMakeLists.txt 2010-01-15 06:54:16.000000000 +0100
+@@ -96,9 +96,6 @@
+ IF(GIFLIB_FOUND)
+ ADD_SUBDIRECTORY(gif)
+ ENDIF(GIFLIB_FOUND)
+-IF(PNG_FOUND)
+- ADD_SUBDIRECTORY(png)
+-ENDIF(PNG_FOUND)
+ IF(TIFF_FOUND)
+ ADD_SUBDIRECTORY(tiff)
+ ENDIF(TIFF_FOUND)
diff -r 3d268c5b2108 src/openscenegraph-header.patch
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/openscenegraph-header.patch Sun Jan 17 19:37:42 2010 +0100
@@ -0,0 +1,11 @@
+diff -uNr OpenSceneGraph-2.8.2.orig/src/osgPlugins/txp/TXPNode.cpp OpenSceneGraph-2.8.2/src/osgPlugins/txp/TXPNode.cpp
+--- OpenSceneGraph-2.8.2.orig/src/osgPlugins/txp/TXPNode.cpp 2008-06-16 15:20:51.000000000 +0200
++++ OpenSceneGraph-2.8.2/src/osgPlugins/txp/TXPNode.cpp 2010-01-12 09:00:56.000000000 +0100
+@@ -8,6 +8,7 @@
+ #include
+ #include
+ #include
++#include
+
+ #include "TileMapper.h"
+ #include "TXPNode.h"
diff -r 3d268c5b2108 src/openscenegraph-pkg-config.patch
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/openscenegraph-pkg-config.patch Sun Jan 17 19:37:42 2010 +0100
@@ -0,0 +1,366 @@
+diff -uNr OpenSceneGraph-2.8.2.orig/CMakeLists.txt OpenSceneGraph-2.8.2/CMakeLists.txt
+--- OpenSceneGraph-2.8.2.orig/CMakeLists.txt 2009-07-28 08:02:27.000000000 +0200
++++ OpenSceneGraph-2.8.2/CMakeLists.txt 2010-01-17 16:58:31.000000000 +0100
+@@ -774,12 +774,34 @@
+
+ # Generate pkg-config configuration file
+
+-CONFIGURE_FILE(${PROJECT_SOURCE_DIR}/packaging/pkgconfig/openscenegraph.pc.in
+- ${PROJECT_BINARY_DIR}/packaging/pkgconfig/openscenegraph.pc
++SET(PKGCONFIG_FILES
++ openscenegraph
++ openscenegraph-osg
++ openscenegraph-osgDB
++ openscenegraph-osgFX
++ openscenegraph-osgGA
++ openscenegraph-osgParticle
++ openscenegraph-osgSim
++ openscenegraph-osgText
++ openscenegraph-osgUtil
++ openscenegraph-osgTerrain
++ openscenegraph-osgManipulator
++ openscenegraph-osgViewer
++ openscenegraph-osgWidget
++ openscenegraph-osgShadow
++ openscenegraph-osgAnimation
++ openscenegraph-osgVolume
++ openscenegraph-osgIntrospection
++ openscenegraph-osgPlugins
++)
++
++FOREACH(PKGCONFIG_FILE ${PKGCONFIG_FILES})
++ CONFIGURE_FILE(${PROJECT_SOURCE_DIR}/packaging/pkgconfig/${PKGCONFIG_FILE}.pc.in
++ ${PROJECT_BINARY_DIR}/packaging/pkgconfig/${PKGCONFIG_FILE}.pc
+ @ONLY
+ )
+-
+-INSTALL(FILES ${PROJECT_BINARY_DIR}/packaging/pkgconfig/openscenegraph.pc DESTINATION lib${LIB_POSTFIX}/pkgconfig COMPONENT libopenscenegraph-dev)
++ INSTALL(FILES ${PROJECT_BINARY_DIR}/packaging/pkgconfig/${PKGCONFIG_FILE}.pc DESTINATION lib${LIB_POSTFIX}/pkgconfig COMPONENT libopenscenegraph-dev)
++ENDFOREACH(PKGCONFIG_FILE)
+
+ # Run this as late as possible so users can easier spot the message
+ IF (${CMAKE_INSTALL_PREFIX} STREQUAL "/usr/local")
+Binary files OpenSceneGraph-2.8.2.orig/osgstaticviewer.exe and OpenSceneGraph-2.8.2/osgstaticviewer.exe differ
+diff -uNr OpenSceneGraph-2.8.2.orig/packaging/pkgconfig/openscenegraph-osgAnimation.pc.in OpenSceneGraph-2.8.2/packaging/pkgconfig/openscenegraph-osgAnimation.pc.in
+--- OpenSceneGraph-2.8.2.orig/packaging/pkgconfig/openscenegraph-osgAnimation.pc.in 1970-01-01 01:00:00.000000000 +0100
++++ OpenSceneGraph-2.8.2/packaging/pkgconfig/openscenegraph-osgAnimation.pc.in 2010-01-17 16:58:31.000000000 +0100
+@@ -0,0 +1,15 @@
++# pkg-config source file
++
address@hidden@
++exec_prefix=${prefix}
++libdir=${exec_prefix}/address@hidden@
++includedir=${prefix}/include
++
++Name: openscenegraph-osgAnimation
++Description: Skinning and morphing library for Openscenegraph
++Version: @OPENSCENEGRAPH_VERSION@
++Requires: openscenegraph-osg openscenegraph-osgText openscenegraph-osgGA openscenegraph-osgViewer openthreads
++Conflicts:
++Libs: -L${libdir} -losgAnimation
++Libs.private:
++Cflags: -I${includedir}
+diff -uNr OpenSceneGraph-2.8.2.orig/packaging/pkgconfig/openscenegraph-osgDB.pc.in OpenSceneGraph-2.8.2/packaging/pkgconfig/openscenegraph-osgDB.pc.in
+--- OpenSceneGraph-2.8.2.orig/packaging/pkgconfig/openscenegraph-osgDB.pc.in 1970-01-01 01:00:00.000000000 +0100
++++ OpenSceneGraph-2.8.2/packaging/pkgconfig/openscenegraph-osgDB.pc.in 2010-01-17 16:58:31.000000000 +0100
+@@ -0,0 +1,15 @@
++# pkg-config source file
++
address@hidden@
++exec_prefix=${prefix}
++libdir=${exec_prefix}/address@hidden@
++includedir=${prefix}/include
++
++Name: openscenegraph-osgDB
++Description: File format reading library for Openscenegraph
++Version: @OPENSCENEGRAPH_VERSION@
++Requires: openscenegraph-osg openthreads
++Conflicts:
++Libs: -L${libdir} -losgDB
++Libs.private:
++Cflags: -I${includedir}
+diff -uNr OpenSceneGraph-2.8.2.orig/packaging/pkgconfig/openscenegraph-osgFX.pc.in OpenSceneGraph-2.8.2/packaging/pkgconfig/openscenegraph-osgFX.pc.in
+--- OpenSceneGraph-2.8.2.orig/packaging/pkgconfig/openscenegraph-osgFX.pc.in 1970-01-01 01:00:00.000000000 +0100
++++ OpenSceneGraph-2.8.2/packaging/pkgconfig/openscenegraph-osgFX.pc.in 2010-01-17 16:58:31.000000000 +0100
+@@ -0,0 +1,15 @@
++# pkg-config source file
++
address@hidden@
++exec_prefix=${prefix}
++libdir=${exec_prefix}/address@hidden@
++includedir=${prefix}/include
++
++Name: openscenegraph-osgFX
++Description: Special effects library for Openscenegraph
++Version: @OPENSCENEGRAPH_VERSION@
++Requires: openscenegraph-osgDB openscenegraph-osgUtil openscenegraph-osg openthreads
++Conflicts:
++Libs: -L${libdir} -losgFX
++Libs.private:
++Cflags: -I${includedir}
+diff -uNr OpenSceneGraph-2.8.2.orig/packaging/pkgconfig/openscenegraph-osgGA.pc.in OpenSceneGraph-2.8.2/packaging/pkgconfig/openscenegraph-osgGA.pc.in
+--- OpenSceneGraph-2.8.2.orig/packaging/pkgconfig/openscenegraph-osgGA.pc.in 1970-01-01 01:00:00.000000000 +0100
++++ OpenSceneGraph-2.8.2/packaging/pkgconfig/openscenegraph-osgGA.pc.in 2010-01-17 16:58:31.000000000 +0100
+@@ -0,0 +1,15 @@
++# pkg-config source file
++
address@hidden@
++exec_prefix=${prefix}
++libdir=${exec_prefix}/address@hidden@
++includedir=${prefix}/include
++
++Name: openscenegraph-osgGA
++Description: GUI event library for Openscenegraph
++Version: @OPENSCENEGRAPH_VERSION@
++Requires: openscenegraph-osgDB openscenegraph-osgUtil openscenegraph-osg openthreads
++Conflicts:
++Libs: -L${libdir} -losgGA
++Libs.private:
++Cflags: -I${includedir}
+diff -uNr OpenSceneGraph-2.8.2.orig/packaging/pkgconfig/openscenegraph-osgIntrospection.pc.in OpenSceneGraph-2.8.2/packaging/pkgconfig/openscenegraph-osgIntrospection.pc.in
+--- OpenSceneGraph-2.8.2.orig/packaging/pkgconfig/openscenegraph-osgIntrospection.pc.in 1970-01-01 01:00:00.000000000 +0100
++++ OpenSceneGraph-2.8.2/packaging/pkgconfig/openscenegraph-osgIntrospection.pc.in 2010-01-17 16:58:31.000000000 +0100
+@@ -0,0 +1,15 @@
++# pkg-config source file
++
address@hidden@
++exec_prefix=${prefix}
++libdir=${exec_prefix}/address@hidden@
++includedir=${prefix}/include
++
++Name: openscenegraph-osgIntrospection
++Description: Introspection library for Openscenegraph
++Version: @OPENSCENEGRAPH_VERSION@
++Requires: openscenegraph-osg openthreads
++Conflicts:
++Libs: -L${libdir} -losgIntrospection
++Libs.private:
++Cflags: -I${includedir}
+diff -uNr OpenSceneGraph-2.8.2.orig/packaging/pkgconfig/openscenegraph-osgManipulator.pc.in OpenSceneGraph-2.8.2/packaging/pkgconfig/openscenegraph-osgManipulator.pc.in
+--- OpenSceneGraph-2.8.2.orig/packaging/pkgconfig/openscenegraph-osgManipulator.pc.in 1970-01-01 01:00:00.000000000 +0100
++++ OpenSceneGraph-2.8.2/packaging/pkgconfig/openscenegraph-osgManipulator.pc.in 2010-01-17 16:58:31.000000000 +0100
+@@ -0,0 +1,15 @@
++# pkg-config source file
++
address@hidden@
++exec_prefix=${prefix}
++libdir=${exec_prefix}/address@hidden@
++includedir=${prefix}/include
++
++Name: openscenegraph-osgManipulator
++Description: Manipulator library for Openscenegraph
++Version: @OPENSCENEGRAPH_VERSION@
++Requires: openscenegraph-osgUtil openscenegraph-osgGA openscenegraph-osg openthreads
++Conflicts:
++Libs: -L${libdir} -losgManipulator
++Libs.private:
++Cflags: -I${includedir}
+diff -uNr OpenSceneGraph-2.8.2.orig/packaging/pkgconfig/openscenegraph-osgParticle.pc.in OpenSceneGraph-2.8.2/packaging/pkgconfig/openscenegraph-osgParticle.pc.in
+--- OpenSceneGraph-2.8.2.orig/packaging/pkgconfig/openscenegraph-osgParticle.pc.in 1970-01-01 01:00:00.000000000 +0100
++++ OpenSceneGraph-2.8.2/packaging/pkgconfig/openscenegraph-osgParticle.pc.in 2010-01-17 16:58:31.000000000 +0100
+@@ -0,0 +1,15 @@
++# pkg-config source file
++
address@hidden@
++exec_prefix=${prefix}
++libdir=${exec_prefix}/address@hidden@
++includedir=${prefix}/include
++
++Name: openscenegraph-osgParticle
++Description: Particle system library for Openscenegraph
++Version: @OPENSCENEGRAPH_VERSION@
++Requires: openscenegraph-osgDB openscenegraph-osgUtil openscenegraph-osg openthreads
++Conflicts:
++Libs: -L${libdir} -losgParticle
++Libs.private:
++Cflags: -I${includedir}
+diff -uNr OpenSceneGraph-2.8.2.orig/packaging/pkgconfig/openscenegraph-osg.pc.in OpenSceneGraph-2.8.2/packaging/pkgconfig/openscenegraph-osg.pc.in
+--- OpenSceneGraph-2.8.2.orig/packaging/pkgconfig/openscenegraph-osg.pc.in 1970-01-01 01:00:00.000000000 +0100
++++ OpenSceneGraph-2.8.2/packaging/pkgconfig/openscenegraph-osg.pc.in 2010-01-17 16:58:31.000000000 +0100
+@@ -0,0 +1,15 @@
++# pkg-config source file
++
address@hidden@
++exec_prefix=${prefix}
++libdir=${exec_prefix}/address@hidden@
++includedir=${prefix}/include
++
++Name: openscenegraph-osg
++Description: 3D scenegraph
++Version: @OPENSCENEGRAPH_VERSION@
++Requires: openthreads
++Conflicts:
++Libs: -L${libdir} -losg
++Libs.private: -lglu32 -lopengl32
++Cflags: -I${includedir}
+diff -uNr OpenSceneGraph-2.8.2.orig/packaging/pkgconfig/openscenegraph-osgPlugins.pc.in OpenSceneGraph-2.8.2/packaging/pkgconfig/openscenegraph-osgPlugins.pc.in
+--- OpenSceneGraph-2.8.2.orig/packaging/pkgconfig/openscenegraph-osgPlugins.pc.in 1970-01-01 01:00:00.000000000 +0100
++++ OpenSceneGraph-2.8.2/packaging/pkgconfig/openscenegraph-osgPlugins.pc.in 2010-01-17 18:59:13.000000000 +0100
+@@ -0,0 +1,15 @@
++# pkg-config source file
++
address@hidden@
++exec_prefix=${prefix}
++libdir=${exec_prefix}/address@hidden@
++includedir=${prefix}/include
++
++Name: openscenegraph-osgPlugins
++Description: Plugins for Openscenegraph
++Version: @OPENSCENEGRAPH_VERSION@
++Requires: openscenegraph-osgParticle openscenegraph-osgWidget openscenegraph-osgVolume openscenegraph-osgShadow openscenegraph-osgTerrain openscenegraph-osgFX openscenegraph-osgSim openscenegraph-osgText openscenegraph-osgAnimation openscenegraph-osgViewer openscenegraph-osgDB openscenegraph-osgUtil openscenegraph-osg openthreads
++Conflicts:
++Libs:
++Libs.private: -L${libdir}/address@hidden@ -losgdb_3dc -losgdb_3ds -losgdb_ac -losgdb_bmp -losgdb_bsp -losgdb_bvh -losgdb_cfg -losgdb_curl -losgdb_dds -losgdb_dot -losgdb_dw -losgdb_dxf -losgdb_exr -losgdb_freetype -losgdb_gdal -losgdb_geo -losgdb_gif -losgdb_glsl -losgdb_gz -losgdb_hdr -losgdb_ive -losgdb_jp2 -losgdb_jpeg -losgdb_logo -losgdb_lwo -losgdb_lws -losgdb_md2 -losgdb_mdl -losgdb_normals -losgdb_obj -losgdb_ogr -losgdb_openflight -losgdb_osg -losgdb_osga -losgdb_osganimation -losgdb_osgfx -losgdb_osgparticle -losgdb_osgshadow -losgdb_osgsim -losgdb_osgterrain -losgdb_osgtext -losgdb_osgtgz -losgdb_osgviewer -losgdb_osgvolume -losgdb_osgwidget -losgdb_pic -losgdb_pnm -losgdb_rgb -losgdb_rot -losgdb_scale -losgdb_shp -losgdb_stl -losgdb_svg -losgdb_tga -losgdb_tgz -losgdb_tiff -losgdb_trans -losgdb_txf -losgdb_txp -losgdb_vtf -losgdb_x -losgdb_zip -lcurl -lgnutls -lgcrypt -lgpg-error -lidn -lIlmImf -lHalf -lImath -lIlmThread -lIex -lfreetype -lgdal -ltiff -lgif -ljasper -ljpeg -liconv -lz -lws2_32 -lwinmm -lwldap32
++Cflags: -I${includedir}
+diff -uNr OpenSceneGraph-2.8.2.orig/packaging/pkgconfig/openscenegraph-osgShadow.pc.in OpenSceneGraph-2.8.2/packaging/pkgconfig/openscenegraph-osgShadow.pc.in
+--- OpenSceneGraph-2.8.2.orig/packaging/pkgconfig/openscenegraph-osgShadow.pc.in 1970-01-01 01:00:00.000000000 +0100
++++ OpenSceneGraph-2.8.2/packaging/pkgconfig/openscenegraph-osgShadow.pc.in 2010-01-17 16:58:31.000000000 +0100
+@@ -0,0 +1,15 @@
++# pkg-config source file
++
address@hidden@
++exec_prefix=${prefix}
++libdir=${exec_prefix}/address@hidden@
++includedir=${prefix}/include
++
++Name: openscenegraph-osgShadow
++Description: Shadow techniques library for Openscenegraph
++Version: @OPENSCENEGRAPH_VERSION@
++Requires: openscenegraph-osgUtil openscenegraph-osgDB openscenegraph-osg openthreads
++Conflicts:
++Libs: -L${libdir} -losgShadow
++Libs.private:
++Cflags: -I${includedir}
+diff -uNr OpenSceneGraph-2.8.2.orig/packaging/pkgconfig/openscenegraph-osgSim.pc.in OpenSceneGraph-2.8.2/packaging/pkgconfig/openscenegraph-osgSim.pc.in
+--- OpenSceneGraph-2.8.2.orig/packaging/pkgconfig/openscenegraph-osgSim.pc.in 1970-01-01 01:00:00.000000000 +0100
++++ OpenSceneGraph-2.8.2/packaging/pkgconfig/openscenegraph-osgSim.pc.in 2010-01-17 16:58:31.000000000 +0100
+@@ -0,0 +1,15 @@
++# pkg-config source file
++
address@hidden@
++exec_prefix=${prefix}
++libdir=${exec_prefix}/address@hidden@
++includedir=${prefix}/include
++
++Name: openscenegraph-osgSim
++Description: Simulator utility library for Openscenegraph
++Version: @OPENSCENEGRAPH_VERSION@
++Requires: openscenegraph-osgText openscenegraph-osgDB openscenegraph-osgUtil openscenegraph-osg openthreads
++Conflicts:
++Libs: -L${libdir} -losgSim
++Libs.private:
++Cflags: -I${includedir}
+diff -uNr OpenSceneGraph-2.8.2.orig/packaging/pkgconfig/openscenegraph-osgTerrain.pc.in OpenSceneGraph-2.8.2/packaging/pkgconfig/openscenegraph-osgTerrain.pc.in
+--- OpenSceneGraph-2.8.2.orig/packaging/pkgconfig/openscenegraph-osgTerrain.pc.in 1970-01-01 01:00:00.000000000 +0100
++++ OpenSceneGraph-2.8.2/packaging/pkgconfig/openscenegraph-osgTerrain.pc.in 2010-01-17 16:58:31.000000000 +0100
+@@ -0,0 +1,15 @@
++# pkg-config source file
++
address@hidden@
++exec_prefix=${prefix}
++libdir=${exec_prefix}/address@hidden@
++includedir=${prefix}/include
++
++Name: openscenegraph-osgTerrain
++Description: Terrain library for Openscenegraph
++Version: @OPENSCENEGRAPH_VERSION@
++Requires: openscenegraph-osgUtil openscenegraph-osgDB openscenegraph-osg openthreads
++Conflicts:
++Libs: -L${libdir} -losgTerrain
++Libs.private:
++Cflags: -I${includedir}
+diff -uNr OpenSceneGraph-2.8.2.orig/packaging/pkgconfig/openscenegraph-osgText.pc.in OpenSceneGraph-2.8.2/packaging/pkgconfig/openscenegraph-osgText.pc.in
+--- OpenSceneGraph-2.8.2.orig/packaging/pkgconfig/openscenegraph-osgText.pc.in 1970-01-01 01:00:00.000000000 +0100
++++ OpenSceneGraph-2.8.2/packaging/pkgconfig/openscenegraph-osgText.pc.in 2010-01-17 16:58:31.000000000 +0100
+@@ -0,0 +1,15 @@
++# pkg-config source file
++
address@hidden@
++exec_prefix=${prefix}
++libdir=${exec_prefix}/address@hidden@
++includedir=${prefix}/include
++
++Name: openscenegraph-osgText
++Description: Text rendering library for Openscenegraph
++Version: @OPENSCENEGRAPH_VERSION@
++Requires: openscenegraph-osgDB openscenegraph-osg openthreads
++Conflicts:
++Libs: -L${libdir} -losgText
++Libs.private:
++Cflags: -I${includedir}
+diff -uNr OpenSceneGraph-2.8.2.orig/packaging/pkgconfig/openscenegraph-osgUtil.pc.in OpenSceneGraph-2.8.2/packaging/pkgconfig/openscenegraph-osgUtil.pc.in
+--- OpenSceneGraph-2.8.2.orig/packaging/pkgconfig/openscenegraph-osgUtil.pc.in 1970-01-01 01:00:00.000000000 +0100
++++ OpenSceneGraph-2.8.2/packaging/pkgconfig/openscenegraph-osgUtil.pc.in 2010-01-17 16:58:31.000000000 +0100
+@@ -0,0 +1,15 @@
++# pkg-config source file
++
address@hidden@
++exec_prefix=${prefix}
++libdir=${exec_prefix}/address@hidden@
++includedir=${prefix}/include
++
++Name: openscenegraph-osgUtil
++Description: Utility library for Openscenegraph
++Version: @OPENSCENEGRAPH_VERSION@
++Requires: openscenegraph-osg openthreads
++Conflicts:
++Libs: -L${libdir} -losgUtil
++Libs.private:
++Cflags: -I${includedir}
+diff -uNr OpenSceneGraph-2.8.2.orig/packaging/pkgconfig/openscenegraph-osgViewer.pc.in OpenSceneGraph-2.8.2/packaging/pkgconfig/openscenegraph-osgViewer.pc.in
+--- OpenSceneGraph-2.8.2.orig/packaging/pkgconfig/openscenegraph-osgViewer.pc.in 1970-01-01 01:00:00.000000000 +0100
++++ OpenSceneGraph-2.8.2/packaging/pkgconfig/openscenegraph-osgViewer.pc.in 2010-01-17 16:58:31.000000000 +0100
+@@ -0,0 +1,15 @@
++# pkg-config source file
++
address@hidden@
++exec_prefix=${prefix}
++libdir=${exec_prefix}/address@hidden@
++includedir=${prefix}/include
++
++Name: openscenegraph-osgViewer
++Description: Windowing system setup, thread scene manager library for Openscenegraph
++Version: @OPENSCENEGRAPH_VERSION@
++Requires: openscenegraph-osgText openscenegraph-osgDB openscenegraph-osgUtil openscenegraph-osgGA openscenegraph-osg openthreads
++Conflicts:
++Libs: -L${libdir} -losgViewer
++Libs.private: -lgdi32
++Cflags: -I${includedir}
+diff -uNr OpenSceneGraph-2.8.2.orig/packaging/pkgconfig/openscenegraph-osgVolume.pc.in OpenSceneGraph-2.8.2/packaging/pkgconfig/openscenegraph-osgVolume.pc.in
+--- OpenSceneGraph-2.8.2.orig/packaging/pkgconfig/openscenegraph-osgVolume.pc.in 1970-01-01 01:00:00.000000000 +0100
++++ OpenSceneGraph-2.8.2/packaging/pkgconfig/openscenegraph-osgVolume.pc.in 2010-01-17 16:58:31.000000000 +0100
+@@ -0,0 +1,15 @@
++# pkg-config source file
++
address@hidden@
++exec_prefix=${prefix}
++libdir=${exec_prefix}/address@hidden@
++includedir=${prefix}/include
++
++Name: openscenegraph-osgVolume
++Description: Volume library for Openscenegraph
++Version: @OPENSCENEGRAPH_VERSION@
++Requires: openscenegraph-osgUtil openscenegraph-osgDB openscenegraph-osgGA openscenegraph-osg openthreads
++Conflicts:
++Libs: -L${libdir} -losgVolume
++Libs.private:
++Cflags: -I${includedir}
+diff -uNr OpenSceneGraph-2.8.2.orig/packaging/pkgconfig/openscenegraph-osgWidget.pc.in OpenSceneGraph-2.8.2/packaging/pkgconfig/openscenegraph-osgWidget.pc.in
+--- OpenSceneGraph-2.8.2.orig/packaging/pkgconfig/openscenegraph-osgWidget.pc.in 1970-01-01 01:00:00.000000000 +0100
++++ OpenSceneGraph-2.8.2/packaging/pkgconfig/openscenegraph-osgWidget.pc.in 2010-01-17 16:58:31.000000000 +0100
+@@ -0,0 +1,15 @@
++# pkg-config source file
++
address@hidden@
++exec_prefix=${prefix}
++libdir=${exec_prefix}/address@hidden@
++includedir=${prefix}/include
++
++Name: openscenegraph-osgWidget
++Description: Windowing toolkit library for Openscenegraph
++Version: @OPENSCENEGRAPH_VERSION@
++Requires: openscenegraph-osgText openscenegraph-osgViewer openscenegraph-osgDB openscenegraph-osgGA openscenegraph-osg openthreads
++Conflicts:
++Libs: -L${libdir} -losgWidget
++Libs.private:
++Cflags: -I${includedir}
diff -r 3d268c5b2108 src/openscenegraph-static.patch
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/openscenegraph-static.patch Sun Jan 17 19:37:42 2010 +0100
@@ -0,0 +1,15 @@
+diff -uNr OpenSceneGraph-2.8.2.orig/src/osgPlugins/exr/ReaderWriterEXR.cpp OpenSceneGraph-2.8.2/src/osgPlugins/exr/ReaderWriterEXR.cpp
+--- OpenSceneGraph-2.8.2.orig/src/osgPlugins/exr/ReaderWriterEXR.cpp 2008-11-27 10:36:18.000000000 +0100
++++ OpenSceneGraph-2.8.2/src/osgPlugins/exr/ReaderWriterEXR.cpp 2010-01-14 17:55:32.000000000 +0100
+@@ -4,11 +4,6 @@
+ #include
+ #include
+
+-#ifdef _WIN32
+-//Make the half format work against openEXR libs
+-#define OPENEXR_DLL
+-#endif
+-
+ #include
+ #include
+ #include
diff -r 3d268c5b2108 src/openscenegraph.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/openscenegraph.mk Sun Jan 17 19:37:42 2010 +0100
@@ -0,0 +1,58 @@
+# Copyright (C) 2010 Martin Lambers
+#
+# Permission is hereby granted, free of charge, to any person obtaining
+# a copy of this software and associated documentation files (the
+# "Software"), to deal in the Software without restriction, including
+# without limitation the rights to use, copy, modify, merge, publish,
+# distribute, sublicense, and/or sell copies of the Software, and to
+# permit persons to whom the Software is furnished to do so, subject
+# to the following conditions:
+#
+# The above copyright notice and this permission notice shall be
+# included in all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+# CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+# OpenSceneGraph
+PKG := openscenegraph
+$(PKG)_IGNORE :=
+$(PKG)_VERSION := 2.8.2
+$(PKG)_CHECKSUM := f2f0a3285a022640345a81f536459f37f3f38d01
+$(PKG)_SUBDIR := OpenSceneGraph-$($(PKG)_VERSION)
+$(PKG)_FILE := $($(PKG)_SUBDIR).zip
+$(PKG)_WEBSITE := http://www.openscenegraph.org/
+$(PKG)_URL := http://www.openscenegraph.org/downloads/stable_releases/$($(PKG)_SUBDIR)/source/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc curl giflib jpeg tiff libpng jasper openexr gdal freetype zlib
+
+define $(PKG)_UPDATE
+ false
+endef
+
+define $(PKG)_BUILD
+ # The first lines (up to and including -DCMAKE_INSTALL_PREFIX) set up cmake
+ # for cross-compilation. These should probably be the same for all
+ # cmake-based packages in mingw-cross-env. See also
+ # .
+ # The last lines set OpenSceneGraph-specific flags.
+ cd '$(1)' && cmake . \
+ -DCMAKE_SYSTEM_NAME=Windows \
+ -DCMAKE_FIND_ROOT_PATH=$(PREFIX)/$(TARGET) \
+ -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER \
+ -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \
+ -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY \
+ -DCMAKE_C_COMPILER=$(PREFIX)/bin/$(TARGET)-gcc \
+ -DCMAKE_INCLUDE_PATH=$(PREFIX)/$(TARGET)/include \
+ -DCMAKE_LIB_PATH=$(PREFIX)/$(TARGET)/lib \
+ -DCMAKE_INSTALL_PREFIX=$(PREFIX)/$(TARGET) \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DDYNAMIC_OPENTHREADS=OFF \
+ -DDYNAMIC_OPENSCENEGRAPH=OFF \
+ -DBUILD_OSG_APPLICATIONS=OFF
+ $(MAKE) -C '$(1)' -j '$(JOBS)' install
+endef