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
|
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export QT_SELECT=qt5
%:
dh $@ --with autoreconf
QtDir=$(shell pkg-config --variable=libdir Qt5Core)
QtIncDir=$(shell pkg-config --variable=includedir Qt5Core)
override_dh_auto_configure:
dh_auto_configure -- \
CFLAGS="$(CFLAGS)" \
CPPFLAGS="$(CPPFLAGS)" \
CXXFLAGS="$(CXXFLAGS)" \
LDFLAGS="$(LDFLAGS)" \
--host=$(DEB_HOST_GNU_TYPE) \
--build=$(DEB_BUILD_GNU_TYPE) \
--mandir=\$${prefix}/share/man \
--infodir=\$${prefix}/share/info \
--with-Qt-lib-dir=$(QtDir) \
--with-Qt-include-dir=$(QtIncDir) \
--enable-profile=no
override_dh_auto_clean:
# dh_auto_clean
rm -f src/*/*moc* src/qtui/*.h src/qtui/*.cc
find -name Makefile.in -execdir rm '{}' +
override_dh_auto_install:
$(MAKE) DESTDIR=$(CURDIR)/debian/mm3d install
# cp desktop/mm3d.desktop debian/mm3d/usr/share/applications/
rm -rf $(CURDIR)/debian/mm3d/usr/share/mm3d/plugins
rm -rf $(CURDIR)/debian/mm3d/usr/share/mimelnk
|