File: rules

package info (click to toggle)
p4est 2.3.6-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 8,536 kB
  • sloc: ansic: 87,528; makefile: 855; sh: 635; perl: 272; python: 226; awk: 40; javascript: 23
file content (32 lines) | stat: -rwxr-xr-x 1,009 bytes parent folder | download
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
#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk

export PRTE_MCA_plm_ssh_agent=/bin/false
export PRTE_MCA_rmaps_default_mapping_policy=:oversubscribe

%:
	dh $@

override_dh_autoreconf:
	echo $(DEB_VERSION_UPSTREAM) > .tarball-version
	echo $(DEB_VERSION_UPSTREAM) > sc/.tarball-version
	dh_autoreconf ./bootstrap

override_dh_auto_configure:
	dh_auto_configure -- \
	--enable-mpi \
	--enable-mpiio

VERSION := 2.3.6
get-orig-source:
	wget --no-clobber -O p4est-$(VERSION).tar.gz https://github.com/cburstedde/p4est/archive/v${VERSION}.tar.gz
	wget --no-clobber -O libsc-$(VERSION).tar.gz https://github.com/cburstedde/libsc/archive/v${VERSION}.tar.gz
	mkdir p4est-$(VERSION)
	mkdir p4est-$(VERSION)/sc
	tar --strip-components=1 -C p4est-$(VERSION) -xzf p4est-$(VERSION).tar.gz
	tar --strip-components=1 -C p4est-$(VERSION)/sc -xzf libsc-$(VERSION).tar.gz
	set -e; cd p4est-$(VERSION); \
		rm -rf doc/*.pdf sc/doc/*.pdf
	tar -cJf p4est_$(VERSION).orig.tar.xz p4est-$(VERSION)
	rm -rf p4est-$(VERSION)