#!/usr/bin/make -f export CC=gcc-4.9 export CXX=g++-4.9 CMAKE_FLAGS = -DGCCXML_INSTALL_FOR_MUMMY:BOOL=ON \ -DGCCXML_DOC_DIR:STRING=/share/doc/gccxml pkg_run = gccxml pkg_dev = libgccxml-dev %: dh $@ --buildsystem=cmake --parallel --with=autotools-dev override_dh_auto_configure: dh_auto_configure -- $(CMAKE_FLAGS) override_dh_install: mkdir -p debian/tmp/usr/bin mv debian/tmp/usr/bin/gccxml debian/tmp/usr/bin/gccxml.real cp debian/castxml-wrapper.py debian/tmp/usr/bin/gccxml # Runtime Package dh_install -p$(pkg_run) usr/bin dh_install -p$(pkg_run) usr/share # Development Package dh_install -p$(pkg_dev) usr/include dh_install -p$(pkg_dev) --autodest usr/lib/lib*.a override_dh_auto_build: cp -a debian/Support/* GCC_XML/Support dh_auto_build get-orig-source: ./debian/makeSource.sh