# $Id: Portfile,v 1.5 2005/09/13 06:57:43 olegb Exp $
PortSystem 1.0
name		pmk
version		0.9.2
description	An alternative to GNU autoconf, GNU libtool and pkg-config.
long_description	The pmk project tries to provide an alternative to \
			GNU autoconf, GNU libtool and pkg-config. It also \
			provides a basic BSD install like tool and a source \
			scanner to help building of pmkfiles.
maintainers	darwinports@opendarwin.org
categories	devel
platforms	darwin 
homepage	${name}.sf.net
master_sites	sourceforge
checksums	md5 70ee1e2b77d0a01877d6f576a19fcefa

configure {
	system "cd ${worksrcpath} && ./pmkcfg.sh"
}

post-destroot {
	file rename -force ${destroot}/usr/local/bin ${destroot}${prefix}
	file rename -force ${destroot}/usr/local/share/pmk ${destroot}${prefix}/share/
	file rename -force ${destroot}/usr/local/man/man1/ ${destroot}${prefix}/share/man/
	file rename -force ${destroot}/usr/local/man/man5/ ${destroot}${prefix}/share/man/
	file rename -force ${destroot}/usr/local/man/man8/ ${destroot}${prefix}/share/man/
} 
