# -*- 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
# $Id$

PortSystem          1.0
PortGroup           qmake 1.0

name                tiled
version             0.9.1
categories          devel games aqua
platforms           darwin
maintainers         nomaintainer
# I'm not going to risk indicating the wrong license and making the port
# distributable when it shouldn't be. Someone else please figure it out.
#license             {BSD GPL-2 LGPL-2}

description         general purpose tile map editor

long_description    ${name} is a ${description}, built to be flexible and \
                    easy to use. In addition to its own map format, Tiled \
                    supports read/write plugins for using it with \
                    proprietary map formats or formats used by other editors.

homepage            http://www.mapeditor.org/
master_sites        sourceforge:project/tiled/tiled-qt/${version}
distname            ${name}-qt-${version}

checksums           rmd160  ab95688730a731c832446c195c8eaa184a904d50 \
                    sha256  6868f8333b8c66835301792051a76e7fc68467619b6e97a85b587f537c36b527

depends_lib-append  port:zlib

patchfiles          patch-src-automappingconverter-automappingconverter.pro.diff \
                    patch-src-libtiled-libtiled.pro.diff \
                    patch-src-plugins-plugin.pri.diff \
                    patch-src-tiled-tiled.pro.diff \
                    patch-src-tmxrasterizer-tmxrasterizer.pro.diff \
                    patch-src-tmxviewer-tmxviewer.pro.diff

test.run            yes
test.target         check

post-destroot {
    eval move [glob ${destroot}${prefix}/bin/*.app] ${destroot}${applications_dir}
}

livecheck.regex     /${name}-qt-(\[0-9.\]+)${extract.suffix}