Name lynx
Description classic non-graphical (text-mode) web browser
Version 2.9.0rel.0-2build2
Package Base
Homepage https://lynx.invisible-island.net/
Maintainers ['Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>']
Contributors [' Axel Beckert <abe@debian.org>', 'Andreas Metzler <ametzler@debian.org>', 'Elimar Riesebieter <riesebie@lxtec.de>,']
Distro-repo https://git.launchpad.net/ubuntu/+source/lynx/tree/?h=ubuntu/noble
Sources ['https://git.launchpad.net/ubuntu/+source/lynx/plain/debian/patches/../?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/lynx/plain/debian/patches/21_do_not_strip_-g.diff?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/lynx/plain/debian/patches/30_build_path_in_binary.diff?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/lynx/plain/debian/patches/aboutlynx.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/lynx/plain/debian/patches/lynxcfg.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/lynx/plain/debian/patches/nested_tables.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/lynx/plain/debian/patches/series?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/lynx/plain/debian/watch?h=ubuntu/noble']
Dependencies ['libbrotli1', 'libbz2-1.0', 'libc6', 'libgnutls30t64', 'libidn2-0', 'libncursesw6', 'libtinfo6', 'lynx-common', 'zlib1g']
Optional-Dependencies ['mailcap']
Build-Dependencies ['autoconf-dickey', 'debhelper-compat', 'gettext', 'libbrotli-dev', 'libbsd-dev', 'libbz2-dev', 'libgnutls28-dev', 'libidn2-dev', 'libncurses-dev', 'openssh-client', 'pkg-config', 'sharutils', 'telnet | telnet-client', 'zlib1g-dev']
Provides []
Builddate
Architecture amd64
Distro-Version noble
Licenses []
Hash 2165260b3a1540e77e2bff4d32776a7494aa9f1231d0dafbf434ab0ce9c66a62
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CFLAGS_MAINT_APPEND := -Wall -DNO_BUILDSTAMP

SSL=gnu
# uncomment the next line if you want openssl version
#SSL=ssl

ifeq ($(SSL),gnu)
	CONFTLS := --with-gnutls=/usr
else
	CONFTLS := --with-ssl
endif

override_dh_auto_configure:
ifeq ($(SSL),gnu)
	sed -i -e s/libssl-dev/libgnutls28-dev/g debian/control
else
	sed -i -e s/libgnutls28-dev/libssl-dev/g debian/control
endif

	env cf_cv_SYSTEM_MAIL=/usr/sbin/sendmail \
	LIBS="-lbsd" \
	dh_auto_configure --verbose -- \
		--enable-8bit-toupper \
		--enable-cgi-links \
		--enable-cjk \
		--enable-debug \
		--enable-default-colors \
		--enable-exec-links \
		--enable-exec-scripts \
		--enable-externs \
		--enable-forms-options \
		--enable-gzip-help \
		--enable-htmlized-cfg \
		--enable-ipv6 \
		--enable-japanese-utf8 \
		--enable-justify-elts \
		--enable-justify-elts \
		--enable-nested-tables \
		--enable-nls \
		--enable-nsl-fork \
		--enable-partial \
		--enable-persistent-cookies \
		--enable-prettysrc \
		--enable-read-eta \
		--enable-scrollbar \
		--enable-source-cache \
		--enable-syslog \
		--sysconfdir=/etc/lynx \
		--with-brotli \
		--with-bzlib \
		--without-included-gettext \
		--with-screen=ncursesw \
		--with-zlib \
		COMPRESS=/usr/bin/compress \
		ZIP=/usr/bin/zip \
		$(CONFTLS)

override_dh_autoreconf:
	dh_autoreconf autoreconf-dickey -- -f -i

override_dh_auto_install:
	dh_auto_install --verbose -- install-full
	cd debian/tmp/usr/share/lynx_help && rm -vf COPYING COPYHEADER
	cd debian/tmp/usr/share/lynx_doc && rm -rvf CHANGES \
		COPYHEADER.asc COPYING COPYING.asc samples test
	sed -i -e '/^# *\$$LynxId: /d' \
		-e '/^# *LYNX_VERSION  *"/d' \
		-e '/^# *LYNX_DATE  *"/d' \
		debian/tmp/etc/lynx/lynx.*

override_dh_link:
	rm -fv debian/lynx/usr/share/doc/lynx/changelog
	dh_link

%:
	dh $@