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
# Required by dpkg 1.16.1.
DPKG_EXPORT_BUILDFLAGS = 1
-include /usr/share/dpkg/buildflags.mk
CMAKE_INSTALL_FLAG = -DGCCXML_INSTALL_FOR_MUMMY:BOOL=ON
CMAKE_FLAGS = $(CMAKE_INSTALL_FLAG) \
-DGCCXML_DOC_DIR:STRING=/share/doc/gccxml
pkg_run = gccxml
pkg_dev = libgccxml-dev
%:
dh $@ --buildsystem=cmake --parallel
override_dh_auto_configure:
dh_auto_configure -- $(CMAKE_FLAGS)
override_dh_install:
# 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
VER_FULL = $(shell dpkg-parsechangelog | grep '^Version' | cut -d' ' -f2 | cut -f1 -d-)
# See Ginkgo CADx rules for original source
|