# $Id: Portfile,v 1.11 2004/03/19 23:18:42 mij Exp $

PortSystem 1.0
name		popt
version		1.7
revision	1
categories	devel
maintainers	landonf@opendarwin.org
description	A getopt(3) like library with a number of enhancements
long_description popt is a command line parsing library. It contains a number of enhancements over getopt(3), including being fully reentrant, allowing users to alias command line arguments, providing convience functions for parsing strings into argv[] style arrays and popt can parse arbitrary argv[] style arrays.

platforms	darwin
master_sites	ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.1.x/ \
		ftp://ftp.mirror.ac.uk/sites/ftp.rpm.org/pub/rpm/dist/rpm-4.1.x/

depends_lib	lib:libintl.3:gettext

post-patch {
        file copy -force /usr/share/libtool/config.guess ${worksrcpath}/config.guess
        file copy -force /usr/share/libtool/config.sub ${worksrcpath}/config.sub
}

configure.args	--mandir=${prefix}/share/man

destroot.args	localedir=${prefix}/share/locale

checksums	md5 5988e7aeb0ae4dac8d83561265984cc9
