# -*- 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: Portfile 120310 2014-05-22 21:36:17Z cal@macports.org $

PortSystem          1.0

PortGroup           active_variants 1.1

name                girara
version             0.2.0
categories          devel gnome
platforms           darwin
license             zlib
maintainers         gmail.com:starkhalo
description         Cross-platform widget toolkit based on GTK+
long_description \
    girara is a library that implements a user interface that focuses on    \
    simplicity and minimalism. Currently based on GTK+, a cross-platform    \
    widget toolkit, it proves an interface that focueses on three main com- \
    ponents: A so-called view widget that represents the actual application \
    (e.g. a website (browser), an image (image viewer) or the document      \
    (document viewer)), an input bar that is used to execute commands of    \
    the application and the status bar which provides the user with current \
    information.

homepage            http://pwmt.org/projects/${name}/

master_sites        ${homepage}download/

checksums           \
    rmd160 e89c075c353548740ab9e3de1d8e6ccea61823f6 \
    sha256 d14b54cb04d81ba3b84ad41c5e68951d250b455d0862add1c987e3af9e2e174d

patchfiles          patch-Makefile.diff \
                    patch-config.mk.diff

depends_build       port:pkgconfig

depends_lib         path:lib/libglib-2.0.dylib:glib2 \
                    port:gtk3 \
                    port:intltool

require_active_variants \
                    gtk3 x11 quartz

use_configure       no

variant universal   {}

build.args          PREFIX=${prefix}
build.env           CC=${configure.cc} \
                    CXX=${configure.cxx} \
                    CPP=${configure.cpp} \
                    CFLAGS="[get_canonical_archflags cc]" \
                    LDFLAGS="[get_canonical_archflags ld]" \
                    VERBOSE=1

eval destroot.env   ${build.env}
eval destroot.args  ${build.args}

livecheck.type      regex
livecheck.url       ${master_sites}
livecheck.regex     (\\d\\.\\d\\.\\d)
