# $Id: Portfile 82112 2011-08-08 13:26:45Z jmr@macports.org $

PortSystem      1.0

name            gq
version         1.2.1
revision        2
categories      net
platforms       darwin
maintainers     gmail.com:syzdek
description     GQ is a GTK-based LDAP client.
long_description ${description}
homepage        http://gq-project.org/
master_sites    sourceforge:gqclient

checksums       md5 e56613c81e70727c20ffe9974cdc6df0 \
                sha1 96f9e93b43156903fa6872f46bc96a0d644c4029 \
                rmd160 4f6c549c3841ed23d3e69cad84175fb61cb6e32d

depends_build   port:intltool \
                port:pkgconfig
depends_lib     path:lib/pkgconfig/glib-2.0.pc:glib2 \
                port:gtk2 \
                port:expat \
                port:openldap \
                port:openssl \
                port:libgnome-keyring \
                port:libglade2

configure.ldflags-append -lcrypto
configure.args  --disable-update-mimedb \
                --with-ssl-prefix=${prefix} \
                --with-ldap-prefix=${prefix}

post-activate {
    system "${prefix}/bin/update-mime-database ${prefix}/share/mime; true"
}
