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 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
|
#!/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
export LLVM_INSTALL_DIR := $(shell llvm-config --prefix)
# Archs that do not build depend on QtWebkit do not ship qwebview.
no_qwebview_archs := m68k sparc64
%:
dh $@ --with pkgkde_symbolshelper
override_dh_auto_clean:
dh_auto_clean
rm -fv .qmake.cache
rm -fv debian/qttools5-dev-tools.install
build-doc-tools:
# Build qdoc, qhelpgenerator and qtattributionsscanner tools
cd src; qmake CONFIG+=disable_external_rpath DEFINES+=QDOC_PASS_ISYSTEM
dh_auto_build -- -Csrc sub-qdoc sub-qtattributionsscanner
cd src/assistant; qmake
dh_auto_build -- -Csrc/assistant sub-qhelpgenerator
override_dh_auto_build-indep: build-doc-tools
cd src/qdoc; qmake
cd src/assistant/help; qmake
dh_auto_build -- docs
ifeq ($(DEB_HOST_ARCH),$(DEB_BUILD_ARCH))
ifneq (,$(filter qdoc-qt5,$(shell dh_listpackages)))
override_dh_auto_build-arch: build-doc-tools
# Rebuild the internal assistant.qch which is used as a resource
cd src/assistant/assistant/doc/internal; qmake
dh_auto_build -- -Csrc/assistant/assistant/doc/internal docs
mv doc/assistant.qch src/assistant/assistant/assistant.qch
dh_auto_build
endif
endif
override_dh_auto_install-arch:
dh_auto_install
# Remove libtool-like files
rm -f debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/*.la
# Remove CMake files for plugins.
rm -fv debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/cmake/Qt5Designer/*Plugin.cmake
override_dh_auto_install-indep:
dh_auto_build -- INSTALL_ROOT=$(CURDIR)/debian/tmp install_docs
override_dh_install:
ifeq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH), $(no_qwebview_archs)))
grep -v qwebview debian/qttools5-dev-tools.install.in >> debian/qttools5-dev-tools.install
else
cp debian/qttools5-dev-tools.install.in debian/qttools5-dev-tools.install
endif
dh_install --fail-missing
install -D -p -m0644 src/assistant/assistant/images/assistant-128.png \
debian/qt5-assistant/usr/share/pixmaps/assistant-qt5.png
install -D -p -m0644 src/designer/src/designer/images/designer.png \
debian/qttools5-dev-tools/usr/share/pixmaps/designer-qt5.png
install -D -p -m0644 src/linguist/linguist/images/icons/linguist-128-32.png \
debian/qttools5-dev-tools/usr/share/pixmaps/linguist-qt5.png
override_dh_link:
dh_link
ls debian/qttools5-dev-tools/usr/lib/qt5/bin | xargs -t -I {} \
dh_link -pqttools5-dev-tools usr/lib/qt5/bin/{} usr/lib/$(DEB_HOST_MULTIARCH)/qt5/bin/{}
dh_link -pqdbus-qt5 usr/lib/qt5/bin/qdbus usr/lib/$(DEB_HOST_MULTIARCH)/qt5/bin/qdbus
dh_link -pqdoc-qt5 usr/lib/qt5/bin/qdoc usr/lib/$(DEB_HOST_MULTIARCH)/qt5/bin/qdoc
dh_link -pqt5-assistant usr/lib/qt5/bin/assistant usr/lib/$(DEB_HOST_MULTIARCH)/qt5/bin/assistant
override_dh_auto_test-indep:
|