# Template file for 'fbv'
pkgname=fbv
version=1.0b
revision=2
build_style=configure
makedepends="libpng-devel libjpeg-turbo-devel giflib-devel"
short_desc="Framebuffer image viewer"
maintainer="Duncaen <duncaen@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="http://www.eclis.ch/fbv/"
distfiles="http://s-tech.elsat.net.pl/fbv/fbv-${version}.tar.gz"
checksum=9b55b9dafd5eb01562060d860e267e309a1876e8ba5ce4d3303484b94129ab3c

do_configure() {
	sed -i '/^CFLAGS/d' Makefile
	if [ "$CROSS_BUILD" ]; then
		sed -i "s/^CC.*/CC=${XBPS_CROSS_TRIPLET}-gcc/" Makefile
		sed -i "s/^cc/${XBPS_CROSS_TRIPLET}-gcc/" configure
	fi
	./configure ${configure_args} --libs="-lgif"
}

do_install() {
	vbin fbv
	vman fbv.1
}
