File: rules

package info (click to toggle)
pcre2 10.42-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 11,908 kB
  • sloc: ansic: 84,955; sh: 6,389; makefile: 715; perl: 378
file content (32 lines) | stat: -rwxr-xr-x 1,028 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
#!/usr/bin/make -f
# See debhelper(7)
# output every command that modifies files on the build system.
#DH_VERBOSE = 1

# see dpkg-buildflags(1)
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk
# prefix names of functions in libpcreposix with PCRE2 to avoid clash with
# ones in libc.
export DEB_CFLAGS_MAINT_APPEND = -Dregcomp=PCRE2regcomp -Dregexec=PCRE2regexec -Dregerror=PCRE2regerror -Dregfree=PCRE2regfree


deb_maint_conf_args = --enable-pcre2-16 --enable-pcre2-32 --disable-pcre2grep-callout
#enable JIT only on architectures that support it (see pcre2jit.3)
ifneq ($(filter i386 amd64 armel armhf mips mipsel mips64el powerpc sparc arm64 ppc64 ppc64el s390x, $(DEB_HOST_ARCH)),)
deb_maint_conf_args +=--enable-jit
else
deb_maint_conf_args +=--disable-jit
endif

%:
	dh $@ --parallel

override_dh_auto_configure:
	dh_auto_configure -- $(deb_maint_conf_args)

override_dh_makeshlibs:
	dh_makeshlibs -V --add-udeb=libpcre2-8-0-udeb

override_dh_strip:
	dh_strip --dbgsym-migration='libpcre2-dbg (<< 10.34-2~)'