File: rules

package info (click to toggle)
openmolcas 25.02-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 170,204 kB
  • sloc: f90: 498,088; fortran: 139,779; python: 13,587; ansic: 5,745; sh: 745; javascript: 660; pascal: 460; perl: 325; 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