SUMMARY="A dictionary for Haiku"
DESCRIPTION="
This program is a BeOS port of KDictionary translation program for Linux by \
Ivan V. Murasko. It follows the main concept of original linux program but \
mainly is a real BeOS program.
"
COPYRIGHT="1999 Ivan V. Murasko"
LICENSE="GNU GPL v2"
HOMEPAGE="https://gitorious.org/desknotes/tolmach"
SOURCE_URI="git+http://github.com/haikuarchives/tolmach.git#5a67e9d38292d5dd482e116e8ee7aa605dee5398"
REVISION="1"

ARCHITECTURES="x86_gcc2 x86 ?x86_64"

PROVIDES="
	tolmach = $portVersion
	app:Tolmach = $portVersion
	"

REQUIRES="
	haiku
	"

BUILD_REQUIRES="
	haiku_devel
	"

BUILD_PREREQUIRES="
	makefile_engine
	cmd:gcc
	cmd:make
	"

USER_SETTINGS_FILES="
	settings/Tolmach_Preferences directory"

BUILD()
{
	make BUILDHOME=`finddir B_SYSTEM_DEVELOP_DIRECTORY` OBJ_DIR=objects
}

INSTALL()
{
	mkdir -p $appsDir $dataDir/Tolmach

	cp objects/Tolmach $appsDir
	cp Dictionaries/*.pgb $dataDir/Tolmach

	addAppDeskbarSymlink $appsDir/Tolmach
}
