Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2
3 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
4
5 include /usr/share/dpkg/pkg-info.mk
6
7 # Starting with a library package $*, remove the ABI and append a
8 # -MAJOR.MINOR suffix without the third component of the upstream version.
9 ABIVirtualPackage = $(shell echo $* | sed 's/abi[0-9]\+//')-$(basename $(DEB_VERSION_UPSTREAM))
10 pkgs_lib = $(filter-out %-dev %-doc %-dbg %-data %-bin %-plugins,$(filter lib%,$(shell dh_listpackages)))
11
12 %:
13 dh $@
14
15 override_dh_auto_configure:
16 dh_auto_configure -- -DCMAKE_BUILD_RPATH_USE_ORIGIN=ON -DBUILD_TESTING=ON
17
18 override_dh_shlibdeps:
19 dh_shlibdeps -- -xlibkdepim-plugins
20
21 override_dh_makeshlibs: $(pkgs_lib:=-makeshlibs)
22 dh_makeshlibs --remaining-packages
23 $(pkgs_lib:=-makeshlibs): %-makeshlibs:
24 dh_makeshlibs -p$* '-V$* (>= $(DEB_VERSION_EPOCH_UPSTREAM)), $(ABIVirtualPackage)'
25
26 override_dh_gencontrol: $(pkgs_lib:=-gencontrol)
27 dh_gencontrol --remaining-packages
28 $(pkgs_lib:=-gencontrol): %-gencontrol:
29 dh_gencontrol -p$* -- -VABI:VirtualPackage=$(ABIVirtualPackage)
30
31 override_dh_auto_test:
32 - xvfb-run -- dh_auto_test --no-parallel