# -*- 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 117050 2014-02-14 01:32:54Z devans@macports.org $

PortSystem      1.0

name            gnome-menus
version         3.10.1
set branch      [join [lrange [split ${version} .] 0 1] .]
maintainers     devans openmaintainer
categories      gnome
license         LGPL-2+
platforms       darwin
description     Menu component for the GNOME 3 Desktop.

long_description \
                ${description}

homepage        http://www.gnome.org/
master_sites    gnome:sources/${name}/${branch}/

use_xz          yes

checksums       rmd160  7ea8609b6c142469debd5ef55ebf2e6c68753095 \
                sha256  46950aba274c1ad58234374fa9b235258650737307f3bc396af48eb983668a71

depends_build   port:pkgconfig \
                port:intltool \
                port:gnome-common

depends_lib     path:lib/pkgconfig/glib-2.0.pc:glib2 \
                port:gobject-introspection

# update m4/intltool.m4 and autoreconf

pre-configure {
    copy -force ${prefix}/share/aclocal/intltool.m4 ${worksrcpath}/m4
}

use_autoreconf  yes
autoreconf.args -fvi

configure.args  --enable-introspection \
                --disable-silent-rules

# gobject-introspection uses g-ir-scanner, which uses $CC from env
build.args-append       CC="${configure.cc} ${configure.cc_archflags}"

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

livecheck.type  gnome
