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 37 38 39 40 41
|
#!/usr/bin/make -f
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
%:
dh $@ --sourcedirectory=src
binary: binary-arch binary-indep
binary-indep: doc-stamp
dh $@ --sourcedirectory=src --parallel
# Need -DUSE_KNNGraphAlphaMutualInformationMetric:BOOL=ON, otherwise
# KNN is not built, and link of elastix fails.
#
DEB_CMAKE_EXTRA_FLAGS += \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=RELEASE \
-DCMAKE_SKIP_RPATH=ON \
-DELASTIX_USE_MEVISDICOMTIFF:BOOL=OFF \
-DUSE_KNNGraphAlphaMutualInformationMetric:BOOL=ON
override_dh_auto_configure:
dh_auto_configure -- $(DEB_CMAKE_EXTRA_FLAGS)
override_dh_builddeb:
dh_builddeb -- -Z xz
doc: doc-stamp
doc-stamp: help/html/index.html dox/manual/manual.pdf
touch $@
# build-deps: doxygen, latex, dot
help/html/index.html: help/doxyfile.out
doxygen $<
dox/manual/manual.pdf: dox/manual/manual.tex
cd dox/manual && latex manual && latex manual && dvipdf manual
|