4
# Uncomment this to turn on verbose mode.
7
# path where binaries are built
8
pkg_buildpath=$(CURDIR)/build
10
# default compiler flags
14
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
20
4
# default CMake flags:
21
5
# set manpage install dir to temp directory -- manpages will be installed
23
CMAKE_FLAGS = -DCMAKE_CXX_FLAGS:STRING="$(CXXFLAGS)" \
24
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
25
-DDINIFTI_MAN_DIR:PATH=../../tmp/manpages
28
configure: configure-stamp
31
# Add here commands to configure the package.
33
if [ ! -d $(pkg_buildpath) ]; then mkdir $(pkg_buildpath); fi
34
cd $(pkg_buildpath) && cmake .. $(CMAKE_FLAGS)
40
build-stamp: configure
42
# Add here commands to compile the package.
44
cd $(pkg_buildpath) && $(MAKE) VERBOSE=1
51
rm -f build-stamp configure-stamp
53
-rm -rf $(pkg_buildpath)
63
# Add here commands to install the package into debian/dicomnifti.
64
cd $(pkg_buildpath) && $(MAKE) install DESTDIR=$(CURDIR)/debian/dicomnifti
67
# Build architecture-independent files here.
69
# We have nothing to do by default.
71
# Build architecture-dependent files here.
88
binary: binary-indep binary-arch
89
.PHONY: build clean binary-indep binary-arch binary install configure
7
CMAKE_FLAGS = -DDINIFTI_MAN_DIR:PATH=../../tmp/manpages
9
# one ring to rule them all ...
11
dh $@ --buildsystem=cmake
13
override_dh_auto_configure:
14
dh_auto_configure -- $(CMAKE_FLAGS)