BePDF: 2.1.0.

This commit is contained in:
Augustin Cavalier
2017-11-22 11:20:24 +01:00
parent f09fc713cb
commit 68c19fdddf
5 changed files with 68 additions and 206 deletions

View File

@@ -1,70 +0,0 @@
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-2016 waddlesplash"
LICENSE="GNU GPL v2"
REVISION="2"
SOURCE_URI="https://github.com/HaikuArchives/BePDF/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="6e36c1607c5bc13daadd63d87fe55653159b672a6480be5ccf43fbc91d350b43"
SOURCE_DIR="BePDF-$portVersion"
if [ "$effectiveTargetArchitecture" = x86_64 ]; then
PATCHES="bepdf-$portVersion.patchset"
fi
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SOURCE_URI_2="https://haikuarchives.github.io/BePDF/English.pdf#noarchive"
CHECKSUM_SHA256_2="963fd77bad6f2018e68724d2904f5a5bed922491e281af57a6fdd7854eecb3ab"
SOURCE_URI_3="https://haikuarchives.github.io/BePDF/Deutsch.pdf#noarchive"
CHECKSUM_SHA256_3="54c30bf2907bdd340fe0989a844f949102eeefe8acd53c62cf44e276ac4d08f0"
SOURCE_URI_4="https://haikuarchives.github.io/BePDF/Espa%C3%B1ol.pdf#noarchive"
CHECKSUM_SHA256_4="d753d20d842ee378e7fd17143d0eb9d4996d0ff9026d3cd86667df6765aa4e2a"
SOURCE_URI_5="https://haikuarchives.github.io/BePDF/Italiano.pdf#noarchive"
CHECKSUM_SHA256_5="994998838d6a2121e83f99b9d3f1802500f29b6061c58a88fc44470d50087e93"
PROVIDES="
bepdf = $portVersion
app:BePDF = $portVersion
"
REQUIRES="
haiku
lib:libfreetype
lib:libz
lib:libbz2
lib:libpng16
"
BUILD_REQUIRES="
haiku_devel
devel:libfreetype
devel:libz
devel:libbz2
devel:libpng16
"
BUILD_PREREQUIRES="
makefile_engine
cmd:gcc
cmd:make
cmd:freetype_config
"
BUILD()
{
./build.sh
cp ../../sources-2/*.pdf dist/docs/
cp ../../sources-3/*.pdf dist/docs/
cp ../../sources-4/*.pdf dist/docs/
cp ../../sources-5/*.pdf dist/docs/
}
INSTALL()
{
mkdir -p $appsDir
cp -dR dist $appsDir/BePDF
addAppDeskbarSymlink $appsDir/BePDF/BePDF
}

View File

@@ -1,72 +0,0 @@
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-2016 waddlesplash"
LICENSE="GNU GPL v2"
REVISION="4"
COMMIT="38b4cb53f073024f9b2e47f56d2feb9bcd91ddca"
SOURCE_URI="https://github.com/HaikuArchives/BePDF/archive/$COMMIT.tar.gz"
CHECKSUM_SHA256="d2f9f81b8b43a37f52dbda12967cc67eabd6c0f7812e85b33d6dc6a2319463ca"
SOURCE_DIR="BePDF-$COMMIT"
if [ "$effectiveTargetArchitecture" = x86_64 ]; then
PATCHES="bepdf-$portVersion.patchset"
fi
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
bepdf$secondaryArchSuffix = $portVersion
app:BePDF = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libfreetype$secondaryArchSuffix
lib:libz$secondaryArchSuffix
lib:libbz2$secondaryArchSuffix
lib:libpng16$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libfreetype$secondaryArchSuffix
devel:libz$secondaryArchSuffix
devel:libbz2$secondaryArchSuffix
devel:libpng16$secondaryArchSuffix
"
BUILD_PREREQUIRES="
makefile_engine
cmd:gcc$secondaryArchSuffix
cmd:make
cmd:freetype_config$secondaryArchSuffix
cmd:htmldoc
#cmd:ps2pdf # Ghostscript is not ported yet, so we can't generate PDF docs.
"
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
}

View File

@@ -0,0 +1,68 @@
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="1"
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
"
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
}

View File

@@ -1,39 +0,0 @@
From 524ac50c7e64b0a5a3ce223f9d3d0764fbf55d6b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Zolt=C3=A1n=20Mizsei?= <zmizsei@extrowerk.com>
Date: Sun, 1 Jan 2017 16:43:52 +0100
Subject: [PATCH] Haiku x86_64 patches
---
bepdf/Makefile | 2 +-
bepdf/beos/BepdfApplication.cpp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/bepdf/Makefile b/bepdf/Makefile
index d3871be..8392b8d 100644
--- a/bepdf/Makefile
+++ b/bepdf/Makefile
@@ -150,7 +150,7 @@ SYMBOLS :=
DEBUGGER :=
# Specify any additional compiler flags to be used.
-COMPILER_FLAGS = -Wno-write-strings
+COMPILER_FLAGS = -Wno-write-strings -fpermissive
# Specify any additional linker flags to be used.
LINKER_FLAGS = $(shell freetype-config --libs)
diff --git a/bepdf/beos/BepdfApplication.cpp b/bepdf/beos/BepdfApplication.cpp
index b45a84b..e60eb25 100644
--- a/bepdf/beos/BepdfApplication.cpp
+++ b/bepdf/beos/BepdfApplication.cpp
@@ -29,7 +29,7 @@
#include <be/app/Roster.h>
#include <be/interface/Screen.h>
#include <be/StorageKit.h>
-#include <be/be_apps/Deskbar/Deskbar.h>
+#include <be/interface/Deskbar.h>
#include <be/interface/Alert.h>
#include <gtypes.h>
--
2.11.0

View File

@@ -1,25 +0,0 @@
From 241d6ddcf8af313d39c79a1c53654eb868eacf4d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Zolt=C3=A1n=20Mizsei?= <zmizsei@extrowerk.com>
Date: Sun, 1 Jan 2017 17:13:55 +0100
Subject: [PATCH] Haiku x64 patch
---
bepdf/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bepdf/Makefile b/bepdf/Makefile
index 6ba6403..fe907b5 100644
--- a/bepdf/Makefile
+++ b/bepdf/Makefile
@@ -150,7 +150,7 @@ SYMBOLS :=
DEBUGGER :=
# Specify any additional compiler flags to be used.
-COMPILER_FLAGS = -Wno-write-strings
+COMPILER_FLAGS = -Wno-write-strings -fpermissive
# Specify any additional linker flags to be used.
LINKER_FLAGS = $(shell freetype-config --libs)
--
2.11.0