debian swirl logo

Back to the packages list teem

#!/usr/bin/make -f

# Set this value to 0/1 to turn off/on verbose mode.
export DH_VERBOSE= 0

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

ABI_VERSION := 2

DEB_DH_STRIP_ARGS := --dbg-package=libteem${ABI_VERSION}-dbg

DEB_BUILD_PARALLEL := true

DEB_CMAKE_EXTRA_FLAGS = \
        -DCMAKE_INSTALL_PREFIX:PATH=/usr \
        -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \
        -DCMAKE_VERBOSE_MAKEFILE=$(DH_VERBOSE) \
        -DCMAKE_SKIP_RPATH:BOOL=ON \
        -DBUILD_EXPERIMENTAL_APPS:BOOL=OFF \
        -DBUILD_EXPERIMENTAL_LIBS:BOOL=OFF \
        -DBUILD_TESTING:BOOL=ON \
        -DTeem_USE_LIB_INSTALL_SUBDIR:BOOL=ON \
        -DBUILD_SHARED_LIBS:BOOL=ON \


build/libteem${ABI_VERSION}::
	cd $(DEB_BUILDDIR) && LD_LIBRARY_PATH= `pwd`/bin:$$LD_LIBRARY_PATH ctest -VV -D ExperimentalTest

install/libteem${ABI_VERSION}::
		dh_install -plibteem${ABI_VERSION}    debian/tmp/usr/lib/Teem-1.11.0/*so.*         usr/lib

install/libteem-dev::
		dh_install -plibteem-dev              debian/tmp/usr/lib/Teem-1.11.0/*.so          usr/lib
		dh_install -plibteem-dev              debian/tmp/usr/lib/Teem-1.11.0/*.cmake       usr/lib/Teem-1.11.0
		dh_install -plibteem-dev              debian/tmp/usr/include/teem/*                usr/include/teem

install/teem-apps::
		dh_install -pteem-apps                debian/tmp/usr/bin/*                         usr/bin

get-orig-source:
		/bin/sh $(CURDIR)/debian/get-orig-source

Builds:

libteem2-dbg
debugging symbols for libteem2
libteem2
tools to process and visualize scientific data and images - runtime
libteem-dev
tools to process and visualize scientific data and images - development
teem-apps
tools to process and visualize scientific data and images - command line tools