# $Id$

PortSystem 1.0

name		qtc-qtsharp
version		0.7a
categories	devel
license		GPL-2+
platforms	darwin
supported_archs i386 ppc
maintainers	nomaintainer
description	Intermediate C++ glue for Qt C# bindings
long_description	A cross-platform GUI toolkit for Mono and Portable.Net which provides set of classes that bind any CIL language to the Qt toolkit.
homepage	http://qtcsharp.sourceforge.net/
master_sites	sourceforge:project/qtcsharp/qtc/${version}
checksums	md5 3dc0247dfc7d737750f872b07705374a
depends_run	bin:cscc:pnet
depends_lib	lib:libqt.3.3:qt3-mac
use_bzip2	yes
worksrcdir	${name}-20030416
patchfiles	patch-Q_OS_MAC
configure.cmd	qmake
configure.pre_args	INSTALLDIR=${prefix}/lib
build.env	QTDIR=${prefix} PREFIX=${prefix}
destroot.env	QTDIR=${prefix} INSTALL_ROOT=${destroot}

post-configure {
	system "cd ${worksrcpath}/clib/qtc && qmake qtc.pro INSTALLDIR=${prefix}/lib -o Makefile"
	reinplace "s;-lqt;-lqt-mt;" ${worksrcpath}/clib/qtc/Makefile
}