| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
NULL = |
| 7 |
|
| 8 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 9 |
DPKG_EXPORT_BUILDFLAGS = 1 |
| 10 |
include /usr/share/dpkg/buildflags.mk |
| 11 |
|
| 12 |
export QT_SELECT := qt5 |
| 13 |
|
| 14 |
include /usr/share/dpkg/architecture.mk |
| 15 |
|
| 16 |
CONFIG = tests ofono upower |
| 17 |
ifeq ($(DEB_HOST_ARCH_OS),linux) |
| 18 |
CONFIG += udisks |
| 19 |
endif |
| 20 |
|
| 21 |
QT_MODULE_VERSION = $(shell cat .qmake.conf | grep MODULE_VERSION | sed -re 's/MODULE_VERSION\s*=\s*([^\s]+)\s*/\1/') |
| 22 |
|
| 23 |
%: |
| 24 |
dh $@ --with pkgkde_symbolshelper |
| 25 |
|
| 26 |
override_dh_auto_configure: |
| 27 |
@echo "# Running syncqt.pl (QT_MODULE_VERSION=$(QT_MODULE_VERSION))" |
| 28 |
cd src/systeminfo/ && perl /usr/lib/qt5/bin/syncqt.pl -module QtSystemInfo -version $(QT_MODULE_VERSION) -outdir $(CURDIR) -builddir $(CURDIR) $(CURDIR) && cd - 1>/dev/null |
| 29 |
cd src/publishsubscribe/ && perl /usr/lib/qt5/bin/syncqt.pl -module QtPublishSubscribe -version $(QT_MODULE_VERSION) -outdir $(CURDIR) -builddir $(CURDIR) $(CURDIR) && cd - 1>/dev/null |
| 30 |
cd src/serviceframework/ && perl /usr/lib/qt5/bin/syncqt.pl -module QtServiceFramework -version $(QT_MODULE_VERSION) -outdir $(CURDIR) -builddir $(CURDIR) $(CURDIR) && cd - 1>/dev/null |
| 31 |
dh_auto_configure -- CONFIG+="$(CONFIG)" QT_BUILD_PARTS+=tests |
| 32 |
|
| 33 |
override_dh_auto_install: |
| 34 |
dh_auto_install --no-parallel |
| 35 |
|
| 36 |
|
| 37 |
find $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig -type f -name '*.pc' \ |
| 38 |
-exec sed -i -e 's/$(DEB_HOST_MULTIARCH)\/$(DEB_HOST_MULTIARCH)/$(DEB_HOST_MULTIARCH)/g' {} \; |
| 39 |
|
| 40 |
|
| 41 |
rm -f debian/tmp/usr/lib/*/*.la |
| 42 |
|
| 43 |
|
| 44 |
rm -f debian/tmp/usr/lib/*/qt5/examples/examples.pro |
| 45 |
|
| 46 |
override_dh_missing: |
| 47 |
dh_missing --fail-missing |
| 48 |
|
| 49 |
override_dh_auto_test: |
| 50 |
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) |
| 51 |
mkdir -p $(CURDIR)/debian/test-home/ |
| 52 |
env CURDIR=$(CURDIR) \ |
| 53 |
HOME=$(CURDIR)/debian/test-home \ |
| 54 |
XDG_DATA_HOME=$(CURDIR)/debian/test-home/.local/share \ |
| 55 |
LD_LIBRARY_PATH=$(CURDIR)/lib \ |
| 56 |
dbus-test-runner --keep-env --bus-type=both -m 600 -t debian/run-tests.sh |
| 57 |
endif |
| 58 |
|
| 59 |
override_dh_clean: |
| 60 |
rm -Rfv $(CURDIR)/debian/test-home/ |
| 61 |
dh_clean |
| 62 |
|
| 63 |
get-orig-source: |
| 64 |
uscan --noconf --force-download --rename --download-current-version --destdir=.. |