# $Id: Portfile 45802 2009-01-22 11:43:32Z digdog@macports.org $

PortSystem 1.0
name		chmdump
version		20030521
categories	textproc
maintainers	digdog
description     a Microsoft HTML Help (.CHM) file dumper.
long_description \
	A tool that dumps out all the files in a \
	Microsoft HTML Help (.CHM) file.
homepage	http://www.speakeasy.org/~russotto/chm/
platforms	darwin

master_sites	${homepage}
distname	chmtools
checksums	md5 614b91758ddbeb0ab1c4186fdd13d78a

patchfiles	patch-chmlib.h

use_configure	no

build.target

build.args      CFLAGS=-D_POSIX_SOURCE

platform darwin powerpc {
    build.args CFLAGS="-D_POSIX_SOURCE -DBIG_ENDIAN" 
}

destroot {
	xinstall -m 555 ${worksrcpath}/${name} ${destroot}/${prefix}/bin
}
