Files
haikuports/haiku-apps/documentviewer/documentviewer-0.3~git.recipe
waddlesplash 4f180bdb94 Utilize the new "all" ARCHITECTURES keyword in most recipes. (#6189)
x86_64 is used as a baseline: the "x86_64" entry, whatever status it has,
is transformed into "all", and then the other entries in ARCHITECTURES
either dropped or rearranged appropriately.
2021-09-15 15:40:18 -04:00

59 lines
1.5 KiB
Bash

SUMMARY="A viewer supporting PDF and DJVU files"
DESCRIPTION="DocumentViewer is a viewer that supports PDF and DJVU files."
HOMEPAGE="https://github.com/HaikuArchives/DocumentViewer"
COPYRIGHT="2010-2018 Haiku, Inc"
LICENSE="MIT"
REVISION="14"
srcGitRev="31798b0df6240b22a899bbc56d4f9db86279eacd"
SOURCE_URI="$HOMEPAGE/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="717df87f5ec12604d62c4a77aea755ae9ad284cd9c87d0107837806b71c11c6b"
SOURCE_DIR="DocumentViewer-$srcGitRev"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
documentviewer$secondaryArchSuffix = $portVersion
app:DocumentViewer = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libdjvulibre$secondaryArchSuffix
lib:libfreetype$secondaryArchSuffix
lib:libjbig2dec$secondaryArchSuffix
lib:libjpeg$secondaryArchSuffix
lib:libmupdf$secondaryArchSuffix
lib:libopenjp2$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libdjvulibre$secondaryArchSuffix
devel:libfreetype$secondaryArchSuffix
devel:libjbig2dec$secondaryArchSuffix
devel:libjpeg$secondaryArchSuffix
devel:libmupdf$secondaryArchSuffix
devel:libopenjp2$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
makefile_engine
cmd:find
cmd:g++$secondaryArchSuffix
cmd:make
"
BUILD()
{
cd application
make $jobArgs OBJ_DIR=objects
}
INSTALL()
{
mkdir -p $appsDir
cp application/objects/DocumentViewer $appsDir
addAppDeskbarSymlink $appsDir/DocumentViewer
}