| 1 |
#!/usr/bin/make -f |
| 2 |
# Uncomment this to turn on verbose mode. |
| 3 |
#export DH_VERBOSE=1 |
| 4 |
|
| 5 |
export QT_SELECT=qt5 |
| 6 |
|
| 7 |
%: |
| 8 |
dh $@ --with autoreconf |
| 9 |
|
| 10 |
QtDir=$(shell pkg-config --variable=libdir Qt5Core) |
| 11 |
QtIncDir=$(shell pkg-config --variable=includedir Qt5Core) |
| 12 |
|
| 13 |
override_dh_auto_configure: |
| 14 |
dh_auto_configure -- \ |
| 15 |
CFLAGS="$(CFLAGS)" \ |
| 16 |
CPPFLAGS="$(CPPFLAGS)" \ |
| 17 |
CXXFLAGS="$(CXXFLAGS)" \ |
| 18 |
LDFLAGS="$(LDFLAGS)" \ |
| 19 |
--host=$(DEB_HOST_GNU_TYPE) \ |
| 20 |
--build=$(DEB_BUILD_GNU_TYPE) \ |
| 21 |
--mandir=\$${prefix}/share/man \ |
| 22 |
--infodir=\$${prefix}/share/info \ |
| 23 |
--with-Qt-lib-dir=$(QtDir) \ |
| 24 |
--with-Qt-include-dir=$(QtIncDir) \ |
| 25 |
--enable-profile=no |
| 26 |
|
| 27 |
override_dh_auto_clean: |
| 28 |
# dh_auto_clean |
| 29 |
rm -f src/*/*moc* src/qtui/*.h src/qtui/*.cc |
| 30 |
find -name Makefile.in -execdir rm '{}' + |
| 31 |
|
| 32 |
override_dh_auto_install: |
| 33 |
$(MAKE) DESTDIR=$(CURDIR)/debian/mm3d install |
| 34 |
# cp desktop/mm3d.desktop debian/mm3d/usr/share/applications/ |
| 35 |
rm -rf $(CURDIR)/debian/mm3d/usr/share/mm3d/plugins |
| 36 |
rm -rf $(CURDIR)/debian/mm3d/usr/share/mimelnk |