PortSystem			1.0

name            	arm-none-linux-gnueabi-runtime
version         	cs2005q3.2

# Parameters for this port.
set scratchboxversion	1.0.5

description     	headers and precompiled libraries arm-none-linux-gnueabi (Nokia Internet Tablet), obtained from scratchbox.
long_description	${description}
homepage		http://www.scratchbox.org/
platforms       	darwin
categories      	cross devel
maintainers     	nomaintainer
master_sites		http://www.scratchbox.org/download/files/sbox-releases/apophis/tarball/
distfiles			scratchbox-toolchain-${version}-glibc-arm-${scratchboxversion}-i386.tar.gz
worksrcdir			scratchbox
checksums			\
					scratchbox-toolchain-${version}-glibc-arm-${scratchboxversion}-i386.tar.gz \
						md5 bbaa58b63cc6c8e5a501126886a9cea5 \
						sha1 4064f834dfa9bd77945222c8259a43a5b3809d95 \
						rmd160 57eb527f2aaf43c850ac9f1e9c7b9a2b890bc3a6

# All cross ports violate the mtree layout.
destroot.violate_mtree	yes

# Download everything to scratchbox/
dist_subdir			scratchbox

post-extract {
	# Trash gcc stuff that will be on the way.
	file delete -force ${worksrcpath}/compilers/${version}-glibc-arm/lib/gcc/
	file delete -force ${worksrcpath}/compilers/${version}-glibc-arm/lib/libiberty.a
}
use_configure       no
build {}
destroot {
	# Install files by copying them.
	xinstall -d ${destroot}${prefix}/arm-none-linux-gnueabi/
	file copy ${worksrcpath}/compilers/${version}-glibc-arm/lib ${destroot}${prefix}/arm-none-linux-gnueabi/
	file copy ${worksrcpath}/compilers/${version}-glibc-arm/usr ${destroot}${prefix}/arm-none-linux-gnueabi/
}

