1SUMMARY="A translator for PDF files"
2DESCRIPTION="This is a translator for PDF files based on the MuPDF library.
3
4By installing this translator, any application that's using Haiku's data \
5translation system to load images, will be able to open a PDF as an image.
6With ShowImage, for example, you can even browse through multi-page PDFs \
7with its 'Next/Previous page' menu items. WonderBrush, on the other hand, \
8will only load the very first page.
9
10The DataTranslations preferences provide settings for DPI and antialiasing."
11HOMEPAGE="https://github.com/threedeyes/PDFTranslator"
12COPYRIGHT="2012-2022 3dEyes**"
13LICENSE="GNU GPL v3"
14REVISION="3"
15SOURCE_URI="https://github.com/threedeyes/PDFTranslator/archive/$portVersion.tar.gz"
16CHECKSUM_SHA256="a10bd69c624d351d2142b2942fc8d64d1ef8606f255e0e9dd53f991ca9abcd4e"
17SOURCE_DIR="PDFTranslator-$portVersion"
18
19ARCHITECTURES="all !x86_gcc2"
20SECONDARY_ARCHITECTURES="x86"
21
22PROVIDES="
23	pdftranslator$secondaryArchSuffix = $portVersion
24	addon:PDFTranslator$secondaryArchSuffix = $portVersion
25	"
26REQUIRES="
27	haiku$secondaryArchSuffix
28	lib:libmupdf$secondaryArchSuffix
29	"
30
31BUILD_REQUIRES="
32	haiku${secondaryArchSuffix}_devel
33	devel:libmupdf$secondaryArchSuffix >= 1.20
34	"
35BUILD_PREREQUIRES="
36	makefile_engine
37	cmd:g++$secondaryArchSuffix
38	cmd:make
39	"
40
41BUILD()
42{
43	mkdir -p build
44	make CC=g++ $jobArgs
45	make bindcatalogs
46}
47
48INSTALL()
49{
50	mkdir -p $addOnsDir/Translators
51	cp build/PDFTranslator $addOnsDir/Translators
52}
53