summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Brand <mabrand@mabrand.nl>2020-07-29 00:27:38 (GMT)
committerMark Brand <mabrand@mabrand.nl>2020-07-29 00:27:38 (GMT)
commit27d5c11ac100f5cf4d2ac3eb48dae1bacfdf6512 (patch)
tree051bdab59a6b46b2a77022f578434c6db5ad0e27
parent4078179042b33d77c8659aad2eeee6f211c52b5e (diff)
downloadmxe-27d5c11ac100f5cf4d2ac3eb48dae1bacfdf6512.zip
mxe-27d5c11ac100f5cf4d2ac3eb48dae1bacfdf6512.tar.gz
mxe-27d5c11ac100f5cf4d2ac3eb48dae1bacfdf6512.tar.bz2
update poppler
-rw-r--r--src/poppler-1-win32.patch48
-rw-r--r--src/poppler.mk4
2 files changed, 27 insertions, 25 deletions
diff --git a/src/poppler-1-win32.patch b/src/poppler-1-win32.patch
index 08f0e23..9d6e606 100644
--- a/src/poppler-1-win32.patch
+++ b/src/poppler-1-win32.patch
@@ -15,15 +15,15 @@ diff --git a/poppler/GlobalParamsWin.cc b/poppler/GlobalParamsWin.cc
index 1111111..2222222 100644
--- a/poppler/GlobalParamsWin.cc
+++ b/poppler/GlobalParamsWin.cc
-@@ -407,7 +407,7 @@ void GlobalParams::setupBaseFonts(const char * dir)
+@@ -382,7 +382,7 @@ void GlobalParams::setupBaseFonts(const char *dir)
- GooString *fontName = new GooString(displayFontTab[i].name);
+ GooString *fontName = new GooString(displayFontTab[i].name);
- if (dir) {
+ if (dir && displayFontTab[i].t1FileName) {
GooString *fontPath = appendToPath(new GooString(dir), displayFontTab[i].t1FileName);
- if (FileExists(fontPath->c_str()) ||
- FileExists(replaceSuffix(fontPath, ".pfb", ".pfa")->c_str())) {
+ if (FileExists(fontPath->c_str()) || FileExists(replaceSuffix(fontPath, ".pfb", ".pfa")->c_str())) {
+ addFontFile(fontName, fontPath);
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: darealshinji <djcj@gmx.de>
@@ -41,8 +41,8 @@ index 1111111..2222222 100644
-#if defined(_WIN32)
+#if defined(_WIN32) && defined(DLL_EXPORT)
- # define LIB_EXPORT __declspec(dllexport)
- # define LIB_IMPORT __declspec(dllimport)
+ # define LIB_EXPORT __declspec(dllexport)
+ # define LIB_IMPORT __declspec(dllimport)
#else
diff --git a/poppler/GlobalParams.cc b/poppler/GlobalParams.cc
index 1111111..2222222 100644
@@ -54,28 +54,28 @@ index 1111111..2222222 100644
+#ifdef DLL_EXPORT
extern "C" {
- /* Provide declaration to squelch -Wmissing-declarations warning */
- BOOL WINAPI
-@@ -124,6 +125,7 @@ extern "C" {
+ /* Provide declaration to squelch -Wmissing-declarations warning */
+ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved);
+@@ -118,6 +119,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
return TRUE;
- }
+ }
}
+#endif
- static const char *
- get_poppler_datadir (void)
+ static const char *get_poppler_datadir(void)
+ {
diff --git a/qt5/src/poppler-export.h b/qt5/src/poppler-export.h
index 1111111..2222222 100644
--- a/qt5/src/poppler-export.h
+++ b/qt5/src/poppler-export.h
@@ -2,7 +2,7 @@
- * This file is used to set the poppler_qt5_EXPORT macros right.
- * This is needed for setting the visibility on windows, it will have no effect on other platforms.
- */
+ * This file is used to set the poppler_qt5_EXPORT macros right.
+ * This is needed for setting the visibility on windows, it will have no effect on other platforms.
+ */
-#if defined(_WIN32)
+#if defined(_WIN32) && defined(DLL_EXPORT)
- # define _POPPLER_QT5_LIB_EXPORT __declspec(dllexport)
- # define _POPPLER_QT5_LIB_IMPORT __declspec(dllimport)
+ # define _POPPLER_QT5_LIB_EXPORT __declspec(dllexport)
+ # define _POPPLER_QT5_LIB_IMPORT __declspec(dllimport)
#elif defined(__GNUC__)
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
@@ -94,10 +94,10 @@ index 1111111..2222222 100644
#include "Page.h"
-#if defined(HAVE_FCNTL_H) && defined(HAVE_SYS_MMAN_H) && defined(HAVE_SYS_STAT_H)
--#include <fcntl.h>
--#include <sys/stat.h>
--#include <sys/mman.h>
--#define CAN_CHECK_OPEN_FACES 1
+-# include <fcntl.h>
+-# include <sys/stat.h>
+-# include <sys/mman.h>
+-# define CAN_CHECK_OPEN_FACES 1
-#endif
-
//------------------------------------------------------------------------
@@ -114,21 +114,23 @@ diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1111111..2222222 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
-@@ -45,9 +45,10 @@ set (CMAKE_CXX_EXTENSIONS OFF)
+@@ -45,10 +45,11 @@ set (CMAKE_CXX_EXTENSIONS OFF)
# command line switches
option(ENABLE_UNSTABLE_API_ABI_HEADERS "Install API/ABI unstable xpdf headers." OFF)
-option(BUILD_GTK_TESTS "Whether to compile the GTK+ test programs." ON)
-option(BUILD_QT5_TESTS "Whether to compile the Qt5 test programs." ON)
+-option(BUILD_QT6_TESTS "Whether to compile the Qt6 test programs." ON)
-option(BUILD_CPP_TESTS "Whether to compile the CPP test programs." ON)
+option(ENABLE_TESTS "Whether compile tests." ON)
+option(BUILD_GTK_TESTS "Whether to compile the GTK+ test programs." ${ENABLE_TESTS})
+option(BUILD_QT5_TESTS "Whether to compile the Qt5 test programs." ${ENABLE_TESTS})
++option(BUILD_QT6_TESTS "Whether to compile the Qt6 test programs." ${ENABLE_TESTS})
+option(BUILD_CPP_TESTS "Whether to compile the CPP test programs." ${ENABLE_TESTS})
option(ENABLE_SPLASH "Build the Splash graphics backend." ON)
option(ENABLE_UTILS "Compile poppler command line utils." ON)
option(ENABLE_CPP "Compile poppler cpp wrapper." ON)
-@@ -719,7 +720,9 @@ endif()
+@@ -730,7 +731,9 @@ endif()
if(ENABLE_GLIB)
add_subdirectory(glib)
endif()
diff --git a/src/poppler.mk b/src/poppler.mk
index 9e96ad4..f4e4ed9 100644
--- a/src/poppler.mk
+++ b/src/poppler.mk
@@ -3,8 +3,8 @@
PKG := poppler
$(PKG)_WEBSITE := https://poppler.freedesktop.org/
$(PKG)_IGNORE :=
-$(PKG)_VERSION := 0.90.0
-$(PKG)_CHECKSUM := 94edb0ad3330b74d22caac807aa501e9cc61cbf45a8010625670428b51989685
+$(PKG)_VERSION := 0.90.1
+$(PKG)_CHECKSUM := 984d82e72e91418d280885298c8bdc855a2fd92665fd52a1345b27235e0c71c4
$(PKG)_SUBDIR := poppler-$($(PKG)_VERSION)
$(PKG)_FILE := poppler-$($(PKG)_VERSION).tar.xz
$(PKG)_URL := https://poppler.freedesktop.org/$($(PKG)_FILE)