# Template file for 'vbam'
pkgname=vba-m
version=1292
revision=2
wrksrc=sources
build_style=cmake
hostmakedepends="unzip cmake pkg-config"
makedepends="zlib-devel libpng-devel MesaLib-devel SDL-devel gtkmm2-devel gtkglext-devel gtkglextmm-devel ffmpeg-devel gtk+-devel SFML-devel"
short_desc="Gameboy Advance Emulator"
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
license="GPL-2"
homepage="http://sourceforge.net/projects/vbam/"
distfiles="${SOURCEFORGE_SITE}/project/vbam/vbam-src/${pkgname}-SVN${version}-sources.zip"
checksum=edaca73fb9887eef6bab3d573b54c058e3412823e5bdcb3b1b76c4ce9f7ea3eb
configure_args="-DENABLE_GTK=TRUE -DENABLE_FFMPEG=TRUE -DENABLE_LINK=TRUE"
conf_files="/etc/vbam.cfg"

pre_configure() {
	sed 's|Common/|common/|' -i src/gba/debugger-expr-yacc.cpp
}
