File: rules

package info (click to toggle)
openmolcas 22.10-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 169,324 kB
  • sloc: fortran: 390,463; f90: 294,374; python: 11,760; ansic: 5,723; sh: 740; pascal: 460; perl: 325; javascript: 284; makefile: 17
file content (27 lines) | stat: -rwxr-xr-x 738 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
# export DH_VERBOSE=1

DEB_HOST_MULTIARCH := $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
LINALG=openblas64-openmp

export FFLAGS=$(shell dpkg-buildflags --get FFLAGS) -ffp-contract=off

%:
	dh $@ --buildsystem=cmake --with sphinxdoc

override_dh_auto_configure:
	dh_auto_configure --		\
		-DTOOLS=ON		\
		-DOPENMP=ON		\
		-DHDF5=ON		\
		-DLINALG=Manual		\
		-DLINALG_LIBRARIES=/usr/lib/${DEB_HOST_MULTIARCH}/${LINALG}/liblapack64.so:/usr/lib/${DEB_HOST_MULTIARCH}/${LINALG}/libblas64.so \
		-DEXTERNAL_LIBXC=/usr/lib/${DEB_HOST_MULTIARCH} \
		-DCMAKE_SKIP_RPATH=ON

override_dh_auto_install:
	dh_auto_install
	cp -a test debian/tmp/usr/share/openmolcas