File: rules

package info (click to toggle)
getfem%2B%2B 5.3%2Bdfsg1-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 35,604 kB
  • sloc: cpp: 117,991; ansic: 73,600; fortran: 16,046; python: 7,403; sh: 3,624; perl: 1,722; makefile: 1,548
file content (42 lines) | stat: -rwxr-xr-x 1,454 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
#!/usr/bin/make -f
%:
	dh $@ --with python3

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

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-python3 --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
	sed "s/from getfem import/from .getfem import/; s/from _getfem import/from ._getfem import/" -i debian/tmp/usr/lib/python*/*-packages/getfem/*.py
	dh_missing --list-missing
	dh_numpy3

override_dh_installchangelogs:
	dh_installchangelogs ChangeLog

#override_dh_auto_test:
#	dh_auto_test || true