#!/usr/bin/make -f include /usr/share/dpkg/architecture.mk export QT_SELECT = qt5 export DEB_BUILD_MAINT_OPTIONS = hardening=+all # Optimize with O3 to make the computationally expensive higher levels faster. ifeq (,$(filter noopt,$(DEB_BUILD_OPTIONS))) export DEB_CXXFLAGS_MAINT_APPEND = -O3 endif # List of architectures which have Qt5WebView. WEBVIEW_ARCHS = amd64 arm64 armhf i386 mipsel # Everywhere else, set a cmake flag to fall back to launching a web browser. ifeq (,$(filter $(WEBVIEW_ARCHS),$(DEB_HOST_ARCH))) WEBVIEW_FLAG = -DPENTOBI_OPEN_HELP_EXTERNALLY=ON endif %: dh $@ override_dh_auto_configure: dh_auto_configure -- \ -DBUILD_TESTING=ON \ -DCMAKE_INSTALL_BINDIR=/usr/games \ -DCMAKE_INSTALL_DATADIR=/usr/share/games \ -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ -DPENTOBI_BUILD_KDE_THUMBNAILER=ON \ $(WEBVIEW_FLAG) # dh_makeshlibs not needed, the KDE thumbnailer .so file is a plugin. override_dh_makeshlibs: