Name grep
Description GNU grep, egrep and fgrep
Version 3.11-4
Package Base
Homepage https://www.gnu.org/software/grep/
Maintainers ['Anibal Monsalve Salazar <anibal@debian.org>']
Contributors ['Santiago Ruano Rincón <santiago@debian.org>']
Distro-repo https://salsa.debian.org/debian/grep
Sources ['https://sources.debian.org/data/main/g/grep/3.11-4/debian/watch', 'https://sources.debian.org/src/grep/3.11-4/debian/patches/01-disable-egrep-fgrep-warnings.patch', 'https://sources.debian.org/src/grep/3.11-4/debian/patches/02-man_egrep_fgrep_rgrep.patch', 'https://sources.debian.org/src/grep/3.11-4/debian/patches/05-grep-wrapper-sh.patch', 'https://sources.debian.org/src/grep/3.11-4/debian/patches/1019724-handle-backslash-warning.patch', 'https://sources.debian.org/src/grep/3.11-4/debian/patches/XFAIL-test-regex.patch', 'https://sources.debian.org/src/grep/3.11-4/debian/patches/clean.patch', 'https://sources.debian.org/src/grep/3.11-4/debian/patches/grep-dirfd.patch', 'https://sources.debian.org/src/grep/3.11-4/debian/patches/series']
Dependencies ['libc6', 'libpcre2-8-0']
Optional-Dependencies []
Build-Dependencies ['debhelper-compat', 'dh-sequence-movetousr', 'gettext', 'libpcre2-dev', 'texinfo <!nodoc>']
Provides []
Builddate
Architecture amd64
Distro-Version trixie
Licenses []
Hash 2d78ed07d86a530ebf538f05cb2415f37c8daf908596bc32fc2563cc7e88c55a
#!/usr/bin/make -f
# -*- makefile -*-

export DH_VERBOSE=1

ifneq ($(filter nodoc,$(DEB_BUILD_PROFILES)),)
export MAKEINFO = true
endif

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CFLAGS_MAINT_APPEND = -O3
export DEB_CPPFLAGS_MAINT_APPEND = -DHAVE_DYNAMIC_LIBPCRE
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-z,defs

export LIBS=-Wl,--no-as-needed -ldl -Wl,--as-needed

include /usr/share/dpkg/architecture.mk
include /usr/share/dpkg/buildopts.mk

USE_INCLUDED_REGEX = --without-included-regex
ifeq (musl,$(DEB_HOST_ARCH_LIBC))
	USE_INCLUDED_REGEX = --with-included-regex
endif

%:
	dh $@

override_dh_auto_clean:
	[ ! -f Makefile ] || dh_auto_clean

# remove this after trixie has been released.
# for the moment, dh-sequence-movetousr is a Build-Dependency, so it would make
# it easier to backport grep, if needed.
override_dh_auto_configure:
	dh_auto_configure -- --exec-prefix=/ $(USE_INCLUDED_REGEX)