[ossim-plugins] 10/11: Enable SQLite plugin.
Sebastiaan Couwenberg
sebastic at moszumanska.debian.org
Sat May 28 15:18:36 UTC 2016
This is an automated email from the git hooks/post-receive script.
sebastic pushed a commit to branch master
in repository ossim-plugins.
commit 9a2e82eec52ae2bb5fa517a5e1a885cc373382bc
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date: Sat May 28 16:58:56 2016 +0200
Enable SQLite plugin.
---
debian/control | 30 +++++++++++++++++++++++++++++-
debian/ossim-plugin-sqlite.install | 1 +
debian/patches/series | 1 +
debian/patches/sqlite.patch | 29 +++++++++++++++++++++++++++++
debian/rules | 7 ++++++-
5 files changed, 66 insertions(+), 2 deletions(-)
diff --git a/debian/control b/debian/control
index bd95a44..3a8584c 100644
--- a/debian/control
+++ b/debian/control
@@ -14,6 +14,7 @@ Build-Depends: cmake (>= 2.8),
libossim-dev (>= 1.8.20.3),
libpng-dev,
libpodofo-dev,
+ libsqlite3-dev,
libtiff-dev
Standards-Version: 3.9.8
Vcs-Browser: https://anonscm.debian.org/cgit/pkg-grass/ossim-plugins.git
@@ -32,7 +33,8 @@ Recommends: ossim-plugin-geopdf (= ${binary:Version}),
ossim-plugin-libraw (= ${binary:Version}),
ossim-plugin-ndf (= ${binary:Version}),
ossim-plugin-png (= ${binary:Version}),
- ossim-plugin-registration (= ${binary:Version})
+ ossim-plugin-registration (= ${binary:Version}),
+ ossim-plugin-sqlite (= ${binary:Version})
Description: OSSIM core plugins
Open Source Software Image Map (OSSIM) is a high performance engine for
remote sensing, image processing, geographical information systems and
@@ -262,3 +264,29 @@ Description: OSSIM registration plugin
.
This package contains the OSSIM registration plugin.
+Package: ossim-plugin-sqlite
+Architecture: any
+Section: libs
+Depends: ${shlibs:Depends},
+ ${misc:Depends}
+Description: OSSIM SQLite plugin
+ Open Source Software Image Map (OSSIM) is a high performance engine for
+ remote sensing, image processing, geographical information systems and
+ photogrammetry. It has been actively developed since 1996.
+ .
+ Designed as a series of high performance software libraries, it is
+ written in C++ employing the latest techniques in object-oriented
+ software design.
+ .
+ The library provides advanced remote sensing, image processing, and
+ geo-spatial functionality. A quick summary of OSSIM functionality
+ includes ortho-rectification, precision terrain correction, rigorous
+ sensor models, very large mosaics, and cross sensor fusions, a wide
+ range of map projections and datums, and a large range of commercial
+ and government data formats. The architecture of the library supports
+ parallel processing with mpi (not enabled), a dynamic plugin architecture,
+ and dynamically connectable objects allowing rapid prototyping of custom
+ image processing chains.
+ .
+ This package contains the OSSIM SQLite plugin.
+
diff --git a/debian/ossim-plugin-sqlite.install b/debian/ossim-plugin-sqlite.install
new file mode 100644
index 0000000..e79afbf
--- /dev/null
+++ b/debian/ossim-plugin-sqlite.install
@@ -0,0 +1 @@
+usr/lib/ossim/plugins/libossimsqlite_plugin.so
diff --git a/debian/patches/series b/debian/patches/series
index 09ee5a3..ff3c88a 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
cmake.patch
+sqlite.patch
diff --git a/debian/patches/sqlite.patch b/debian/patches/sqlite.patch
new file mode 100644
index 0000000..266d706
--- /dev/null
+++ b/debian/patches/sqlite.patch
@@ -0,0 +1,29 @@
+Description: Add support to manually specify SQLite library and include dirs.
+Author: Bas Couwenberg <sebastic at debian.org>
+
+--- a/ossim_plugins/sqlite/CMakeLists.txt
++++ b/ossim_plugins/sqlite/CMakeLists.txt
+@@ -11,13 +11,18 @@ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOUR
+ set(requiredLibs)
+
+ # SQLite - Required:
+-find_package(SQLITE)
+-if(SQLITE_FOUND)
++IF(SQLITE_INCLUDE_DIR AND SQLITE_LIBRARY)
+ include_directories( ${SQLITE_INCLUDE_DIR} )
+ SET(requiredLibs ${requiredLibs} ${SQLITE_LIBRARY})
+-else(SQLITE_FOUND)
+- message(FATAL_ERROR "Could not find sqlite")
+-endif(SQLITE_FOUND)
++ELSE(SQLITE_INCLUDE_DIR AND SQLITE_LIBRARY)
++ find_package(SQLITE)
++ if(SQLITE_FOUND)
++ include_directories( ${SQLITE_INCLUDE_DIR} )
++ SET(requiredLibs ${requiredLibs} ${SQLITE_LIBRARY})
++ else(SQLITE_FOUND)
++ message(FATAL_ERROR "Could not find sqlite")
++ endif(SQLITE_FOUND)
++ENDIF(SQLITE_INCLUDE_DIR AND SQLITE_LIBRARY)
+
+ # PNG - Required:
+ find_package(PNG)
diff --git a/debian/rules b/debian/rules
index b63b570..b3702ab 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,6 +3,8 @@
# Enable hardening build flags
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
+DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+
%:
dh $@ --buildsystem cmake \
--sourcedirectory=$(CURDIR)/ossim_plugins \
@@ -20,9 +22,12 @@ CMAKE_OPTS = \
-DBUILD_OSSIMNDF_PLUGIN=ON \
-DBUILD_OSSIMPNG_PLUGIN=ON \
-DBUILD_OSSIMREGISTRATION_PLUGIN=ON \
+ -DBUILD_OSSIMSQLITE_PLUGIN=ON \
-DBUILD_SHARED_LIBS=ON \
-DPODOFO_INCLUDE_DIR=/usr/include/podofo \
- -DPODOFO_LIBRARY=/usr/lib/libpodofo.so
+ -DPODOFO_LIBRARY=/usr/lib/libpodofo.so \
+ -DSQLITE_INCLUDE_DIR=/usr/include \
+ -DSQLITE_LIBRARY=/usr/lib/$(DEB_HOST_MULTIARCH)/libsqlite3.so
override_dh_auto_configure:
dh_auto_configure -- $(CMAKE_OPTS)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/ossim-plugins.git
More information about the Pkg-grass-devel
mailing list