Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3
4 # Uncomment this to turn on verbose mode.
5 #export DH_VERBOSE=1
6
7 include /usr/share/dpkg/architecture.mk
8 include /usr/share/dpkg/buildtools.mk
9
10 DEVPKG = $(CURDIR)/debian/libbotan-3-dev
11 DOCPKG = $(CURDIR)/debian/libbotan-3-doc
12
13 ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
14 OS_MAP_hurd = gnu
15 OS_MAP_kfreebsd = gnu/kfreebsd
16 CROSS_FLAGS += --os=$(or $(OS_MAP_$(DEB_HOST_ARCH_OS)),$(DEB_HOST_ARCH_OS))
17 CPU_MAP_aarch64 = arm64
18 CPU_MAP_arm = arm32
19 CPU_MAP_i686 = x86_32
20 CPU_MAP_mips64el = mips64
21 CPU_MAP_mips = mips32
22 CPU_MAP_mipsel = mips32
23 CPU_MAP_powerpc = ppc32
24 CPU_MAP_powerp64 = ppc64
25 CPU_MAP_powerpc64le = ppc64
26 CPU_MAP_sh4 = superh
27 ifeq (,$(filter $(DEB_HOST_ARCH),armhf hurd-i386))
28 CROSS_FLAGS +=--cpu=$(or $(CPU_MAP_$(DEB_HOST_GNU_CPU)),$(DEB_HOST_GNU_CPU))
29 endif
30 CROSS_FLAGS += --cc-bin=$(CXX) --ar-command=$(AR)
31 endif
32
33 override_dh_clean:
34 dh_clean
35 rm -f $(CURDIR)/Certificate\ Store*.db
36
37 override_dh_auto_configure:
38 $(CURDIR)/configure.py \
39 $(CROSS_FLAGS) \
40 --prefix=/usr/ \
41 --libdir=/usr/lib/$(DEB_HOST_MULTIARCH) \
42 --with-rst2man \
43 --with-bzip2 \
44 --with-lzma \
45 --with-sqlite3 \
46 --with-tpm \
47 --with-zlib \
48 --with-python-versions=3 \
49 $(if $(filter $(DEB_HOST_ARCH), armhf),--cpu=armv7) \
50 $(if $(filter $(DEB_HOST_ARCH), hurd-i386),--cpu=x86_32) \
51 --distribution-info=$(shell dpkg-vendor --query Vendor)
52
53 override_dh_auto_test:
54 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
55 LD_LIBRARY_PATH=. $(CURDIR)/botan-test
56 endif
57
58 override_dh_install-arch:
59 dh_install -a
60 sed -i -e 's/ -f\(debug\|file\)-prefix-map=[^ ]*=\. / /' $(DEVPKG)/usr/include/botan-3/botan/build.h
61
62 override_dh_install-indep:
63 dh_install -i
64 rm -rf $(DOCPKG)/usr/share/doc/libbotan-3-doc/handbook/.doctrees
65
66 %:
67 dh $@ --with python3
68
69 .PHONY: override_dh_clean override_dh_auto_configure override_dh_auto_test \
70 override_dh_install-arch override_dh_install-indep