# Template file for 'doxygen'
pkgname=doxygen
version=1.8.10
revision=2
build_style=cmake
hostmakedepends="cmake perl python flex"
short_desc="Source code documentation generator tool"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://www.doxygen.org/"
license="GPL-2"
distfiles="http://ftp.stack.nl/pub/users/dimitri/${pkgname}-${version}.src.tar.gz"
checksum=cedf78f6d213226464784ecb999b54515c97eab8a2f9b82514292f837cf88b93

post_install() {
	vman doc/doxygen.1
}

if [ -z "$CROSS_BUILD" ]; then
	makedepends="qt-devel"
	configure_args+=" -Dbuild_wizard=1"
	doxygen-gui_package() {
		depends="doxygen>=${version}"
		short_desc+=" - QT GUI configuration tool"
		pkg_install() {
			vmove usr/bin/doxywizard
			vman doc/doxywizard.1
		}
	}
fi
