# $Id: Portfile 33359 2008-01-25 01:45:04Z markd@macports.org $

PortSystem	1.0

name			kchmviewer
version			3.1-2
categories		x11
maintainers		markd
platforms		darwin

description		A CHM (Winhelp) files viewer written on Qt/KDE.
long_description	A CHM (Winhelp) files viewer written on Qt/KDE. It \
			can be build as a standalone Qt-based application, \
			or a KDE application. The main point of kchmviewer \
			is compatibility with non-English chm files, including \
			most international charsets.

homepage		http://www.kchmviewer.net/
master_sites		sourceforge
checksums		md5 bc376ce29784f33bf0b5f8d1ae5141bf
# for version 3.1-2 ...
worksrcdir		kchmviewer-3.1

depends_lib		port:qt3 port:chmlib

configure.args		--with-qt-dir=${prefix} \
			--with-qt-includes=${prefix}/include/qt3 \
			--with-extra-includes=${prefix}/include \
			--with-extra-libs=${prefix}/lib

variant kde {
# This is untested
	depends_lib-append	port:kdebase3
	configure.args-append	--with-kde
}
