1SUMMARY="A translator for DjVu files"
2DESCRIPTION="
3This is a translator for DjVu files. DjVu is a computer file format designed \
4primarily to store scanned documents, especially those containing a \
5combination of text, line drawings, indexed color images, and photographs. \
6It uses technologies such as image layer separation of text and \
7background/images, progressive loading, arithmetic coding, and lossy \
8compression for bitonal (monochrome) images. This allows for high-quality, \
9readable images to be stored in a minimum of space, so that they can be made \
10available on the web."
11HOMEPAGE="http://haikuware.ru/software/djvuviewer"
12COPYRIGHT="2005-2018 3dEyes**"
13LICENSE="GNU GPL v2"
14REVISION="5"
15SOURCE_URI="https://github.com/threedeyes/DjVuViewer/archive/$portVersion.tar.gz"
16CHECKSUM_SHA256="6d2ffc500fd63c4c0a7fa2d996e3b0598820e6b709c06b36bf22e772e23a0c46"
17SOURCE_FILENAME="DjVuViewer-$portVersion.tar.gz"
18SOURCE_DIR="DjVuViewer-$portVersion"
19
20ARCHITECTURES="all"
21SECONDARY_ARCHITECTURES="x86_gcc2 x86"
22
23PROVIDES="
24	djvutranslator$secondaryArchSuffix = $portVersion
25	addon:DjVuTranslator$secondaryArchSuffix = $portVersion
26	"
27REQUIRES="
28	haiku$secondaryArchSuffix
29	lib:libdjvulibre$secondaryArchSuffix
30	"
31
32BUILD_REQUIRES="
33	haiku${secondaryArchSuffix}_devel
34	devel:libdjvulibre$secondaryArchSuffix
35	"
36BUILD_PREREQUIRES="
37	cmd:g++$secondaryArchSuffix
38	cmd:make
39	"
40
41BUILD()
42{
43	make $jobArgs -f Makefile.Translator
44}
45
46INSTALL()
47{
48	mkdir -p $addOnsDir/Translators
49	cp DjVuTranslator $addOnsDir/Translators
50}
51