mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-17 17:20:07 +02:00
@PulkoMandy -- you have commit access to HaikuArchives, please do this yourself in the future. We don't need patches in here for repos we have commit access to :)
62 lines
1.6 KiB
Plaintext
62 lines
1.6 KiB
Plaintext
SUMMARY="A viewer supporting PDF and DJVU Files"
|
|
DESCRIPTION="DocumentViewer is a viewer that supports PDF and DJVU Files."
|
|
LICENSE="MIT"
|
|
COPYRIGHT="2010-2014 Haiku, Inc"
|
|
HOMEPAGE="http://github.com/HaikuArchives/DocumentViewer/"
|
|
SRC_URI="https://github.com/HaikuArchives/DocumentViewer/archive/d7ec31b.tar.gz"
|
|
REVISION="2"
|
|
SOURCE_DIR="DocumentViewer-d7ec31bd7ce9462987e245da030d219d0355c693"
|
|
ARCHITECTURES="x86 x86_64"
|
|
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
|
|
# x86_gcc2 is fine as primary target architecture as long as we're building
|
|
# for a different secondary architecture.
|
|
ARCHITECTURES="$ARCHITECTURES x86_gcc2"
|
|
else
|
|
ARCHITECTURES="$ARCHITECTURES !x86_gcc2"
|
|
fi
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
documentviewer$secondaryArchSuffix = $portVersion
|
|
app:documentviewer = $portVersion
|
|
"
|
|
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix >= $haikuVersion
|
|
lib:libdjvulibre$secondaryArchSuffix
|
|
lib:libfreetype$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
lib:libjpeg$secondaryArchSuffix
|
|
lib:libopenjpeg$secondaryArchSuffix
|
|
lib:libjbig2dec$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel >= $haikuVersion
|
|
devel:libdjvulibre$secondaryArchSuffix
|
|
devel:libfitz$secondaryArchSuffix
|
|
devel:libfreetype$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
devel:libjpeg$secondaryArchSuffix
|
|
devel:libopenjpeg$secondaryArchSuffix
|
|
devel:libjbig2dec$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_PREREQUIRES="
|
|
cmd:find
|
|
cmd:g++$secondaryArchSuffix
|
|
cmd:jam
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
jam -q
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
mkdir -p $appsDir
|
|
cp application/DocumentViewer $appsDir
|
|
addAppDeskbarSymlink $appsDir/DocumentViewer
|
|
}
|