# $Id: Portfile,v 1.17 2006/03/01 05:38:49 markd Exp $

PortSystem 1.0
name		popt
version		1.10.4
revision	1
categories	devel
maintainers	n3npq@mac.com
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://wraptastic.org/pub/rpm-4.4.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 --with-included-gettext

destroot.args	localedir=${prefix}/share/locale
post-destroot {
	file delete -force ${destroot}${prefix}/share/locale/locale.alias
	file delete -force ${destroot}${prefix}/lib/charset.alias
}

checksums	md5 dd22a6873b43d00f75e1c1b7dcfd1ff7

platform darwin 7 {
        depends_build-append port:autoconf
}   

