# Template file for 'vice'
pkgname=vice
version=2.4
revision=1
build_style=gnu-configure
configure_args="--enable-sdlui"
hostmakedepends="pkg-config bdftopcf mkfontdir"
makedepends="zlib-devel readline-devel libpng-devel giflib-devel SDL-devel"
short_desc="Emulator for C64, C128, CBM-II, PET, VIC20, Plus4 and C16"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2"
homepage="http://vice-emu.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/vice-emu/$pkgname-$version.tar.gz"
checksum=ff8b8d5f0f497d1f8e75b95bbc4204993a789284a08a8a59ba727ad81dcace10

# Package build options
build_options="pulseaudio"
desc_option_pulseaudio="Enable support for Pulseaudio"
build_options_default="pulseaudio"

if [ "$build_option_pulseaudio" ]; then
	configure_args+=" --with-pulse"
	makedepends+=" pulseaudio-devel"
else
	configure_args+=" --without-pulse"
fi
