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

name            ige-mac-integration
version         0.9.8
## added for stealth update; remove this line when updating
#dist_subdir     ${name}/${version}_1
categories      devel
maintainers     flyn.org:mike

description	Mac OS X menu bar integration library for GTK2 quartz

long_description \
		A simple library whose purpose is to \
		allow GTK2 quartz applications to integrate with \
		the Mac OS X menu bar. Requires gtk2 and its \
                dependencies to be built with variants +no_x11 +quartz

homepage        http://sourceforge.net/projects/gtk-osx
platforms       darwin

master_sites    sourceforge:gtk-osx/GTK-OSX%20Build/
use_bzip2       yes

checksums           sha1    9a19315bb506bbf4319684aef97863b3d7a26b71 \
                    rmd160  4effb26e2fff37bddde2e73840ab83b77b6a75e8

depends_build   port:pkgconfig

depends_lib     port:py27-gtk

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

****
**** ige-mac-integration is meant to be used only in a GTK2 quartz
**** development environment but your version of GTK2 does not
**** support quartz.  Please make sure that port gtk2 and all its
**** dependencies are built with variants +no_x11 +quartz and try again.
****
"
        error "gtk2 +no_x11 +quartz not installed."
    }
}

configure.python ${prefix}/bin/python2.7

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