# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem 1.0

name		chmdump
version		20030521
revision	1
categories	textproc
license		GPL-2+
maintainers	nomaintainer
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.russotto.net/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 755 ${worksrcpath}/${name} ${destroot}${prefix}/bin
}
