File: rules

package info (click to toggle)
ausaxs 1.1.8-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 72,592 kB
  • sloc: cpp: 49,853; ansic: 6,901; python: 730; makefile: 18
file content (32 lines) | stat: -rwxr-xr-x 1,092 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@ --buildsystem cmake

override_dh_auto_configure:
	dh_auto_configure -- \
          -DGUI=OFF \
          -DDLIB=OFF \
          -DUSE_SYSTEM_GCEM=ON \
          -DUSE_SYSTEM_BACKWARD=ON \
          -DUSE_SYSTEM_CLI11=ON \
          -DUSE_SYSTEM_THREADPOOL=ON \
          -DUSE_SYSTEM_CATCH=ON

override_dh_auto_build:
	dh_auto_build -- \
          ausaxs saxs_fitter em_fitter rigidbody_optimizer

override_dh_auto_install:
	# We might install these tools in a separate package, one day..
	# mkdir -p $(CURDIR)/debian/ausaxs/usr/bin
	# cp -v obj*/bin/saxs_fitter obj*/bin/em_fitter obj*/bin/rigidbody_optimizer $(CURDIR)/debian/ausaxs/usr/bin/

	mkdir -p $(CURDIR)/debian/libausaxs/usr/lib/ausaxs/
	cp -v obj*/lib/libausaxs.so $(CURDIR)/debian/libausaxs/usr/lib/ausaxs

	# Not yet a library that other things will compile against, one day...
	# mkdir -p $(CURDIR)/debian/libausaxs-dev/usr/include/$(DEB_HOST_MULTIARCH)/
	# cp -rv include/core/api $(CURDIR)/debian/libausaxs-dev/usr/include/$(DEB_HOST_MULTIARCH)/