debian swirl logo

Back to the packages list syfi

#!/usr/bin/make -f

unexport CXXFLAGS
ifneq (,$(DEB_MAINTAINER_MODE))
  # Enable stuff not policy compliant (eg. unsuitable for build daemons)
  DEB_COPYRIGHT_CHECK_STRICT = yes
endif

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

DEB_COMPRESS_EXCLUDE_ALL := .py .cpp .h .pdf
DEB_INSTALL_DOCS_ALL += AUTHORS README

DEB_CMAKE_EXTRA_FLAGS= \
		-D BUILD_SHARED_LIBS:BOOL=ON \
		-D CMAKE_SKIP_RPATH:BOOL=ON \
		-D CMAKE_INSTALL_RPATH_USE_LINK_PATH:BOOL=OFF \
		-D SWIG_EXECUTABLE:FILEPATH=/usr/bin/swig2.0 \
		..

USCAN_DESTDIR := $(CURDIR)

PY_VERSIONS = $(shell pyversions --requested debian/control | tac -s' ')

DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

install-stamp-%:
		cd $(DEB_BUILDDIR) && rm CMakeCache.txt && \
		  cmake $(DEB_CMAKE_NORMAL_ARGS) $(DEB_CMAKE_EXTRA_FLAGS)
	make -C $(DEB_BUILDDIR) install DESTDIR= $(CURDIR)/debian/tmp
		touch $@

install/python-syfi:: $(addprefix install-stamp-, $(PY_VERSIONS))

binary-install/python-syfi::
		dh_python2 -p$(cdbs_curpkg)

binary-install/sfc::
		dh_python2 -p$(cdbs_curpkg)

clean::
		-rm -rf $(addprefix install-stamp-, $(PY_VERSIONS))

DEB_STRIPPED_UPSTREAM_VERSION = $(shell echo $(DEB_UPSTREAM_VERSION) | sed -n -e 's/\.dfsg.*$$//p')

get-orig-source:
		set -ex ; \
	TMPDIR= `mktemp -d $(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION).orig.XXXXXX` ; \
		uscan --force-download --check-dirname-level 0 --destdir "$$TMPDIR" --download-version $(DEB_STRIPPED_UPSTREAM_VERSION) --upstream-version $(DEB_STRIPPED_UPSTREAM_VERSION); \
		tar -C "$$TMPDIR" --strip-components 1 -xzf "$$TMPDIR"/$(DEB_SOURCE_PACKAGE)_$(DEB_STRIPPED_UPSTREAM_VERSION).orig.tar.gz ; \
		rm -rf "$$TMPDIR"/doc/papers ; \
		rm -rf "$$TMPDIR"/doc/presentations ; \
		rm -f "$$TMPDIR"/etc/tables.txt ; \
		rm -f "$$TMPDIR"/$(DEB_SOURCE_PACKAGE)*.tar.gz ; \
		mv "$$TMPDIR" $(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION).orig ; \
	GZIP= -9 tar -czf $(CURDIR)/$(DEB_SOURCE_PACKAGE)_$(DEB_UPSTREAM_VERSION).orig.tar.gz $(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION).orig ; \
		rm -rf $(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION).orig

Builds:

libsyfi1.0-dbg
finite element method (fem) c++ library - debugging libraries
libsyfi1.0-dev
finite element method (fem) c++ library - development files
libsyfi1.0
finite element method (fem) c++ library - shared libraries
python-syfi
finite element method (fem) c++ library - python bindings
sfc
syfi form compiler
syfi-dev
empty package depending on latest syfi development package
syfi-doc
finite element method (fem) c++ library - documentation