[libcitygml] 08/11: Reinstate openscenegraph plugin packages.

Sebastiaan Couwenberg sebastic at moszumanska.debian.org
Mon Aug 31 22:02:09 UTC 2015


This is an automated email from the git hooks/post-receive script.

sebastic pushed a commit to branch master
in repository libcitygml.

commit eb260c162bebf9b1b257d0a23fbe41cb4a0cb730
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Mon Aug 31 23:34:20 2015 +0200

    Reinstate openscenegraph plugin packages.
---
 debian/changelog                                   |  1 +
 debian/control                                     | 43 ++++++++++++++++++++++
 debian/gencontrol                                  |  9 +++++
 .../openscenegraph-plugin-citygml-shared.install   |  1 +
 .../openscenegraph-plugin-citygml-static.install   |  1 +
 debian/rules                                       | 11 ++++--
 6 files changed, 63 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 100d020..bcbba8b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,7 @@ libcitygml (2.0-1) UNRELEASED; urgency=medium
   * Update Vcs-Browser URL to use HTTPS.
   * Rename library package for SONAME bump.
   * Update symbols for amd64.
+  * Reinstate openscenegraph plugin packages.
 
  -- Bas Couwenberg <sebastic at debian.org>  Mon, 31 Aug 2015 00:22:05 +0200
 
diff --git a/debian/control b/debian/control
index b078b8d..e371d18 100644
--- a/debian/control
+++ b/debian/control
@@ -9,6 +9,7 @@ Build-Depends: debhelper (>= 9),
                libgdal-dev,
                libgl1-mesa-dev | libgl-dev,
                libglu-dev,
+               libopenscenegraph-dev (>= 3.0.1-4~),
                pkg-kde-tools
 Standards-Version: 3.9.6
 Vcs-Browser: https://anonscm.debian.org/cgit/pkg-grass/libcitygml.git
@@ -80,3 +81,45 @@ Description: Utils of libcitygml - citygmltest
  .
  This package contains the citygmltest utility.
 
+Package: openscenegraph-plugin-citygml-shared
+Architecture: any
+Section: devel
+Depends: libcitygml2 (= ${binary:Version}),
+         ${shlibs:Depends},
+         ${misc:Depends},
+         ${libosg-share}
+Description: libcitygml OpenSceneGraph plugin (shared version)
+ libcitygml is a small and easy to use open source C++ library for parsing 
+ CityGML files in such a way that data can be easily exploited by 3D 
+ rendering applications (geometry data are tesselated and optimized for
+ rendering during parsing). For instance, it can be used to develop readers 
+ of CityGML files in many 3D based applications (OpenGL, OpenSceneGraph, ...) 
+ Most metadata are not lost, they are available through a per-node hashmap.
+ .
+ CityGML (City Geography Markup Language) is an XML-based schema for the 
+ modelling and exchange of georeferenced 3D city and landscape models that 
+ is quickly being adopted on an international level.
+ .
+ This package contains OpenSceneGraph plugin (.so version).
+
+Package: openscenegraph-plugin-citygml-static
+Architecture: any
+Section: devel
+Depends: libcitygml2 (= ${binary:Version}),
+         ${shlibs:Depends},
+         ${misc:Depends},
+         ${libosg-static}
+Description: libcitygml OpenSceneGraph plugin (static version)
+ libcitygml is a small and easy to use open source C++ library for parsing 
+ CityGML files in such a way that data can be easily exploited by 3D 
+ rendering applications (geometry data are tesselated and optimized for
+ rendering during parsing). For instance, it can be used to develop readers 
+ of CityGML files in many 3D based applications (OpenGL, OpenSceneGraph, ...) 
+ Most metadata are not lost, they are available through a per-node hashmap.
+ .
+ CityGML (City Geography Markup Language) is an XML-based schema for the 
+ modelling and exchange of georeferenced 3D city and landscape models that 
+ is quickly being adopted on an international level.
+ .
+ This package contains OpenSceneGraph plugin (.a version).
+
diff --git a/debian/gencontrol b/debian/gencontrol
new file mode 100644
index 0000000..c7bc71f
--- /dev/null
+++ b/debian/gencontrol
@@ -0,0 +1,9 @@
+LIBOSG_SHARE=`dpkg --get-selections | grep "libopenscenegraph[0-9]*[v5]*:.*\s*install" | awk '{print $1}' | awk -F: '{print $1}'`
+LIBOSG_VERSION=`dpkg -l $LIBOSG_SHARE | grep "^ii\s*$LIBOSG_SHARE" | awk '{print $3}' | sed 's/-.*//'`
+TMP1=`echo $LIBOSG_VERSION | awk -F '.' '{print $1}'`
+TMP2=`echo $LIBOSG_VERSION | awk -F '.' '{print $2}'`
+TMP3=`echo $LIBOSG_VERSION | awk -F '.' '{print $3}' | sed 's/~.*$//'`
+TMP3=$((TMP3+1))
+LIBOSG_VERSIONPLUS=$TMP1.$TMP2.$TMP3~
+echo $LIBOSG_VERSION
+dh_gencontrol -- -Vlibosg-share="$LIBOSG_SHARE" -Vlibosg-static="libopenscenegraph-dev (>= $LIBOSG_VERSION), libopenscenegraph-dev (<< $LIBOSG_VERSIONPLUS)"
diff --git a/debian/openscenegraph-plugin-citygml-shared.install b/debian/openscenegraph-plugin-citygml-shared.install
new file mode 100644
index 0000000..fd4b5ad
--- /dev/null
+++ b/debian/openscenegraph-plugin-citygml-shared.install
@@ -0,0 +1 @@
+usr/lib/*/osgPlugins-*/*.so
diff --git a/debian/openscenegraph-plugin-citygml-static.install b/debian/openscenegraph-plugin-citygml-static.install
new file mode 100644
index 0000000..2025369
--- /dev/null
+++ b/debian/openscenegraph-plugin-citygml-static.install
@@ -0,0 +1 @@
+usr/lib/*/osgPlugins-*/*.a
diff --git a/debian/rules b/debian/rules
index 3b6621a..c34530e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -13,12 +13,17 @@ override_dh_auto_clean:
 	dh_auto_clean
 	-rm -rf obj-*-*
 
+override_dh_auto_configure:
+	dh_auto_configure -- \
+		-DLIBCITYGML_OSGPLUGIN=ON \
+		-DLIB_INSTALL_DIR=/usr/lib/$(DEB_HOST_MULTIARCH)
+
 override_dh_install:
 	dh_install --list-missing
 
+override_dh_gencontrol:
+	sh debian/gencontrol
+
 override_dh_makeshlibs:
 	dh_makeshlibs -- -c0 -v$(CITYGML_VERSION)
 
-override_dh_auto_configure:
-	dh_auto_configure -- \
-		-DLIB_INSTALL_DIR=/usr/lib/$(DEB_HOST_MULTIARCH)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/libcitygml.git



More information about the Pkg-grass-devel mailing list