Name wget
Description retrieves files from the web
Version 1.25.0-2
Package Base
Homepage https://www.gnu.org/software/wget/
Maintainers ['Noël Köthe <noel@debian.org>']
Contributors []
Distro-repo https://salsa.debian.org/debian/wget
Sources ['https://sources.debian.org/data/main/w/wget/1.25.0-2/debian/watch', 'https://sources.debian.org/src/wget/1.25.0-2/debian/patches/series', 'https://sources.debian.org/src/wget/1.25.0-2/debian/patches/wget-doc-remove-usr-local-in-sample.wgetrc', 'https://sources.debian.org/src/wget/1.25.0-2/debian/patches/wget-doc-remove-usr-local-in-wget.texi', 'https://sources.debian.org/src/wget/1.25.0-2/debian/patches/wget-passive_ftp-default']
Dependencies ['libc6', 'libgnutls30t64', 'libidn2-0', 'libnettle8t64', 'libpcre2-8-0', 'libpsl5t64', 'libuuid1', 'zlib1g']
Optional-Dependencies ['ca-certificates']
Build-Dependencies ['debhelper-compat', 'pkgconf', 'gettext', 'texinfo', 'libidn2-dev', 'uuid-dev', 'libpsl-dev', 'libpcre2-dev', 'libgnutls28-dev', 'libssl-dev', 'zlib1g-dev', 'libhttp-daemon-perl <!nocheck>']
Provides []
Builddate
Architecture amd64
Distro-Version trixie
Licenses []
Hash 5649cad63c781b2dcf5a7b87d70b3bf789291cd0d6bcabc4d521211f94980683
#!/usr/bin/make -f

#export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CFLAGS_MAINT_APPEND = -DNO_SSLv2

DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

DEB_BUILD_DIR=build
UDEB_BUILD_DIR=build-udeb

ifeq ($(filter noudeb,$(DEB_BUILD_PROFILES)),)
BUILD_UDEB=1
else
BUILD_UDEB=0
endif

# autoreconf reports some error, so disabled
%:
	dh $@ --without autoreconf --builddir=$(DEB_BUILD_DIR)

override_dh_auto_clean:
	-dh_auto_clean
	-dh_auto_clean -B$(UDEB_BUILD_DIR)
	rm -f po/*.gmo po/wget.pot po/en@boldquot.po po/en@quot.po \
	    doc/wget.inf* doc/version.texi
	rm -rf config.sub config.guess $(UDEB_BUILD_DIR) $(DEB_BUILD_DIR)

override_dh_auto_configure:
	@echo "d/rules: running configure for wget"
	dh_auto_configure -- \
		--enable-ipv6 \
		--with-ssl \
		--with-libidn
ifeq ($(BUILD_UDEB),1)
	@echo "d/rules: will configure and build binary package wget-udeb"
	@echo "d/rules: running configure for wget-udeb"
	DEB_CFLAGS_MAINT_APPEND="${DEB_CFLAGS_MAINT_APPEND} -Os" dh_auto_configure -B$(UDEB_BUILD_DIR) --reload-all-buildenv-variables -- \
		--enable-ipv6 \
		--with-ssl=openssl \
		--without-libpsl \
		--disable-debug \
		--disable-nls \
		--disable-iri
endif

override_dh_auto_build:
	@echo "d/rules: building for wget"
	dh_auto_build
	cd build/po; make wget.pot
ifeq ($(BUILD_UDEB),1)
	@echo "d/rules: building for wget-udeb"
	dh_auto_build -B$(UDEB_BUILD_DIR)
endif

override_dh_auto_test:
ifeq ($(filter nocheck,$(DEB_BUILD_PROFILES)),)
	@echo "d/rules: running tests for wget"
	dh_auto_test
ifeq ($(BUILD_UDEB),1)
	@echo "d/rules: running tests for wget-udeb"
	dh_auto_test -B$(UDEB_BUILD_DIR)
endif
endif