# $Id: Portfile 81928 2011-08-06 15:24:25Z jmr@macports.org $
PortSystem          	1.0
name                	freedink
version			1.08.20090120
revision                1
categories		games
platforms		darwin
maintainers		gmail.com:verginegiovanni
description		FreeDink is a portable and enhanced version of the Dink Smallwood game engine.
long_description	Dink Smallwood is an adventure/role-playing game, similar to Zelda, \
			made by RTsoft. Besides twisted humour, it includes the actual game editor, \
			allowing players to create hundreds of new adventures called Dink Modules \
			or D-Mods for short.
homepage		http://www.freedink.org
platforms		darwin
master_sites		http://www.freedink.org/snapshots/
checksums		md5 4c877567c85ac3433cc9ae9c2fc54135 \
			sha1 f833442ae337eb9034b7d36b6e98f823a1612a40 \
			rmd160 3d856f472dfd733af0a6f8d20c6d1ae810982268
depends_build	        port:pkgconfig
depends_lib         	path:lib/pkgconfig/sdl.pc:libsdl \
                    	port:libsdl_image \
                    	port:libsdl_gfx \
                    	port:libsdl_ttf \
                    	port:libsdl_mixer \
                    	port:libffi \
			port:libzip \
			port:fontconfig
depends_run		port:freedink-data
patchfiles		patch-configure.diff \
			patch-src-paths.c.diff

post-patch {
	reinplace s|@PREFIX@|${prefix}|g ${worksrcpath}/src/paths.c
}

configure.args          --disable-sdltest
