# Template file for 'dosbox'
pkgname=dosbox
version=0.74pl3
revision=2
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="alsa-lib-devel libpng-devel SDL_net-devel SDL_sound-devel"
short_desc="DOS x86 emulator with Tandy/Herc/CGA/EGA/VGA/SVGA graphics and sound"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="http://www.dosbox.com"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/dosbox-${version/pl/-}.tar.gz"
checksum=c0d13dd7ed2ed363b68de615475781e891cd582e8162b5c3669137502222260a

build_options="debug debug_heavy"
desc_option_debug="Build DOSBox with debugging capabilities."
desc_option_debug_heavy="Build DOSBox with extended debugging capabilities."

if [ "$build_option_debug_heavy" ]; then
	configure_args+=" --enable-debug=heavy"
	makedepends+=" ncurses-devel"
elif [ "$build_option_debug" ]; then
	configure_args+=" --enable-debug"
	makedepends+=" ncurses-devel"
fi

post_install() {
	vdoc README
	vdoc docs/README.video

	vinstall ${FILESDIR}/${pkgname}.png 644 usr/share/pixmaps
	vinstall ${FILESDIR}/${pkgname}.desktop 644 usr/share/applications
}
