File: rules

package info (click to toggle)
cminpack 1.3.11-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,528 kB
  • sloc: ansic: 11,704; fortran: 5,648; makefile: 429; f90: 354; sh: 10
file content (29 lines) | stat: -rwxr-xr-x 713 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
#!/usr/bin/make -f
#export DH_VERBOSE=1

%:
	dh $@ --buildsystem=cmake

DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

CMAKE_EXTRA_FLAGS += -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \
 -DCMINPACK_PRECISION=d \
 -DUSE_FPIC:BOOL=ON \
 -DCMINPACK_LIB_INSTALL_DIR:STRING=lib/$(DEB_HOST_MULTIARCH) \
 -DBUILD_SHARED_LIBS:BOOL=ON \
 -DBUILD_EXAMPLES:BOOL=OFF \
 -DCMAKE_POLICY_VERSION_MINIMUM=3.10

override_dh_auto_configure:
	dh_auto_configure -- $(CMAKE_EXTRA_FLAGS)

ifeq ($(filter $(DEB_BUILD_OPTIONS),nocheck),)
override_dh_auto_test:
	$(MAKE) -C examples ctest
endif

execute_after_dh_clean:
	$(MAKE) -C examples clean

get-orig-source:
	uscan --verbose --force-download --repack --rename