# $Id: Portfile 50980 2009-05-14 19:41:55Z and.damore@macports.org $
PortSystem		1.0

name			i386-mingw32-w32api
version			3.13
maintainers		landonf
description		Mingw32 Win32 headers and import libraries
long_description	Mingw32 Win32 headers and import libraries to \
			support cross-compilation of software written for \
			the Win32 Application Programming Interface \
			as created by Microsoft.
homepage		http://www.mingw.org
categories		cross devel

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

platforms		darwin
master_sites		sourceforge:mingw
distname		w32api-${version}-mingw32-dev
checksums		md5     a50fff6bc1e1542451722e2650cb53b4 \
			sha1    5eb7d8ec0fe032a92bea3a2c8282a78df2f1793c \
			rmd160  9d8d456b333a68a8c3df59d2f3cdf76586632c4e

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}
	file copy -force ${worksrcpath}/include ${destpath}/${prefix}/${crossgcc-target}
	file copy -force ${worksrcpath}/lib ${destpath}/${prefix}/${crossgcc-target}
}
