# $Id$

PortSystem 1.0

name            ldapvi
version         1.7
revision        1
categories      net sysutils
maintainers     dreamind.de:dreamind
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
platforms       darwin freebsd
master_sites    http://www.lichteblau.com/download/
checksums       md5 6dc2f5441ac5f1e2b5b036e3521012cc \
                sha1 d1cde4cbb618180f9ae0e77c56a1520b8ad61c9a

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

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

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

configure.cppflags-append "-L${prefix}/lib"

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

patchfiles	GNUmakefile-paths.patch \
        configure-in.patch \
        lion.diff \
        patch-ldapvi.c