#!/usr/bin/make -f export DEB_BUILD_MAINT_OPTIONS = hardening=+all ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH)) CMAKE_CROSS_TEST_FLAGS = -DISTRINGSTREAM_SUPPORTS_HEXFLOAT_EXITCODE:STRING=1 endif %: dh $@ -Dsrc override_dh_clean: dh_clean -Xmuse/widgets/arrangercolumns.cpp~ \ -Xmuse/widgets/arrangercolumns.h~ -X*~ override_dh_auto_configure: dh_auto_configure -- -DLIB_INSTALL_DIR=/usr/lib -DENABLE_LV2_GTK2=OFF $(CMAKE_CROSS_TEST_FLAGS) execute_before_dh_auto_build: @echo 'blhc: ignore-line-regexp: .*istringstream does not support hexfloat.*' override_dh_install: dh_install -pmuse find $(CURDIR)/debian/muse/ -name "COPYING*" -delete find $(CURDIR)/debian/muse/ -name "LICENSE" -delete find $(CURDIR)/debian/muse/ -name "ChangeLog*" -delete find $(CURDIR)/debian/muse/ -name "*.win32" -delete # the icon has the wrong size, 150x150, so we scale it down for now convert $(CURDIR)/src/packaging/muse128x128.png -resize 128x128 \ $(CURDIR)/debian/muse/usr/share/icons/hicolor/128x128/apps/muse.png cd $(CURDIR)/debian/muse/usr/share/doc/muse && \ mv muse_html/single/documentation/ html/ && \ rm -rf muse_html execute_before_dh_fixperms: chmod 755 $(CURDIR)/debian/muse/usr/share/applications/io.github.muse_sequencer.Muse.desktop