# HG changeset patch # User Volker Grabsch # Date 1271803548 -7200 # Node ID 32b20fee1d5d6fc1de6fdae894fe86b736182a3f # Parent f266c4bf62b09907fae38f17f16e212be448c748 upgrade package: openscenegraph (by Martin Lambers) diff -r f266c4bf62b0 -r 32b20fee1d5d src/openscenegraph-1-pkg-config.patch --- a/src/openscenegraph-1-pkg-config.patch Mon Apr 19 21:54:23 2010 +0200 +++ b/src/openscenegraph-1-pkg-config.patch Wed Apr 21 00:45:48 2010 +0200 @@ -1,49 +1,48 @@ This file is part of mingw-cross-env. See doc/index.html for further information. -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.3.orig/CMakeLists.txt OpenSceneGraph-2.8.3/CMakeLists.txt +--- OpenSceneGraph-2.8.3.orig/CMakeLists.txt 2010-04-01 11:02:54.000000000 +0200 ++++ OpenSceneGraph-2.8.3/CMakeLists.txt 2010-04-20 07:41:05.000000000 +0200 +@@ -779,12 +779,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") 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 diff -r f266c4bf62b0 -r 32b20fee1d5d src/openscenegraph-3-header.patch --- a/src/openscenegraph-3-header.patch Mon Apr 19 21:54:23 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,14 +0,0 @@ -This file is part of mingw-cross-env. -See doc/index.html for further information. - -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 f266c4bf62b0 -r 32b20fee1d5d src/openscenegraph-4-png.patch --- a/src/openscenegraph-4-png.patch Mon Apr 19 21:54:23 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,19 +0,0 @@ -This file is part of mingw-cross-env. -See doc/index.html for further information. - ---- OpenSceneGraph-2.8.2.orig/src/osgPlugins/png/ReaderWriterPNG.cpp -+++ OpenSceneGraph-2.8.2/src/osgPlugins/png/ReaderWriterPNG.cpp -@@ -179,5 +179,5 @@ - - fin.read((char*)header,8); -- if (fin.gcount() == 8 && png_check_sig(header, 8)) -+ if (fin.gcount() == 8 && png_sig_cmp(header, 0, 8) == 0) - png_set_read_fn(png,&fin,png_read_istream); //Use custom read function that will get data from istream - else -@@ -230,5 +230,5 @@ - png_set_palette_to_rgb(png); - if (color == PNG_COLOR_TYPE_GRAY && depth < 8) -- png_set_gray_1_2_4_to_8(png); -+ png_set_expand_gray_1_2_4_to_8(png); - if (png_get_valid(png, info, PNG_INFO_tRNS)) - png_set_tRNS_to_alpha(png); diff -r f266c4bf62b0 -r 32b20fee1d5d src/openscenegraph.mk --- a/src/openscenegraph.mk Mon Apr 19 21:54:23 2010 +0200 +++ b/src/openscenegraph.mk Wed Apr 21 00:45:48 2010 +0200 @@ -3,9 +3,9 @@ # OpenSceneGraph PKG := openscenegraph -$(PKG)_IGNORE := 2.8.2b -$(PKG)_VERSION := 2.8.2 -$(PKG)_CHECKSUM := f2f0a3285a022640345a81f536459f37f3f38d01 +$(PKG)_IGNORE := +$(PKG)_VERSION := 2.8.3 +$(PKG)_CHECKSUM := 90502e4cbd47aac1689cc39d25ab62bbe0bba9fc $(PKG)_SUBDIR := OpenSceneGraph-$($(PKG)_VERSION) $(PKG)_FILE := $($(PKG)_SUBDIR).zip $(PKG)_WEBSITE := http://www.openscenegraph.org/