From 115093600bb917ed14ff6ac6511af1ec6ab837ad Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Sat, 25 Sep 2021 08:07:06 +0200 Subject: [PATCH] limit firebird/ibase support only where available also explicitly enable/disable it at cmake time --- debian/control | 2 +- debian/rules | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/debian/control b/debian/control index 4f47473..4483c9f 100644 --- a/debian/control +++ b/debian/control @@ -5,7 +5,7 @@ Uploaders: Patrick Franz Build-Depends: cmake (>= 3.18~), debhelper-compat (= 13), dh-exec, - firebird-dev, + firebird-dev [kfreebsd-any linux-any], libatspi2.0-dev, libb2-dev, libcups2-dev, diff --git a/debian/rules b/debian/rules index 731a901..c73e9bb 100755 --- a/debian/rules +++ b/debian/rules @@ -6,6 +6,12 @@ include /usr/share/dpkg/architecture.mk export DEB_BUILD_MAINT_OPTIONS = hardening=+all +ifneq (,$(filter libqt5sql5-ibase,$(shell dh_listpackages))) + extra_cmake_args += -DFEATURE_sql_ibase=ON +else + extra_cmake_args += -DFEATURE_sql_ibase=OFF +endif + %: dh $@ --with pkgkde_symbolshelper --buildsystem=cmake+ninja @@ -52,7 +58,8 @@ override_dh_auto_configure: -DFEATURE_sql_psql=ON \ -DFEATURE_sql_sqlite=ON \ -DFEATURE_system_sqlite=ON \ - -DCMAKE_BUILD_RPATH_USE_ORIGIN=ON + -DCMAKE_BUILD_RPATH_USE_ORIGIN=ON \ + $(extra_cmake_args) override_dh_auto_install-arch: