# $Id: Portfile 70480 2010-08-11 03:13:22Z ryandesign@macports.org $

PortSystem	1.0

name		endian
version		1.0
categories	sysutils
maintainers	tds.net:jwbacon
platforms	darwin
description	Report endianness of a system.
long_description	Accurately determine the endianness of a system by placing a longword into memory and checking the order of the bytes at that address.
homepage	http://personalpages.tds.net/~jwbacon/Ports/
master_sites	${homepage}distfiles/ \
		http://jbacon.dyndns.org/~bacon/Ports/distfiles/
use_configure	no

variant universal {}
if {[variant_isset universal]} {
	set archflags ${configure.universal_ldflags}
} else {
	set archflags ${configure.cc_archflags}
}
build.args	CC="${configure.cc} ${archflags}"

destroot	{
	xinstall -d -m 0755 ${destroot}${prefix}/bin
	xinstall -d -m 0755 ${destroot}${prefix}/share/man/man1
	xinstall -m 0555 ${worksrcpath}/endian ${destroot}${prefix}/bin
	xinstall -m 0444 ${worksrcpath}/endian.1 ${destroot}${prefix}/share/man/man1
}
checksums	md5 83407de0ce534c2be774caca4ae9230c \
		sha1 e983fba4bb564d834d0147d08e439eacdb5a3fa5 \
		rmd160 275bfdad00049030016c4828b121acfecd935ae1
