# Template file for 'doxygen'
pkgname=doxygen
version=1.8.20
revision=2
build_style=cmake
configure_args="-DCMAKE_BUILD_TYPE=None"
hostmakedepends="perl python3 flex"
checkdepends="libxml2 texlive-BibTeX"
short_desc="Source code documentation generator tool"
maintainer="Érico Nogueira <ericonr@disroot.org>"
license="GPL-2.0-only"
homepage="http://www.doxygen.org/"
distfiles="http://doxygen.nl/files/doxygen-${version}.src.tar.gz"
checksum=e0db6979286fd7ccd3a99af9f97397f2bae50532e4ecb312aa18862f8401ddec

build_options="wizard"
desc_option_wizard="build Qt5 GUI configuration tool, doxywizard"

if [ "$build_option_wizard" ]; then
	configure_args+=" -Dbuild_wizard=1"
	makedepends+=" qt5-devel"
fi

post_install() {
	vman doc/doxygen.1
	if [ "$build_option_wizard" ]; then
		vman doc/doxywizard.1
	fi
}
