debian swirl logo

Back to the packages list vmtk

#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/cmake.mk

PYVER = $(shell pyversions -dv)

CFLAGS= -g -Wall -fPIC
CXXFLAGS= -g -Wall -fPIC

ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
CXXFLAGS += -O0
else
CFLAGS += -O2
CXXFLAGS += -O2
endif

DEB_CMAKE_EXTRA_FLAGS= \
		-D VMTK_MINIMAL_INSTALL:BOOL=ON \
		-D VMTK_WITH_LIBRARY_VERSION:BOOL=ON \
		-D CMAKE_VERBOSE_MAKEFILE:BOOL=ON \
		-D BUILD_SHARED_LIBS:BOOL=ON \
		-D CMAKE_SKIP_RPATH:BOOL=ON \
		-D VTK_DIR:PATH=/usr/lib/vtk-5.8 \
		-D ITK_DIR:PATH=/usr/lib/InsightToolkit \
		-D GDCM_DIR:PATH=/usr/lib/gdcm-2.2 \
		-D VTK_VMTK_WRAP_PYTHON:BOOL=ON \
		-D VTK_VMTK_WRAP_TCL:BOOL=OFF \
		-D VTK_VMTK_BUILD_TETGEN:BOOL=ON \
		-D BUILD_DOCUMENTATION:BOOL=OFF \
		-D CMAKE_BUILD_TYPE:STRING=RelWithDebInfo \
		-D CMAKE_INSTALL_PREFIX:PATH=/usr \
		-D VTK_VMTK_CONTRIB:BOOL=ON \
		-D VMTK_CONTRIB_SCRIPTS:BOOL=ON \
		-D USE_SYSTEM_ITK:BOOL=ON \
		-D USE_SYSTEM_VTK:BOOL=ON \
		-D VMTK_USE_SUPERBUILD:BOOL=OFF \
		-D VMTK_SCRIPTS_ENABLED:BOOL=ON \
		..

install/libvmtk1.0::
		dh_install -p$(cdbs_curpkg) \
		  `find debian/tmp/usr/lib/vmtk/ -name "lib*.so.*" | grep -v -E "(Python|TCL)"` usr/lib

install/libvmtk-dev::
		dh_install -p$(cdbs_curpkg) debian/tmp/usr/include/vmtk usr/include
		dh_install -p$(cdbs_curpkg) \
		  `find debian/tmp/usr/lib/vmtk/ -name "lib*.so" | grep -v -E "(Python|TCL)"` usr/lib

install/python-vmtk::
		dh_install -p$(cdbs_curpkg) debian/tmp/usr/lib/vmtk/*PythonD.* usr/lib
	if [ $(PYVER) = "2.6" -o $(PYVER) = "2.7" ]; then \
		  dh_install -p$(cdbs_curpkg) -X.pyc \
		    debian/tmp/usr/lib/vmtk/vmtk usr/lib/python$(PYVER)/dist-packages; \
		else \
		  dh_install -p$(cdbs_curpkg) -X.pyc \
		    debian/tmp/usr/lib/vmtk/vmtk usr/lib/python$(PYVER)/site-packages; \
		fi
		dh_python2 -p$(cdbs_curpkg)

install/vmtk::
		dh_install -p$(cdbs_curpkg) debian/tmp/usr/bin/vmtk usr/bin
		dh_installman -p$(cdbs_curpkg) debian/vmtk.1

USCAN_DESTDIR := $(CURDIR)

get-orig-source:
		uscan --force-download --verbose --destdir $(USCAN_DESTDIR) \
		 --download-version $(DEB_UPSTREAM_VERSION) \
		 --upstream-version $(DEB_UPSTREAM_VERSION)

Builds:

libvmtk1.0
runtime libraries for vmtk
libvmtk-dev
shared links and header files for vmtk
python-vmtk
python interface for vmtk
vmtk
the vascular modeling toolkit