@@ -109,17 +109,18 @@ endif
109
109
110
110
ifneq (,$(WITH_ORACLE ) )
111
111
ifeq ($(DEB_BUILD_ARCH ) ,amd64)
112
- CMAKE_OPTS += \
113
- -DWITH_ORACLE=TRUE \
114
- -DORACLE_INCLUDEDIR=/usr/include/oracle/12.1/client64/ \
115
- -DORACLE_LIBDIR=/usr/lib/oracle/12.1/client64/lib/
112
+ ORACLE_INCLUDEDIR=/usr/include/oracle/12.1/client64/
113
+ ORACLE_LIBDIR=/usr/lib/oracle/12.1/client64/lib/
116
114
endif
117
115
ifeq ($(DEB_BUILD_ARCH ) ,i386)
116
+ ORACLE_INCLUDEDIR=/usr/include/oracle/12.1/client/
117
+ ORACLE_LIBDIR=/usr/lib/oracle/12.1/client/lib/
118
+ endif
119
+
118
120
CMAKE_OPTS += \
119
121
-DWITH_ORACLE=TRUE \
120
- -DORACLE_INCLUDEDIR=/usr/include/oracle/12.1/client/ \
121
- -DORACLE_LIBDIR=/usr/lib/oracle/12.1/client/lib/
122
- endif
122
+ -DORACLE_LIBDIR=$(ORACLE_LIBDIR) \
123
+ -DORACLE_INCLUDEDIR=$(ORACLE_INCLUDEDIR)
123
124
endif
124
125
125
126
ifneq (,$(findstring $(DISTRIBUTION ) ,"sid stretch jessie") )
@@ -277,17 +278,20 @@ override_dh_auto_install:
277
278
278
279
# qgis binaries
279
280
install -o root -g root -m 755 -d $(CURDIR)/debian/qgis/usr/bin
280
- install -o root -g root -m 755 $(CURDIR)/debian/tmp/usr/bin/qgis $(CURDIR)/debian/qgis/usr/bin
281
- install -o root -g root -m 755 $(CURDIR)/debian/tmp/usr/bin/qbrowser $(CURDIR)/debian/qgis/usr/bin
281
+ install -o root -g root -m 755 $(CURDIR)/debian/tmp/usr/bin/qgis $(CURDIR)/debian/qgis/usr/bin/qgis.bin
282
+ install -o root -g root -m 755 $(CURDIR)/debian/tmp/usr/bin/qbrowser $(CURDIR)/debian/qgis/usr/bin/qbrowser.bin
282
283
283
284
$(RM) $(CURDIR)/debian/tmp/usr/bin/qgis
284
285
$(RM) $(CURDIR)/debian/tmp/usr/bin/qbrowser
285
286
286
287
# qgis binary wrappers
287
- install -o root -g root -m 755 -d $(CURDIR)/debian/qgis-plugin-grass/usr/bin
288
- sed -r -e "s/\{GRASS\}/$(GRASS)/g" $(CURDIR)/debian/qgis.sh.in >$(CURDIR)/debian/qgis.sh
289
- install -o root -g root -m 755 $(CURDIR)/debian/qgis.sh $(CURDIR)/debian/qgis-plugin-grass/usr/bin/qgis
290
- install -o root -g root -m 755 $(CURDIR)/debian/qgis.sh $(CURDIR)/debian/qgis-plugin-grass/usr/bin/qbrowser
288
+ sed -r \
289
+ -e "s/\{GRASS\}/$(GRASS)/g" \
290
+ -e "s# \{ORACLE_LIBDIR\}#$(ORACLE_LIBDIR)#g" \
291
+ $(CURDIR)/debian/qgis.sh.in >$(CURDIR)/debian/qgis.sh
292
+
293
+ install -o root -g root -m 755 $(CURDIR)/debian/qgis.sh $(CURDIR)/debian/qgis/usr/bin/qgis
294
+ install -o root -g root -m 755 $(CURDIR)/debian/qgis.sh $(CURDIR)/debian/qgis/usr/bin/qbrowser
291
295
292
296
override_dh_install :
293
297
# Don't ship srs.db, automatically updated in postinst with crssync
@@ -338,10 +342,18 @@ override_dh_compress:
338
342
dh_compress --exclude=pdf
339
343
340
344
override_dh_makeshlibs :
345
+ ifneq (,$(WITH_ORACLE ) )
346
+ dh_makeshlibs -Xqgis-plugin-grass -Xlibqgis-customwidgets -Xqgis-provider-oracle -- -c0 -v$(QGIS_VERSION)
347
+ else
341
348
dh_makeshlibs -Xqgis-plugin-grass -Xlibqgis-customwidgets -- -c0 -v$(QGIS_VERSION)
349
+ endif
342
350
343
351
override_dh_shlibdeps :
352
+ ifneq (,$(WITH_ORACLE ) )
353
+ dh_shlibdeps -l/usr/lib/$(GRASS)/lib -l$(ORACLE_LIBDIR)
354
+ else
344
355
dh_shlibdeps -l/usr/lib/$(GRASS)/lib
356
+ endif
345
357
346
358
override_dh_strip :
347
359
dh_strip --dbg-package=qgis-dbg
0 commit comments