# -*- 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
PortGroup           github 1.0

github.setup        jralls gtk-quartz-engine 0.2 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision            2
categories          gnome aqua
maintainers         nomaintainer

description         Quartz theme engine for Gtk+

long_description    {*}${description}

checksums           rmd160  f2ae0bccf168a8281c82933d77fe96958603a102 \
                    sha256  56441340aabd79ead12fea043d5772084e9f76d066b1ccb34a77469e1f453031 \
                    size    29663

depends_build       port:automake \
                    port:libtool \
                    path:bin/pkg-config:pkgconfig

depends_lib         port:libpng \
                    path:lib/pkgconfig/gtk+-2.0.pc:gtk2

patchfiles          patch-autogen.sh.diff \
                    patch-src-Makefile.am.diff

pre-configure {
    if {![file exists ${prefix}/lib/pkgconfig/gdk-quartz-2.0.pc]} {
        ui_error "

****
**** ${name} is meant to be used only in a gtk2 quartz
**** environment but your version of gtk2 does not support quartz.
**** Please reinstall the gtk2 port and all of its dependencies
**** with the variants +quartz and then try again.
****
"
        return -code error "gtk2 +quartz not installed"
    }
}

configure.cmd       ./autogen.sh

notes "
To use ${name}, copy ${prefix}/share/themes/Quartz/gtk-2.0/gtkrc to ~/.gtkrc-2.0
"
