Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 export DH_VERBOSE = 1
3 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
4 export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic -fsigned-char
5 include /usr/share/dpkg/architecture.mk
6 include /usr/share/dpkg/pkg-info.mk
7
8 ifeq ($(DEB_HOST_ARCH),armel)
9 export DEB_CPPFLAGS_MAINT_APPEND = -D_32BIT_FIXED_POINT
10 endif
11
12 export libldacBT_enc_soversion = $(basename $(DEB_VERSION_UPSTREAM))
13 export libldacBT_abr_soversion = $(basename $(DEB_VERSION_UPSTREAM))
14
15 export libdir = /usr/lib/$(DEB_HOST_MULTIARCH)
16
17 %:
18 dh $@ --buildsystem=soong
19
20 override_dh_auto_install:
21 dh_auto_install
22 mkdir -p debian/tmp/$(libdir)/pkgconfig
23 for d in debian/pkgconfig/*.pc; do \
24 sed -e 's,@VERSION@,$(DEB_VERSION_UPSTREAM),g' \
25 -e 's,@LIBDIR@,$(libdir),g' $$d > debian/tmp/$(libdir)/pkgconfig/$$(basename $$d); \
26 done