Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 export DEB_BUILD_MAINT_OPTIONS=hardening=+all
4 export DEB_LDFLAGS_MAINT_APPEND=-Wl,--as-needed
5 export QT_SELECT := qt5
6
7 include /usr/share/dpkg/pkg-info.mk
8
9 # To enable test-suite build-depend on libgtest-dev and uncomment these lines
10 ###override_dh_auto_configure:
11 ### cp -a /usr/src/gtest local-gtest && \
12 ### mkdir local-gtest/debian local-gtest/include && \
13 ### cp -a debian/compat debian/control local-gtest/debian && \
14 ### cd local-gtest && \
15 ### dh_auto_configure --verbose && \
16 ### dh_auto_build --verbose && \
17 ### ln -s /usr/include/gtest include/ && \
18 ### ln -s obj-* lib
19 ###
20 ### dh_auto_configure --verbose -- -DGTEST_ROOT=$(CURDIR)/local-gtest
21
22 override_dh_auto_build:
23 # Normal auto_build:
24 dh_auto_build --verbose
25 # Build the minimal manpage:
26 pod2man --center='Minimal luminance-hdr manpage' \
27 --release=$(DEB_VERSION_UPSTREAM) \
28 debian/luminance-hdr.pod > debian/luminance-hdr.1
29
30 override_dh_auto_install:
31 dh_auto_install --verbose
32 # Remove unneeded files
33 cd debian/luminance-hdr/usr/share/doc/luminance-hdr/ && \
34 rm -v AUTHORS LICENSE README.md Changelog
35
36 built-using-cmdline = dpkg-query \
37 -f='$${source:Package} (= $${source:Version})' -W libeigen3-dev
38
39 override_dh_gencontrol:
40 dh_gencontrol -- \
41 -Vlibeigen3-dev:Built-Using='$(shell $(built-using-cmdline))'
42
43
44 %:
45 dh $@