dune-debian.mk 1.38 KB
Newer Older
1
include /usr/share/dpkg/pkg-info.mk
Ansgar Burchardt's avatar
Ansgar Burchardt committed
2

3
4
export USE_CMAKE=no

Ansgar Burchardt's avatar
Ansgar Burchardt committed
5
6
7
8
9
10
11
12
DUNE_DEBIAN_DUNECONTROL ?= /usr/bin/dunecontrol
DUNE_DEBIAN_CONFIGURE_FLAGS ?= \
	--enable-parallel \
	--enable-shared \
	--with-alberta=/usr \
	--with-gmp \
	--without-grape \
	--without-metis \
13
	--without-parmetis \
Ansgar Burchardt's avatar
Ansgar Burchardt committed
14
	--with-superlu \
Ansgar Burchardt's avatar
Ansgar Burchardt committed
15
	--with-ug=/usr \
16
	--with-umfpack-includedir=/usr/include/suitesparse --with-umfpack-libdir=/usr/lib \
Ansgar Burchardt's avatar
Ansgar Burchardt committed
17
18
	--without-x

19
20
DUNE_DEBIAN_SHLIB = $(subst ~,.,lib$(DEB_SOURCE)-$(DEB_VERSION_UPSTREAM))

Ansgar Burchardt's avatar
Ansgar Burchardt committed
21
22
override_dh_auto_configure:
	$(DUNE_DEBIAN_DUNECONTROL) autogen
23
	dh_auto_configure -Sautoconf -- $(DUNE_DEBIAN_CONFIGURE_FLAGS)
Ansgar Burchardt's avatar
Ansgar Burchardt committed
24
25
26
27
28
29
30
31
32
33
34
35

override_dh_auto_test:
	# OpenMPI expects rsh/ssh to be in PATH even when it only starts local processes:
	mkdir debian/tmp-test
	ln -s /bin/false debian/tmp-test/ssh
	ln -s /bin/false debian/tmp-test/rsh
	PATH=$(CURDIR)/debian/tmp-test:$$PATH dh_auto_test
	rm -rf debian/tmp-test

override_dh_clean:
	dh_clean
	find . -name Makefile.in -delete
36
	rm -f aclocal.m4 compile config.guess config.h.in config.sub configure dependencies.m4 depcomp install-sh ltmain.sh missing test-driver
Ansgar Burchardt's avatar
Ansgar Burchardt committed
37
38
	rm -rf doc/doxygen/Doxyfile.in doc/doxygen/doxyerr.log doc/doxygen/doxygen-tag doc/doxygen/doxygen.log doc/doxygen/html
	rm -rf debian/tmp-test
39
40
41
42
43
44

override_dh_gencontrol:
	dh_gencontrol -- -Vdune:shared-library='$(DUNE_DEBIAN_SHLIB)'

override_dh_makeshlibs:
	dh_makeshlibs --version-info='$(DUNE_DEBIAN_SHLIB)'