# -*- 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                    monster-masher
version                 1.8.1
license                 GPL-2+
description             Monster Masher is an action game for the Gnome desktop environment.
long_description        Monster Masher is an action game for the Gnome desktop \
                        environment. The basic idea is that you, as levitation \
                        worker gnome, has to clean the caves for monsters that \
                        want to roll over you. You do the cleaning by mashing \
                        the monsters with stone blocks.
maintainers             nomaintainer
categories              gnome games
platforms               darwin
homepage                http://people.iola.dk/olau/monster-masher/
master_sites            ${homepage}source

use_bzip2               yes

checksums               rmd160  9e90b75c1dfbc248961f095e03536989a793ac60 \
                        sha256  09f710fe1293fc6c8791ed569d02143c238659f8b635b364f59f08ab6c5ea5b1

depends_build           port:intltool \
                        port:pkgconfig

depends_lib             port:desktop-file-utils \
                        port:esound \
                        port:libgnome \
                        port:gconfmm \
                        port:gtkmm \
                        port:libgnomecanvasmm \
                        port:libglademm

configure.ldflags-append -lesd

post-activate {
    system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
    system "export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` && \
        gconftool-2 --makefile-install-rule ${prefix}/etc/gconf/schemas/*.schemas"
}

livecheck.type          regex
livecheck.url           ${master_sites}
livecheck.regex         "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"