# $Id: Portfile,v 1.2 2005/01/25 02:56:38 toby Exp $

PortSystem 1.0
name             libedit
version          2.6.9
revision         1
categories       devel
maintainers      toby@opendarwin.org
description      command line editing and history library
long_description \
	libedit is a command line editing and history library. \
	It is designed to be used by interactive programs that \
	allow the user to type commands at a terminal prompt.
homepage         ftp://ftp.astron.com/pub/libedit/
platforms        darwin
master_sites     ${homepage}
checksums        md5 a007a8134d9daf4340c985085441ca6d

patchfiles       patch-configure
post-patch {
	reinplace "s|/man/man|/share/man/man|" \
		${worksrcpath}/Makefile.in
}

configure.args   --disable-readline

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

# By default, don't conflict with readline port.
variant readline {
	configure.args-delete --disable-readline
}

variant debug {
	configure.args --enable-debug
}
