Name libdeflate0
Description fast, whole-buffer DEFLATE-based compression and decompression
Version 1.23-2
Package Base libdeflate
Homepage https://github.com/ebiggers/libdeflate
Maintainers ['Deflate Team <libdeflate@packages.debian.org>']
Contributors ['Andrea Pappacoda <tachi@debian.org>', 'Nick Black <dankamongmen@gmail.com>']
Distro-repo https://salsa.debian.org/med-team/libdeflate
Sources ['https://sources.debian.org/data/main/libd/libdeflate/1.23-2/debian/watch']
Dependencies ['libc6']
Optional-Dependencies []
Build-Dependencies ['debhelper-compat', 'dpkg-build-api', 'cmake', 'zlib1g-dev <!nocheck>', 'python3 <!nocheck>', 'xxd <!nocheck>', 'help2man <!nodoc> <!cross>']
Provides []
Builddate
Architecture amd64
Distro-Version trixie
Licenses []
Hash 5fe37fb79d53f5c91da6ba3ac4c1a8453e1f2b1ff0e0ea45189c5338bbfdbf82
#!/usr/bin/make -f

export LC_ALL=C.UTF-8

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

ifeq (alpha,$(DEB_HOST_ARCH))
	export DEB_CFLAGS_MAINT_APPEND=-O1
endif


%:
	dh $@

ifneq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
 test := OFF
else
 test := ON
endif

# -DCMAKE_BUILD_RPATH_USE_ORIGIN=ON can be dropped with debhelper compat 14+
override_dh_auto_configure:
	dh_auto_configure -- \
		-DLIBDEFLATE_USE_SHARED_LIB=ON \
		-DLIBDEFLATE_BUILD_TESTS=$(test) \
		-DCMAKE_BUILD_RPATH_USE_ORIGIN=ON

execute_after_dh_auto_test:
	scripts/run_tests.sh regular

override_dh_installman:
ifeq ($(filter nodoc cross,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)),)
	LD_LIBRARY_PATH=$(CURDIR)/debian/libdeflate0/usr/lib/$(DEB_HOST_MULTIARCH) \
		help2man --no-info --help-option=-h --version-option=-V \
		-n "Compress the specified FILEs" \
		debian/libdeflate-tools/usr/bin/libdeflate-gzip --output debian/libdeflate-gzip.1
	LD_LIBRARY_PATH=$(CURDIR)/debian/libdeflate0/usr/lib/$(DEB_HOST_MULTIARCH) \
		help2man --no-info --help-option=-h --version-option=-V \
		-n "Decompress the specified FILEs" \
		debian/libdeflate-tools/usr/bin/libdeflate-gunzip --output debian/libdeflate-gunzip.1
	dh_installman
endif