mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 06:28:55 +02:00
74 lines
1.3 KiB
Bash
74 lines
1.3 KiB
Bash
SUMMARY="The PDF viewer for Haiku"
|
|
DESCRIPTION="BePDF is a PDF viewer for Haiku. Besides viewing, it supports \
|
|
annotating and user-defined bookmarking for unencrypted PDFs."
|
|
HOMEPAGE="https://haikuarchives.github.io/BePDF/"
|
|
COPYRIGHT="1997 Benoit Triquet
|
|
1999-2000 Hubert Figuiere
|
|
2000-2011 Michael Pfeiffer
|
|
2013-2017 Augustin Cavalier"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="2"
|
|
SOURCE_URI="https://github.com/HaikuArchives/BePDF/archive/$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="2ffad477a0e7ffc3914a227f99918f3a1255da6d5da6f17f6bfd0cf0846d97c6"
|
|
SOURCE_DIR="BePDF-$portVersion"
|
|
|
|
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
|
|
|
PROVIDES="
|
|
bepdf = $portVersion
|
|
app:BePDF = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku
|
|
lib:libbz2
|
|
lib:libfreetype
|
|
lib:libpng16
|
|
lib:libz
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku_devel
|
|
devel:libbz2
|
|
devel:libfreetype
|
|
devel:libpng16
|
|
devel:libz
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
makefile_engine
|
|
cmd:freetype_config
|
|
cmd:gcc
|
|
cmd:htmldoc
|
|
cmd:make
|
|
# cmd:ps2pdf
|
|
"
|
|
|
|
PATCH()
|
|
{
|
|
sed -i 's/long GAtomicCounter/int32 GAtomicCounter/' xpdf/goo/GMutex.h
|
|
}
|
|
|
|
BUILD()
|
|
{
|
|
pushd xpdf
|
|
make $@
|
|
popd
|
|
pushd bepdf
|
|
make $@
|
|
make bindcatalogs
|
|
popd
|
|
|
|
pushd docs
|
|
sh make.sh
|
|
popd
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
mkdir -p $appsDir
|
|
cp -dR dist $appsDir/BePDF
|
|
cp -r docs-build $appsDir/BePDF/docs
|
|
|
|
addAppDeskbarSymlink $appsDir/BePDF/BePDF
|
|
}
|
|
|