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

name                ldapvi
version             1.7
revision            5

platforms           darwin freebsd
categories          net sysutils
license             GPL-2
maintainers         nomaintainer

description         using ldapvi you can update LDAP entries with a text editor
long_description    ldapvi is a small tool, which lets you update LDAP entries with \
                    your favorite editor.

homepage            http://www.lichteblau.com/src.html
master_sites        http://www.lichteblau.com/download/

checksums           rmd160  f4cd1c2fcfc87e7a9e912269e60280e9ecd82156 \
                    sha256  6f62e92d20ff2ac0d06125024a914b8622e5b8a0a0c2d390bf3e7990cbd2e153 \
                    size    119503

depends_build       port:pkgconfig \
                    port:autoconf \
                    port:automake

depends_lib         port:popt \
                    path:lib/libldap.dylib:openldap \
                    path:lib/pkgconfig/glib-2.0.pc:glib2 \
                    port:readline

pre-configure {
    system -W ${worksrcpath} "aclocal && autoconf"
}

destroot.destdir    prefix=${destroot}${prefix}

patchfiles          GNUmakefile-paths.patch \
                    ncurses.diff \
                    lion.diff \
                    patch-ldapvi.patch \
                    missing-declarations.diff