Files
haikuports/haiku-apps/documentviewer/documentviewer-0.3.2.recipe
Chris Roberts 8a30e59744 Overhaul the haiku-apps directory
* Fixed PROVIDES/*REQUIRES entries
* Added vcs hashes to the ports needing it in the SRC_URI
* Made single executable apps install to the top level $appsDir
* Added patches for gcc4 versions of most apps
* Added patches for apps that couldn't build on any arch
   ( even though they were marked as working :( )
* Other misc fixes that I've forgotten already because I'm sick of
  looking at this directory
2013-12-02 20:48:05 -07:00

63 lines
1.3 KiB
Plaintext

SUMMARY="DocumentViewer is a Viewer supporting PDF and DJVU Files."
DESCRIPTION="DocumentViewer is a Viewer supporting PDF and DJVU Files."
LICENSE="MIT"
COPYRIGHT="2010-2012 Haiku, Inc"
HOMEPAGE="http://haiku.bplaced.net/"
SRC_URI="http://haiku.bplaced.net/DocumentViewer/sources/documentviewer-0.3.2.zip"
CHECKSUM_MD5="1fddc4292ecb14f343eb18b0bf723b13"
REVISION="2"
ARCHITECTURES="x86"
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
lib:libfreetype
lib:libz
lib:libjpeg
lib:libopenjpeg
lib:libjbig2dec
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel >= $haikuVersion
devel:libdjvulibre
devel:libfitz
devel:libfreetype
devel:libz
devel:libjpeg
devel:libopenjpeg
devel:libjbig2dec
"
BUILD_PREREQUIRES="
cmd:jam
cmd:g++$secondaryArchSuffix
"
SOURCE_DIR="documentviewer-0.3.2"
BUILD()
{
jam
}
INSTALL()
{
mkdir -p $appsDir
cp application/DocumentViewer $appsDir
addAppDeskbarSymlink $appsDir/DocumentViewer
}