51 lines
1.4 KiB
Bash
51 lines
1.4 KiB
Bash
SUMMARY="A translator for PDF files"
|
|
DESCRIPTION="This is a translator for PDF files based on MuPDF library.
|
|
|
|
By installing this translator, any application that's using Haiku's data \
|
|
translation system to load images, will be able to open a PDF as an image.
|
|
With ShowImage, for example, you can even browse through multi-page PDFs \
|
|
with its 'Next/Previous page' menu items. WonderBrush, on the other hand, \
|
|
will only load the very first page.
|
|
|
|
The DataTranslations preferences provide settings for DPI and antialiasing."
|
|
HOMEPAGE="https://github.com/threedeyes/PDFTranslator"
|
|
COPYRIGHT="2012-2015 3dEyes**"
|
|
LICENSE="GNU GPL v3"
|
|
REVISION="2"
|
|
srcGitRev="b888404886ce659baf2075ae663a1c59d93b20a3"
|
|
SOURCE_URI="https://github.com/threedeyes/PDFTranslator/archive/$srcGitRev.tar.gz"
|
|
CHECKSUM_SHA256="e29d5b737a434c04f1304c60182dee6e6130b2fc31388b2e0aacd1b74565ba92"
|
|
SOURCE_DIR="PDFTranslator-$srcGitRev"
|
|
|
|
ARCHITECTURES="all"
|
|
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
|
|
|
PROVIDES="
|
|
pdftranslator$secondaryArchSuffix = $portVersion
|
|
addon:PDFTranslator$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libmupdf$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libmupdf$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:g++$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
mkdir -p $addOnsDir/Translators
|
|
cp build/PDFTranslator $addOnsDir/Translators
|
|
}
|