Skip to content

Commit 2fc799b

Browse files
committed
[FEATURE] add oracle provider
1 parent c67fb81 commit 2fc799b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+14360
-759
lines changed

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@ IF (WITH_SPATIALITE)
7070
ENDIF (WITH_INTERNAL_SPATIALITE)
7171
ENDIF (WITH_SPATIALITE)
7272

73+
SET (WITH_ORACLE FALSE CACHE BOOL "Determines whether Oracle support should be built")
74+
IF(WITH_ORACLE)
75+
SET(HAVE_ORACLE TRUE)
76+
ENDIF(WITH_ORACLE)
77+
7378
# try to configure and build python bindings by default
7479
SET (WITH_BINDINGS TRUE CACHE BOOL "Determines whether python bindings should be built")
7580
IF (WITH_BINDINGS)

cmake_templates/qgsconfig.h.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@
3838

3939
#cmakedefine HAVE_MSSQL
4040

41+
#cmakedefine HAVE_ORACLE
42+
4143
#cmakedefine HAVE_PYTHON
4244

4345
#cmakedefine HAVE_TOUCH

debian/control.sid-oracle

Lines changed: 232 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,232 @@
1+
Source: qgis
2+
Section: science
3+
Priority: extra
4+
Maintainer: Quantum GIS developers <qgis-developer@lists.osgeo.org>
5+
Build-Depends:
6+
bison,
7+
cmake (>= 2.6),
8+
debhelper (>= 9),
9+
flex,
10+
grass-dev,
11+
libexpat1-dev,
12+
libfcgi-dev,
13+
libgdal1-dev,
14+
libgeos-dev (>= 3.0.0),
15+
libgsl0-dev,
16+
libpq-dev,
17+
libproj-dev,
18+
libqt4-dev (>=4.4.0),
19+
libqt4-opengl-dev,
20+
libqtwebkit-dev,
21+
libqwt-dev,
22+
libspatialite-dev,
23+
libsqlite3-dev,
24+
libspatialindex-dev,
25+
pkg-config,
26+
pyqt4-dev-tools,
27+
python,
28+
python-dev (>= 2.6.6-3~),
29+
python-qt4 (>=4.1.0),
30+
python-qt4-dev (>=4.1.0),
31+
python-sip (>= 4.5.0),
32+
python-sip-dev (>= 4.5.0),
33+
libosgearth-dev,
34+
libopenscenegraph-dev,
35+
git,
36+
doxygen,
37+
graphviz,
38+
txt2tags,
39+
xvfb, xauth, xfonts-base,
40+
oracle-instantclient11.2-devel
41+
Build-Conflicts: libqgis-dev, qgis-dev
42+
Standards-Version: 3.9.3
43+
X-Python-Version: current
44+
Homepage: http://qgis.org/
45+
46+
Package: qgis
47+
Architecture: any
48+
Depends: ${shlibs:Depends}, ${misc:Depends}, qgis-providers (= ${binary:Version}), qgis-common (= ${source:Version})
49+
Recommends: qgis-plugin-globe, qgis-plugin-grass, python-qgis
50+
Suggests: gpsbabel
51+
Conflicts: uim-qt3
52+
Description: Geographic Information System (GIS)
53+
A Geographic Information System (GIS) manages, analyzes, and displays
54+
databases of geographic information. Quantum GIS (QGIS) supports shape file
55+
viewing and editing, spatial data storage with PostgreSQL/PostGIS, projection
56+
on-the-fly, map composition, and a number of other features via a plugin
57+
interface. QGIS also supports display of various georeferenced raster and
58+
Digital Elevation Model (DEM) formats including GeoTIFF, Arc/Info ASCII Grid,
59+
and USGS ASCII DEM.
60+
61+
Package: qgis-common
62+
Architecture: all
63+
Depends: ${misc:Depends}
64+
Description: Quantum GIS - architecture-independent data
65+
Quantum GIS is a Geographic Information System (GIS) which manages, analyzes
66+
and display databases of geographic information.
67+
.
68+
This package contains architecture-independent supporting data files for use
69+
with Quantum GIS.
70+
71+
Package: libqgis{QGIS_ABI}
72+
Architecture: any
73+
Depends: ${shlibs:Depends}, ${misc:Depends}
74+
Replaces: qgis (<=0.9.2rc1), libqgis-core1, libqgis-gui1, libqgis0, libqgis1
75+
Description: Quantum GIS - shared libraries
76+
Quantum GIS is a Geographic Information System (GIS) which manages, analyzes
77+
and display databases of geographic information.
78+
.
79+
This package contains the shared core and gui library that provide an
80+
interface for plugins and stand-alone applications.
81+
82+
Package: libqgis-dev
83+
Architecture: any
84+
Section: libdevel
85+
Depends:
86+
grass-dev,
87+
libexpat1-dev,
88+
libgdal1-dev,
89+
libgeos-dev (>= 3.0.0),
90+
libgsl0-dev,
91+
libpq-dev,
92+
libproj-dev,
93+
libqgis{QGIS_ABI} (= ${binary:Version}),
94+
libqt4-dev (>=4.4.0),
95+
libsqlite3-dev,
96+
python-qt4 (>=4.1.0),
97+
python-qt4-dev (>=4.1.0),
98+
qt4-designer (>=4.4.0),
99+
${misc:Depends}
100+
Provides: qgis-dev
101+
Replaces: qgis-dev, libqgis1-dev, libqgis1.4.0-dev
102+
Description: Quantum GIS - development files
103+
Quantum GIS is a Geographic Information System (GIS) which manages, analyzes
104+
and display databases of geographic information.
105+
.
106+
This package contains the headers and libraries needed to develop plugins for
107+
Quantum GIS.
108+
109+
Package: qgis-plugin-grass
110+
Architecture: any
111+
Depends: qgis (= ${binary:Version}), qgis-plugin-grass-common (= ${source:Version}), ${shlibs:Depends}, ${misc:Depends}, grass{GRASS_ABI}
112+
Description: GRASS plugin for Quantum GIS
113+
Quantum GIS is a Geographic Information System (GIS) which manages, analyzes
114+
and display databases of geographic information.
115+
.
116+
This plugin enables GRASS data access in the Quantum GIS geographic data
117+
viewer.
118+
119+
Package: qgis-plugin-grass-common
120+
Architecture: all
121+
Depends: python, ${misc:Depends}
122+
Replaces: qgis-common (<< 1.5)
123+
Breaks: qgis-common (<< 1.5)
124+
Description: GRASS plugin for Quantum GIS - architecture-independent data
125+
Quantum GIS is a Geographic Information System (GIS) which manages, analyzes
126+
and display databases of geographic information.
127+
.
128+
This package contains architecture-independent supporting data files for use
129+
with the Quantum GIS GRASS plugin.
130+
131+
Package: python-qgis
132+
Section: python
133+
Architecture: any
134+
Depends: python-qt4 (>=4.1.0), python-sip (>= 4.5.0), python-qgis-common (= ${source:Version}), python-pyspatialite, python-psycopg2, python-qscintilla2, ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}
135+
Description: Python bindings to Quantum GIS
136+
Quantum GIS is a Geographic Information System (GIS) which manages, analyzes
137+
and display databases of geographic information.
138+
.
139+
This package contains the files for the Python support.
140+
141+
Package: python-qgis-common
142+
Section: python
143+
Architecture: all
144+
Provides: ${python:Provides}
145+
Depends: gdal-bin, python-gdal, libjs-jquery, libjs-underscore, ${misc:Depends}
146+
Description: Python bindings to Quantum GIS - architecture-independent files
147+
Quantum GIS is a Geographic Information System (GIS) which manages, analyzes
148+
and display databases of geographic information.
149+
.
150+
This package contains architecture-independent files for the Quantum GIS
151+
Python bindings.
152+
153+
Package: qgis-providers
154+
Architecture: any
155+
Depends: qgis-providers-common (= ${source:Version}), ${shlibs:Depends}, ${misc:Depends}
156+
Replaces: qgis (<= 1.6)
157+
Breaks: qgis (<= 1.6)
158+
Description: collection of data providers to Quantum GIS
159+
Quantum GIS is a Geographic Information System (GIS) which manages, analyzes
160+
and display databases of geographic information.
161+
.
162+
This package contains the provider plugins for Quantum GIS.
163+
164+
Package: qgis-providers-common
165+
Architecture: all
166+
Replaces: qgis-common (<= 1.6)
167+
Breaks: qgis-common (<= 1.6)
168+
Depends: ${misc:Depends}
169+
Description: collection of data providers to Quantum GIS - architecture-independent files
170+
Quantum GIS is a Geographic Information System (GIS) which manages, analyzes
171+
and display databases of geographic information.
172+
.
173+
This package contains architecture-independent files for the Quantum GIS
174+
providers.
175+
176+
Package: qgis-mapserver
177+
Architecture: any
178+
Depends: qgis-providers (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
179+
Description: Quantum GIS mapserver
180+
Quantum GIS is a Geographic Information System (GIS) which manages, analyzes
181+
and display databases of geographic information.
182+
.
183+
This package contains the Quantum GIS mapserver.
184+
185+
Package: qgis-sqlanywhere
186+
Architecture: any
187+
Depends: ${shlibs:Depends}, ${misc:Depends}
188+
Conflicts: qgis-sqlanywhere1.7.0, qgis-sqlanywhere1.7.1, qgis-sqlanywhere1.8.0
189+
Description: Quantum GIS sql anywhere plugin and provider
190+
Quantum GIS is a Geographic Information System (GIS) which manages, analyzes
191+
and display databases of geographic information.
192+
.
193+
This package contains the Quantum GIS sqlanywhere plugin and provider.
194+
195+
Package: qgis-api-doc
196+
Architecture: all
197+
Section: doc
198+
Depends: libjs-jquery
199+
Description: Quantum GIS API documentation
200+
Quantum GIS is a Geographic Information System (GIS) which manages, analyzes
201+
and display databases of geographic information.
202+
.
203+
This package contains the Quantum GIS API documentation.
204+
205+
Package: qgis-plugin-globe
206+
Architecture: any
207+
Depends: qgis (= ${binary:Version}), qgis-plugin-globe-common (= ${source:Version}), ${shlibs:Depends}, ${misc:Depends}
208+
Description: OSG globe plugin for Quantum GIS
209+
Quantum GIS is a Geographic Information System (GIS) which manages, analyzes
210+
and display databases of geographic information.
211+
.
212+
This plugin enables 3D viewing using OSG globe in the Quantum GIS.
213+
214+
Package: qgis-plugin-globe-common
215+
Architecture: all
216+
Description: OSG GLOBE plugin for Quantum GIS - architecture-independent data
217+
Quantum GIS is a Geographic Information System (GIS) which manages, analyzes
218+
and display databases of geographic information.
219+
.
220+
This package contains architecture-independent supporting data files for use
221+
with the Quantum GIS GLOBE plugin.
222+
223+
Package: qgis-oracle-provider
224+
Architecture: any
225+
Depends: ${shlibs:Depends}, ${misc:Depends}
226+
Section: contrib/databases
227+
Description: Quantum GIS oracle provider
228+
Quantum GIS is a Geographic Information System (GIS) which manages, analyzes
229+
and display databases of geographic information.
230+
.
231+
This package contains the Quantum GIS oracle provider.
232+
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
usr/lib/qgis/plugins/liboracleprovider.so
2+
usr/lib/{DEB_BUILD_GNU_TYPE}/qt4/plugins/sqldrivers/libqsqlocispatial.so

debian/rules

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ifeq (,$(DISTRIBUTION))
1616
DISTRIBUTION := $(shell dpkg-parsechangelog --format rfc822 | sed -ne "s/^Distribution: //p")
1717
endif
1818

19-
ifneq ($(DISTRIBUTION),$(findstring $(DISTRIBUTION),"squeeze wheezy lucid maverick natty oneiric precise"))
19+
ifneq ($(DISTRIBUTION),$(findstring $(DISTRIBUTION),"squeeze wheezy lucid maverick natty oneiric precise sid-oracle"))
2020
DISTRIBUTION := sid
2121
endif
2222

@@ -71,6 +71,10 @@ else
7171
CMAKE_OPTS += -D WITH_GLOBE=TRUE
7272
endif
7373

74+
ifneq (,$(findstring -oracle,$(DISTRIBUTION)))
75+
CMAKE_OPTS += -D WITH_ORACLE=TRUE
76+
endif
77+
7478
ifneq (,$(findstring $(DISTRIBUTION),"wheezy sid"))
7579
CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS)
7680
CFLAGS := $(shell dpkg-buildflags --get CFLAGS) $(CPPFLAGS)
@@ -107,6 +111,7 @@ endif
107111
define gentemplate
108112
$(2): $(1)
109113
sed \
114+
-e "s/{DEB_BUILD_GNU_TYPE}/$(DEB_BUILD_GNU_TYPE)/g" \
110115
-e "s/{QGIS_ABI}/$(QGIS_ABI)/g" \
111116
-e "s/{GRASS}/$(GRASS)/g" \
112117
-e "s/{GRASS_ABI}/$(GRASS_ABI)/g" $$^ >$$@

0 commit comments

Comments
 (0)