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

PortSystem          1.0
PortGroup           github 1.0
PortGroup           yelp 1.0

github.setup        wfx teg 0.12.0
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
categories          games
license             GPL-2
maintainers         nomaintainer
description         Tenes Empanadas Graciela - A risk clone
long_description    Tenes Empanadas Graciela (TEG) is a clone of 'Plan Tactico y \
                    Estrategico de la Guerra', which is a pseudo-clone of Risk, \
                    a multiplayer turn-based strategy game.

checksums           rmd160  241d5f05b14486bf5a6b53b65935530212becddd \
                    sha256  32f2b246d4b525f1eb4809c242f0a654510659135140175cf7f3ab355aa1cbfe \
                    size    5193131

use_autoreconf      yes
autoreconf.cmd       ./autogen.sh

depends_build       port:pkgconfig \
                    port:rarian \
                    port:xmlto \
                    port:autoconf \
                    port:automake \
                    port:libtool

depends_lib         path:lib/pkgconfig/glib-2.0.pc:glib2 \
                    port:goocanvas2 \
                    port:libiconv \
                    port:libxml2 \
                    port:readline

# tegclient invokes gsettings-data-convert
depends_run         port:gconf

patchfiles          patch-configure.in.diff \
                    patch-tegdebug.diff

compiler.cxx_standard 2017

configure.args      --disable-maintainer-mode \
                    --with-readline

configure.cflags-append -fcommon

post-activate {
    system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas"
}
