File: rules

package info (click to toggle)
jxrlib 1.1-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 2,108 kB
  • ctags: 3,570
  • sloc: ansic: 25,206; makefile: 75; sh: 18
file content (54 lines) | stat: -rwxr-xr-x 1,499 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/usr/bin/make -f
#export DH_VERBOSE=1

DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
VER_FULL = $(shell dpkg-parsechangelog | grep '^Version' | cut -d' ' -f2 | cut -f1 -d-)

%:
	dh $@ --buildsystem=cmake --parallel

# Purposely not set CMAKE_BUILD_TYPE, see #701231
CMAKE_EXTRA_FLAGS += -DCMAKE_BUILD_TYPE:STRING=NONE \
 -DJXRLIB_INSTALL_LIB_DIR="lib/$(DEB_HOST_MULTIARCH)"

override_dh_auto_configure:
	dh_auto_configure -- $(CMAKE_EXTRA_FLAGS)

pkg_bin=libjxr-tools
pkg_lib=libjxr0
pkg_dev=libjxr-dev
pkg_dbg=libjxr-dbg

override_dh_install:
	# bin
	dh_install -p$(pkg_bin) usr/bin
	# lib
	dh_install -p$(pkg_lib) usr/lib/$(DEB_HOST_MULTIARCH)/*.so.*
	# dev
	dh_install -p$(pkg_dev) usr/lib/$(DEB_HOST_MULTIARCH)/*.so
	dh_install -p$(pkg_dev) usr/include

debian/JxrDecApp.1: debian/JxrDecApp.1.in
	help2man --version-string=$(VER_FULL) --include=$< --output=$@ --no-info JxrDecApp

debian/JxrEncApp.1: debian/JxrEncApp.1.in
	help2man --version-string=$(VER_FULL) --include=$< --output=$@ --no-info JxrEncApp

debian/JPEGXR_DPK_Spec_1.0.txt: doc/JPEGXR_DPK_Spec_1.0.doc
	antiword $< > $@

override_dh_installman:
	dh_installman -p$(pkg_bin) debian/JxrDecApp.1
	dh_installman -p$(pkg_bin) debian/JxrEncApp.1

override_dh_installdocs:
	dh_installdocs doc/readme.txt
	dh_installdocs debian/JPEGXR_DPK_Spec_1.0.txt
	dh_installdocs

override_dh_strip:
	dh_strip --dbg-package=$(pkg_dbg)

get-orig-source:
	#uscan --verbose --force-download --rename
	./debian/get-orig-source