1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
|
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
include /usr/share/dpkg/architecture.mk
export QT_SELECT := qt5
%:
dh $@ --with pkgkde_symbolshelper
override_dh_auto_configure:
ifneq ($(DEB_HOST_ARCH),$(DEB_BUILD_ARCH))
cd src/qtwaylandscanner && \
g++ qtwaylandscanner.cpp -I/usr/include/$(DEB_BUILD_MULTIARCH)/qt5 \
-I/usr/include/$(DEB_BUILD_MULTIARCH)/qt5/QtCore \
-fPIC -lQt5Core -o $(CURDIR)/qtwaylandscanner_native
dh_auto_configure -- QMAKE_QMAKE=/usr/bin/$(DEB_HOST_GNU_TYPE)-qmake \
QT_TOOL.qtwaylandscanner.binary=$(CURDIR)/qtwaylandscanner_native \
PKG_CONFIG_LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig:/usr/share/pkgconfig
else
dh_auto_configure -- QT_BUILD_PARTS+=tests
endif
override_dh_auto_build-indep:
dh_auto_build -- docs
override_dh_auto_install-indep:
dh_auto_build -- INSTALL_ROOT=$(CURDIR)/debian/tmp install_docs
override_dh_auto_install-arch:
dh_auto_install
# Remove libtool-like file
rm -vf debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libQt5WaylandCompositor.la
rm -fv debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libQt5WaylandClient.la
# Remove private elements.
rm -rvf debian/tmp/usr/include/$(DEB_HOST_MULTIARCH)/qt5/QtWaylandCompositor/*/QtWaylandCompositor/private
rm -rvf debian/tmp/usr/include/$(DEB_HOST_MULTIARCH)/qt5/QtWaylandClient/*/QtWaylandClient/private/
rm -fv debian/tmp/usr/lib/*/qt5/mkspecs/modules/qt_lib_*_private.pri
override_dh_missing:
dh_missing --fail-missing
override_dh_link:
dh_link -pqtwayland5-dev-tools \
usr/lib/qt5/bin/qtwaylandscanner usr/lib/$(DEB_HOST_MULTIARCH)/qt5/bin/qtwaylandscanner
override_dh_auto_test-arch:
ifneq (,$(filter $(DEB_HOST_ARCH),mips mipsel))
# mips/mipsel: double free or corruption, unreproducible on porterboxes
-xvfb-run -a dh_auto_test -- -Ctests/auto
else
xvfb-run -a dh_auto_test -- -Ctests/auto
endif
override_dh_auto_test-indep:
|