# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0

name                freedink
version             1.08.20090120
revision            6
categories          games
platforms           darwin
license             GPL-3+
maintainers         nomaintainer

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            https://www.gnu.org/software/freedink/
platforms           darwin
master_sites        gnu

checksums           rmd160  3d856f472dfd733af0a6f8d20c6d1ae810982268 \
                    sha256  876a82c29424c10c6abf488a8feed2688cc815620ffa927bdaf268dfacff67bf \
                    size    1166478

depends_build       port:pkgconfig
depends_lib         port:libsdl \
                    port:libsdl_gfx \
                    port:libsdl_image \
                    port:libsdl_mixer \
                    port:libsdl_ttf \
                    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
