SUMMARY="A conversion utility for EPOC32 (Psion) files"
DESCRIPTION="The Psion 5(MX) has several built-in applications. They use their \
own file formats to save data files. Psion has written file conversion \
utilities for Windows 95, in the form of their PsiWin program. But there are \
no conversion utilities for other operating systems. Also, Psion is not able \
to or does not want to release enough data for others to write their own \
conversion programs. At least, that is what I have gathered through the \
newsgroups and from other sources.

The Psion 5MX uses mostly the same file formats as the Psion 5; the conversion \
utilities seem to work, though you might get a few additional warnings. I own \
a 5MX myself now, so this will improve. Other Psion PDA's might be supported \
too, and even other machines running EPOC32. The Psion Series 3 uses EPOC16, \
and are not supported.
"
HOMEPAGE="http://software.frodo.looijaard.name/psiconv/"
REVISION="1"
LICENSE="GNU GPL v2"
COPYRIGHT="1999-2005  Frodo Looijaard"
ARCHITECTURES="x86_gcc2 x86"

SOURCE_URI="${HOMEPAGE}files/psiconv-$portVersion.tar.gz"
CHECKSUM_SHA256="1eee15b29ddcbfd2d15e0a0d26f59e28bac281c870b77418fa369dceed796806"
PATCHES="psiconv-$portVersion.patchset"

PROVIDES="
	psiconv = $portVersion
	cmd:psiconv
	cmd:psiconv_config
	lib:libpsiconv = 6.4.2 compat >= 6
"

REQUIRES="
	haiku
"

BUILD_PREREQUIRES="
	haiku_devel
	cmd:aclocal
	cmd:autoconf
	cmd:gcc
	cmd:libtoolize
	cmd:make
"

GLOBAL_WRITABLE_FILES="
	settings/psiconv/psiconv.conf keep-old
	settings/psiconv/psiconv.conf.eg keep-old
"

BUILD()
{
	libtoolize --force --copy --install
	aclocal
	autoconf
	runConfigure ./configure
	make $jobArgs
}

INSTALL()
{
	make install

	prepareInstalledDevelLib libpsiconv
	packageEntries devel $developDir
}

PROVIDES_devel="
	psiconv_devel = $portVersion
	devel:libpsiconv = 6.4.2 compat >= 6
"

REQUIRES_devel="
	psiconv == $portVersion base
"
