# $Id: Portfile 71533 2010-09-15 20:26:12Z ryandesign@macports.org $
PortSystem		1.0

name			i386-mingw32-runtime
version			3.15.2
maintainers		landonf
description		Free Microsoft C runtime, headers and import libraries.
long_description	Free Microsoft C runtime, headers and import libraries to \
			support cross-compilation of software written for \
			the Microsoft Windows. Maintained by the MinGW developers.
homepage		http://www.mingw.org
categories		cross devel

# Parameters for this port.
set crossgcc-target i386-mingw32

platforms		darwin
master_sites		sourceforge:mingw
distname		mingwrt-${version}-mingw32-dev
dist_subdir		${name}/${version}_1
checksums		md5     f24d63744af66b54547223bd5476b8f0 \
			sha1    9f562408b94202ecff558e683e5d7df5440612c4 \
			rmd160  42ed8faa0bc26918f192ade6ab011ab462c66693

extract.dir		${worksrcpath}
extract.mkdir	yes

# Nothing to configure
use_configure		no

# Nothing to build
build {}

destroot.violate_mtree	yes
destroot {
	file mkdir ${destpath}${prefix}/${crossgcc-target}
	foreach dir {include lib doc share} {
		file copy -force ${worksrcpath}/$dir ${destpath}${prefix}/${crossgcc-target}
	}
}
