[osgearth] 12/13: Drop libkml-dev build dependency, replace with libminizip-dev.
Sebastiaan Couwenberg
sebastic at moszumanska.debian.org
Sun Jul 26 21:27:25 UTC 2015
This is an automated email from the git hooks/post-receive script.
sebastic pushed a commit to branch master
in repository osgearth.
commit bb648beabd1c02468e3f46a5d34961b146263cb4
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date: Sun Jul 26 22:31:05 2015 +0200
Drop libkml-dev build dependency, replace with libminizip-dev.
---
debian/changelog | 1 +
debian/control | 2 +-
debian/patches/cmake-FindMiniZip.patch | 133 ---------------------------------
debian/patches/series | 1 -
4 files changed, 2 insertions(+), 135 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index e1c0860..5e4739e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -12,6 +12,7 @@ osgearth (2.7.0+dfsg-1~exp1) UNRELEASED; urgency=medium
* Bump SOVERSION to 5.
* Don't install osgearth_cache_test, osgearth_createtile &
osgearth_pick example binaries.
+ * Drop libkml-dev build dependency, replace with libminizip-dev.
-- Bas Couwenberg <sebastic at debian.org> Sun, 26 Jul 2015 13:49:42 +0200
diff --git a/debian/control b/debian/control
index 5b258d3..a5359d2 100644
--- a/debian/control
+++ b/debian/control
@@ -13,7 +13,7 @@ Build-Depends: debhelper (>= 9),
libgdal-dev (>= 1.10.1~),
libgeos-dev,
libexpat1-dev,
- libkml-dev (>= 1.3.0~r864),
+ libminizip-dev,
libnoise-dev,
libqt4-dev,
libqt4-opengl-dev,
diff --git a/debian/patches/cmake-FindMiniZip.patch b/debian/patches/cmake-FindMiniZip.patch
deleted file mode 100644
index 0c63603..0000000
--- a/debian/patches/cmake-FindMiniZip.patch
+++ /dev/null
@@ -1,133 +0,0 @@
-Description: Support libminizip path as used by the libkml-dev package.
-Author: Bas Couwenberg <sebastic at debian.org>
-Last-Update: 2013-10-09
---- a/CMakeModules/FindMiniZip.cmake
-+++ b/CMakeModules/FindMiniZip.cmake
-@@ -32,6 +32,7 @@ IF(NOT MINIZIP_FOUND)
- ~/Library/Frameworks
- /Library/Frameworks
- /usr/local/include
-+ /usr/include/minizip
- /usr/include
- /sw/include # Fink
- /opt/local/include # DarwinPorts
-@@ -53,6 +54,7 @@ IF(NOT MINIZIP_FOUND)
- ~/Library/Frameworks
- /Library/Frameworks
- /usr/local/lib
-+ /usr/lib/${DEB_HOST_MULTIARCH}
- /usr/lib
- /sw/lib
- /opt/local/lib
-@@ -67,4 +69,9 @@ IF(NOT MINIZIP_FOUND)
- SET(MINIZIP_FOUND "YES")
- ADD_DEFINITIONS(-DOSGEARTH_HAVE_MINIZIP)
- ENDIF(MINIZIP_LIBRARY AND MINIZIP_INCLUDE_DIR)
-+
-+ INCLUDE(FindPackageHandleStandardArgs)
-+ FIND_PACKAGE_HANDLE_STANDARD_ARGS(MiniZip DEFAULT_MSG MINIZIP_LIBRARY MINIZIP_INCLUDE_DIR)
-+ MARK_AS_ADVANCED(MINIZIP_LIBRARY MINIZIP_INCLUDE_DIR)
-+
- ENDIF(NOT MINIZIP_FOUND)
---- a/src/osgEarthDrivers/kml/KMZArchive
-+++ b/src/osgEarthDrivers/kml/KMZArchive
-@@ -27,7 +27,7 @@
-
- #include <osgDB/Archive>
- #include <osgEarth/URI>
--#include "unzip.h" // minizip
-+#include "minizip/unzip.h" // minizip
-
- using namespace osgEarth;
-
---- a/src/osgEarthDrivers/kml/KMZArchive.cpp
-+++ b/src/osgEarthDrivers/kml/KMZArchive.cpp
-@@ -83,7 +83,7 @@ _bufsize( 1024000 )
- localURI = downloadToCache( archiveURI );
- }
-
-- _uf = unzOpen( localURI.full().c_str() );
-+ _uf = libkml_unzOpen( localURI.full().c_str() );
- _buf = (void*)new char[_bufsize];
- }
-
-@@ -169,9 +169,9 @@ KMZArchive::readToBuffer( const std::str
- {
- // special case; first try the master file (doc.kml), then failing that, look
- // for the first KML file in the archive.
-- if ( unzLocateFile( _uf, "doc.kml", 0 ) != 0 )
-+ if ( libkml_unzLocateFile( _uf, "doc.kml", 0 ) != 0 )
- {
-- if ( unzGoToFirstFile( _uf ) != UNZ_OK )
-+ if ( libkml_unzGoToFirstFile( _uf ) != UNZ_OK )
- {
- OE_WARN << LC << "Archive is empty" << std::endl;
- return false;
-@@ -179,7 +179,7 @@ KMZArchive::readToBuffer( const std::str
-
- while( err == UNZ_OK )
- {
-- if ( unzGetCurrentFileInfo( _uf, &file_info, filename_inzip, sizeof(filename_inzip), 0L, 0, 0L, 0) )
-+ if ( libkml_unzGetCurrentFileInfo( _uf, &file_info, filename_inzip, sizeof(filename_inzip), 0L, 0, 0L, 0) )
- {
- OE_WARN << LC << "Error with zipfile " << _archiveURI.base() << std::endl;
- return false;
-@@ -192,7 +192,7 @@ KMZArchive::readToBuffer( const std::str
- break;
- }
-
-- err = unzGoToNextFile( _uf );
-+ err = libkml_unzGoToNextFile( _uf );
- }
-
- if ( err != UNZ_OK )
-@@ -203,7 +203,7 @@ KMZArchive::readToBuffer( const std::str
- }
- }
-
-- else if ( unzLocateFile( _uf, fileInZip.c_str(), 0 ) )
-+ else if ( libkml_unzLocateFile( _uf, fileInZip.c_str(), 0 ) )
- {
- OE_WARN << LC << "Failed to locate '" << fileInZip << "' in '" << _archiveURI.base() << "'" << std::endl;
- return false;
-@@ -211,26 +211,26 @@ KMZArchive::readToBuffer( const std::str
-
- if ( !got_file_info )
- {
-- if ( unzGetCurrentFileInfo( _uf, &file_info, filename_inzip, sizeof(filename_inzip), 0L, 0, 0L, 0) )
-+ if ( libkml_unzGetCurrentFileInfo( _uf, &file_info, filename_inzip, sizeof(filename_inzip), 0L, 0, 0L, 0) )
- {
- OE_WARN << LC << "Error with zipfile " << _archiveURI.base() << std::endl;
- return false;
- }
- }
-
-- err = unzOpenCurrentFilePassword( _uf, 0L );
-+ err = libkml_unzOpenCurrentFilePassword( _uf, 0L );
- if ( err != UNZ_OK )
- {
-- OE_WARN << LC << "unzOpenCurrentFilePassword failed" << std::endl;
-+ OE_WARN << LC << "libkml_unzOpenCurrentFilePassword failed" << std::endl;
- return false;
- }
-
- do
- {
-- err = unzReadCurrentFile( _uf, _buf, _bufsize );
-+ err = libkml_unzReadCurrentFile( _uf, _buf, _bufsize );
- if ( err < 0 )
- {
-- OE_WARN << LC << "Error in unzReadCurrentFile" << std::endl;
-+ OE_WARN << LC << "Error in libkml_unzReadCurrentFile" << std::endl;
- break;
- }
- if ( err > 0 )
-@@ -243,7 +243,7 @@ KMZArchive::readToBuffer( const std::str
- }
- while( err > 0 );
-
-- err = unzCloseCurrentFile( _uf );
-+ err = libkml_unzCloseCurrentFile( _uf );
- if ( err != UNZ_OK )
- {
- //ignore it...
diff --git a/debian/patches/series b/debian/patches/series
index 7ce0835..3efde76 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,5 +2,4 @@ soversion.patch
version.patch
fallback-getCurrentThreadId.patch
kfreebsd-getCurrentThreadId.patch
-cmake-FindMiniZip.patch
undefined-reference-to-symbol-XInitThreads.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/osgearth.git
More information about the Pkg-grass-devel
mailing list