# Template file for 'lynx'
pkgname=lynx
version=2.9.2
revision=1
build_style=gnu-configure
configure_args="--with-screen=ncurses --enable-widec --with-zlib --with-bzlib
 --with-ssl --enable-ipv6
 cf_cv_header_path_ssl=${XBPS_CROSS_BASE}/usr/include/openssl"
makedepends="zlib-devel bzip2-devel ncurses-devel openssl-devel"
short_desc="Text browser for the World Wide Web"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="http://lynx.invisible-island.net/"
changelog="https://lynx.invisible-island.net/current/CHANGES"
distfiles="http://invisible-mirror.net/archives/lynx/tarballs/lynx${version}.tar.bz2"
checksum=7374b89936d991669e101f4e97f2c9592036e1e8cdaa7bafc259a77ab6fb07ce

pre_configure() {
	sed -i configure \
		-e '/LDFLAGS="-L$cf_add_libdir $LDFLAGS"/d' \
		-e 's;,$BUILD_CC;,$CC_FOR_BUILD;' \
		-e 's;,$BUILD_CFLAGS;,$CFLAGS_FOR_BUILD;' \
		-e 's;,$BUILD_LDFLAGS;,$LDFLAGS_FOR_BUILD;'
}
