Skip to content

Commit 24ba638

Browse files
committed
Make QSPATIALITE optional, but still include it in osgeo4w and debian package
1 parent 9768b13 commit 24ba638

File tree

6 files changed

+14
-4
lines changed

6 files changed

+14
-4
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ SET (WITH_SPATIALITE TRUE CACHE BOOL "Determines whether SPATIALITE support shou
6161
IF (WITH_SPATIALITE)
6262
SET (WITH_INTERNAL_SPATIALITE FALSE CACHE BOOL "Determines whether SPATIALITE support should be built internally")
6363
SET (WITH_PYSPATIALITE FALSE CACHE BOOL "Determines whether PYSPATIALITE should be built")
64-
SET (WITH_QSPATIALITE TRUE CACHE BOOL "Determines whether QSPATIALITE sql driver should be built")
64+
SET (WITH_QSPATIALITE FALSE CACHE BOOL "Determines whether QSPATIALITE sql driver should be built")
6565
IF(WITH_INTERNAL_SPATIALITE)
6666
SET(SPATIALITE_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/src/core/spatialite/headers)
6767
SET(HAVE_SPATIALITE TRUE)

debian/changelog

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ qgis (1.9.0) UNRELEASED; urgency=low
1111
* add python-psycopg2 and python-qscintilla2 dependency to python-qgis
1212
* add support for ubuntu quantal and raring
1313
* remove js files and add libjs-jquery/libjs-underscore dependency
14-
* temporarily disable mssql provider until migrated to new vector api.
14+
* add spatialite qt sql driver
1515

16-
-- Jürgen E. Fischer <jef@norbit.de> Thu, 31 Jan 2013 13:34:24 +0100
16+
-- Jürgen E. Fischer <jef@norbit.de> Tue, 19 Feb 2013 20:05:55 +0100
1717

1818
qgis (1.8.0) UNRELEASED; urgency=low
1919

debian/qgis-providers.install.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ usr/lib/qgis/plugins/libspatialiteprovider.so
1212
usr/lib/qgis/plugins/libwfsprovider.so
1313
usr/lib/qgis/plugins/libwmsprovider.so
1414
usr/lib/qgis/plugins/libwcsprovider.so
15-
usr/lib/{DEB_BUILD_GNU_TYPE}/qt4/plugins/sqldrivers/libqsqlspatialite.so
15+
{QT_PLUGIN_DIR}/sqldrivers/libqsqlspatialite.so

debian/rules

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,19 @@ CMAKE_OPTS := \
4747
-D BINDINGS_GLOBAL_INSTALL=TRUE \
4848
-D PEDANTIC=TRUE \
4949
-D WITH_SPATIALITE=TRUE \
50+
-D WITH_QSPATIALITE=TRUE \
5051
-D WITH_MAPSERVER=TRUE \
5152
-D QGIS_CGIBIN_SUBDIR=/usr/lib/cgi-bin \
5253
-D WITH_APIDOC=TRUE
5354

5455
MAKEFLAGS += VERBOSE=YES
5556

57+
ifeq (,$(findstring $(DISTRIBUTION),"squeeze lucid maverick natty oneiric"))
58+
QT_PLUGIN_DIR = usr/lib/$(DEB_BUILD_GNU_TYPE)/qt4/plugins
59+
else
60+
QT_PLUGIN_DIR = usr/lib/qt4/plugins
61+
endif
62+
5663
ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
5764
NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
5865
MAKEFLAGS += -j$(NUMJOBS)
@@ -118,6 +125,7 @@ define gentemplate
118125
$(2): $(1)
119126
sed \
120127
-e "s/{DEB_BUILD_GNU_TYPE}/$(DEB_BUILD_GNU_TYPE)/g" \
128+
-e "s/{QT_PLUGIN_DIR}/$(QT_PLUGIN_DIR)/g" \
121129
-e "s/{QGIS_ABI}/$(QGIS_ABI)/g" \
122130
-e "s/{GRASS}/$(GRASS)/g" \
123131
-e "s/{GRASS_ABI}/$(GRASS_ABI)/g" $$^ >$$@

ms-windows/osgeo4w/package-nightly.cmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ cmake -G "Visual Studio 9 2008" ^
108108
-D SITE="qgis.org" ^
109109
-D PEDANTIC=TRUE ^
110110
-D WITH_SPATIALITE=TRUE ^
111+
-D WITH_QSPATIALITE=TRUE ^
111112
-D WITH_MAPSERVER=TRUE ^
112113
-D WITH_ASTYLE=TRUE ^
113114
-D WITH_GLOBE=TRUE ^

ms-windows/osgeo4w/package.cmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ set GRASS_PREFIX=%O4W_ROOT%/apps/grass/grass-%GRASS_VERSION%
105105
cmake -G "Visual Studio 9 2008" ^
106106
-D PEDANTIC=TRUE ^
107107
-D WITH_SPATIALITE=TRUE ^
108+
-D WITH_QSPATIALITE=TRUE ^
108109
-D WITH_MAPSERVER=TRUE ^
109110
-D WITH_GLOBE=TRUE ^
110111
-D WITH_TOUCH=TRUE ^

0 commit comments

Comments
 (0)