# -*- 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 115644 2014-01-07 19:50:17Z cal@macports.org $

PortSystem          1.0

name                libnotify
version             0.7.6
set branch          [join [lrange [split ${version} .] 0 1] .]
categories          devel gnome
maintainers         nomaintainer
description         pop-up notification library
long_description \
                    The Desktop Notifications framework provides a standard way of doing \
                    passive pop-up notifications.

platforms           darwin
license             LGPL-2.1+

homepage            http://library.gnome.org/devel/libnotify/
master_sites        gnome:sources/${name}/${branch}

use_xz              yes

checksums           rmd160  7f2ae9f2e75396607e79c2a5781bbe81b3efc9fd \
                    sha256  0ef61ca400d30e28217979bfa0e73a7406b19c32dd76150654ec5b2bdf47d837

depends_build       port:pkgconfig

depends_lib         path:lib/pkgconfig/glib-2.0.pc:glib2 \
                    port:gdk-pixbuf2 \
                    port:gtk3 \
                    port:gobject-introspection \
                    port:xorg-libsm

configure.args      --enable-introspection=yes

pre-activate {
	if {${os.major} == 11 && [lindex [split ${os.version} .] 1] < 2 && ${os.platform} eq "darwin"} {
		ui_error "You must first update to OS X 10.7.2."
		return -code error "You must first update to OS X 10.7.2."
	}
}

platform darwin 8 {
    # The rules enabled by gobject-introspection require GNU make 3.81+
    depends_build-append    port:gmake
    build.cmd               ${prefix}/bin/gmake
}

livecheck.type      gnome-with-unstable
