File: rules

package info (click to toggle)
clhep 2.4.7.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,084 kB
  • sloc: cpp: 45,279; sh: 1,343; perl: 28; makefile: 26
file content (34 lines) | stat: -rwxr-xr-x 1,123 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@  --sourcedirectory=CLHEP --buildsystem=cmake+ninja

override_dh_clean:
	dh_clean
	find . -name "*.report" -delete
	find . -name "*.cout" -delete
	find . -name "*.seq" -delete
	find . -name "Config.conf" -delete

override_dh_auto_configure:
	dh_auto_configure -- \
		-DCLHEP_BUILD_DOCS=ON

override_dh_install:
	# Avoid embedding build path for reproducible builds
	sed -i -e "s,$(CURDIR),BUILDDIR,g" debian/tmp/usr/bin/clhep-config
	dh_install
	# FIXME: Something went wrong when installing to debian/tmp/usr/lib ... move again manually
	rm debian/tmp/usr/lib/libCLHEP.a debian/tmp/usr/lib/libCLHEP.so
	cp -a obj-*/lib/libCLHEP.a debian/tmp/usr/lib/
	cp -a obj-*/lib/libCLHEP.so debian/tmp/usr/lib/
	d-shlibmove --commit \
	            --multiarch \
	            --devunversioned \
	            --exclude-la \
	            --movedev debian/tmp/usr/include/CLHEP usr/include \
	            --movedev "debian/tmp/usr/lib/pkgconfig" usr/lib/$(DEB_HOST_MULTIARCH)/ \
	            debian/tmp/usr/lib/libCLHEP.so
	find debian -name "lib*.la" -delete