# Template file for 'scummvm'
pkgname=scummvm
version=1.5.0
revision=1
makedepends="pkg-config nasm zlib-devel libpng-devel SDL-devel libmad-devel
 fluidsynth-devel libvorbis-devel libtheora-devel libflac-devel faad2-devel
 freetype-devel"
short_desc="Free implementation of LucasArts' SCUMM interpreter"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.scummvm.org/"
license="GPL-2"
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.bz2"
checksum=81831cd878a8daad2976f65c92139a2102233082c7d2770579d7e425b19cea2e
long_desc="
 ScummVM is a 'virtual machine' for several classic graphical point-and-click
 adventure games. It is designed to run Adventure Soft's Simon the Sorcerer
 1 and 2, Revolution's Beneath A Steel Sky, and games based on LucasArts'
 SCUMM (Script Creation Utility for Maniac Mansion) system. SCUMM is used for
 many games, including Monkey Island, Day of the Tentacle, Sam and Max and more.
 See the official compatibility list at http://www.scummvm.org/compatibility.php
 for a full list of supported games."

do_configure() {
	./configure --prefix=/usr --disable-debug \
		--with-freetype2-prefix=/usr --with-sdl-prefix=/usr \
		--enable-plugins --enable-all-engines
}

do_build() {
	make ${makejobs}
}

do_install() {
	vinstall scummvm 755 usr/bin
	vinstall dists/scummvm.6 644 usr/share/man/man6
	vinstall dists/scummvm.desktop 644 usr/share/applications
	vinstall icons/scummvm.xpm 644 usr/share/pixmaps
	vinstall gui/themes/scummmodern.zip 644 usr/share/scummvm
}

scummvm_package() {
	pkg_install() {
		vmove usr
	}
}
