# $Id: Portfile,v 1.1 2005/07/14 14:24:50 mww Exp $

PortSystem 1.0

name			ossp-uuid
version			1.2.0
categories		devel
platforms		darwin
maintainers		mww@opendarwin.org
description		ISO-C API and CLI for generating Universally Unique Identifiers
long_description	"${description}"

homepage		http://www.ossp.org/pkg/lib/uuid/
master_sites	ftp://ftp.ossp.org/pkg/lib/uuid/ freebsd
distname		uuid-${version}
checksums		md5 84203049ea9bf80a9e1f7f8ee4f78da8

configure.args	--mandir=${prefix}/share/man --without-perl
configure.env	CFLAGS="-D_POSIX_C_SOURCE"

test.run		yes
test.target		check

pre-destroot {
	# crude hack to get Makefile to install
	reinplace "s|^install:|install: dummy|g" ${worksrcpath}/Makefile
	system "touch ${worksrcpath}/dummy"
}
