# $Id: Portfile 30224 2007-10-22 22:49:14Z jmpp@macports.org $

PortSystem 1.0
name		cocoa-sharp
version		0.2
categories	devel
platforms	macosx
maintainers	nomaintainer
description	Cocoa bindings for the Mono .NET Development Framework
long_description	These are Cocoa bindings for Mono, which is an \
			implementation of the .NET Development Framework.

homepage	http://www.go-mono.org/
master_sites	${homepage}archive/1.1.4/
extract.suffix	.tgz
checksums	md5 dfbbf5871a38ecb3bd50799831b16f05

depends_lib	bin:mono:mono \
			bin:automake:automake

worksrcdir	${name}

pre-configure {
	reinplace "s|aclocal$|aclocal -I ${prefix}/share/aclocal|" \
		"${worksrcpath}/autogen.sh"
	foreach fw {Foundation AppKit WebKit} {
		reinplace "s|libCocoa|${prefix}/lib/libCocoa|" \
			"${worksrcpath}/src/Apple.$fw/Apple.$fw.dll.config"
	}
}
configure.cmd	./autogen.sh
			
destroot.destdir	DESTDIR=${destroot} \
	GACUTIL_FLAGS='/package ${name} /root ${destroot}\$(libdir)'
