#!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk qmkspecdir=/usr/x86_64-w64-mingw32/share/qt4/mkspecs package = mingw-w64-qt4-qmake docdir = debian/$(package)/usr/share/doc/$(package) mkspecname = win32-g++-mingw-w64-cross basedir=qt-everywhere-opensource-src DEB_INSTALL_DOCS_ALL := DEB_SHLIBDEPS_INCLUDE := DEB_DH_ALWAYS_EXCLUDE := .svn INSTALL_PROGRAM = install clean:: rm -f common-compile-arch common-install-arch rm -rf *~ debian/$(package) debian/*~ debian/files* debian/substvars debian/compat cd $(basedir); make clean || /bin/true cd $(basedir)/src/tools/uic; make confclean || /bin/true cd $(basedir)/src/tools/rcc; make confclean || /bin/true cd $(basedir)/src/tools/moc; make confclean || /bin/true cd $(basedir)/src/tools/bootstrap; make confclean || /bin/true rm -rf $(basedir)/bin $(basedir)/Makefile $(basedir)/Makefile.bak common-compile-arch:: rm -rf $(basedir)/bin mkdir $(basedir)/bin cd $(basedir); echo yes | sh ./configure \ -prefix /usr/x86_64-w64-mingw32 \ -demosdir /usr/x86_64-w64-mingw32/lib/qt4/demos \ -examplesdir /usr/x86_64-w64-mingw32/lib/qt4/examples \ -importdir /usr/x86_64-w64-mingw32/lib/qt4/imports \ -plugindir /usr/x86_64-w64-mingw32/lib/qt4/plugins \ -headerdir /usr/x86_64-w64-mingw32/include/qt4 \ -datadir /usr/x86_64-w64-mingw32/share/qt4 \ -translationdir /usr/x86_64-w64-mingw32/share/qt4/translations \ -docdir /usr/x86_64-w64-mingw32/share/qt4/doc \ -opensource -optimized-qmake make -C $(basedir)/src/tools/bootstrap make -C $(basedir)/src/tools/moc make -C $(basedir)/src/tools/rcc make -C $(basedir)/src/tools/uic touch common-compile-arch common-install-arch:: common-compile-arch rm -rf debian/$(package) mkdir -p debian/$(package)/usr/bin cp -p $(basedir)/bin/qmake debian/$(package)/usr/bin/x86_64-w64-mingw32-qmake-qt4 cp -p $(basedir)/bin/moc debian/$(package)/usr/bin/x86_64-w64-mingw32-moc-qt4 cp -p $(basedir)/bin/rcc debian/$(package)/usr/bin/x86_64-w64-mingw32-rcc-qt4 cp -p $(basedir)/bin/uic debian/$(package)/usr/bin/x86_64-w64-mingw32-uic-qt4 mkdir -p debian/$(package)$(qmkspecdir)/$(mkspecname) cp -p mkspecs/$(mkspecname)/qmake.conf debian/$(package)$(qmkspecdir)/$(mkspecname) cp -p mkspecs/$(mkspecname)/qplatformdefs.h debian/$(package)$(qmkspecdir)/$(mkspecname) cd debian/$(package)$(qmkspecdir); ln -s $(mkspecname) default touch common-install-arch