File: rules

package info (click to toggle)
getfem%2B%2B 5.2%2Bdfsg1-7
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 34,764 kB
  • sloc: cpp: 114,918; ansic: 73,016; fortran: 16,046; python: 6,559; sh: 3,646; perl: 1,722; makefile: 1,526
file content (43 lines) | stat: -rwxr-xr-x 1,350 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
33
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/make -f
%:
	dh $@ --with python2

#=====================================================================

export CFLAGS := -Wall $(shell dpkg-buildflags --get CFLAGS)
export CXXFLAGS := -Wall $(shell dpkg-buildflags --get CXXFLAGS)
export CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS)
export LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS)

export LD_LIBRARY_PATH :=$(LD_LIBRARY_PATH):$(CURDIR)/./src/.libs/

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

configure_flags= $(CROSS) --prefix=/usr \
		--enable-boost --enable-shared --with-pic \
		--enable-python --enable-metis \
		--disable-matlab --disable-superlu \
		--enable-muparser --enable-mumps --disable-scilab \
		--with-mumps="-lsmumps_seq -ldmumps_seq -lcmumps_seq -lzmumps_seq -lpord_seq"  

#=====================================================================

override_dh_auto_configure:
	dh_auto_configure -- $(configure_flags)
	cp $(CURDIR)/src/getfem/getfem_arch_config.h $(CURDIR)/src/gmm/

override_dh_install:
	find . -name '*.pyc' -print0 | xargs -0 rm -f
	find . -name '*.pyo' -print0 | xargs -0 rm -f
	find . -name '*.la' -print0 | xargs -0 rm -f
	dh_install --list-missing
	dh_numpy

override_dh_installchangelogs:
	dh_installchangelogs ChangeLog

override_dh_python2:
	dh_python2 --no-guessing-versions

#override_dh_auto_test:
#	dh_auto_test || true