SUMMARY="Converts MS Word files to text and ps"
DESCRIPTION="
Antiword is a free software reader for proprietary Microsoft Word documents, \
and is available for most computer platforms. Antiword can convert the \
documents from Microsoft Word version 2, 6, 7, 97, 2000, 2002 and 2003 to \
plain text, PostScript, PDF, and XML/DocBook (experimental).
"
HOMEPAGE="http://www.winfield.demon.nl/#Programmer"
SRC_URI="http://www.winfield.demon.nl/linux/antiword-0.37.tar.gz"
CHECKSUM_MD5="f868e2a269edcbc06bf77e89a55898d1"
REVISION="1"
LICENSE="GNU GPL v2"
COPYRIGHT="1998-2005 A.J. van Os"

ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"

PROVIDES="
	antiword = $portVersion
	cmd:antiword = $portVersion
	cmd:kantiword =$portVersion
	"

REQUIRES="
	haiku >= $haikuVersion
	"

BUILD_REQUIRES="
	haiku_devel >= $haikuVersion
	"

BUILD_PREREQUIRES="
	cmd:gcc
	cmd:make
	"

PATCHES="
	antiword-0.37.patch
	"

USER_SETTINGS_FILES="
	settings/antiword_settings
	"

BUILD()
{

	make --makefile Makefile.haiku BINDIR=$binDir \
		ANTIWORD_SETTINGS=$settingsDir/antiword \
		ANTIWORD_DATA=$dataDir/antiword
}

INSTALL()
{
	make --makefile Makefile.haiku global_install BINDIR=$binDir \
		ANTIWORD_SETTINGS=$settingsDir/antiword \
		ANTIWORD_DATA=$dataDir/antiword
}
