PortSystem 1.0

name		cocoa-sharp
version		0.2
categories	devel
license		GPL-2
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/ http://ftp.novell.com/pub/mono/archive/old/1.1.4/
extract.suffix	.tgz
checksums	md5 dfbbf5871a38ecb3bd50799831b16f05

depends_build	port:pkgconfig bin:autom4te:autoconf bin:automake:automake
depends_lib	port:mono

# mono is not universal
universal_variant	no

worksrcdir	${name}

post-patch {
	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)'
