new package: poppler-qt
This commit is contained in:
parent
81ceda4949
commit
211f76fcd3
25
x11-packages/poppler-qt/build.sh
Normal file
25
x11-packages/poppler-qt/build.sh
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
TERMUX_PKG_HOMEPAGE=https://poppler.freedesktop.org/
|
||||||
|
TERMUX_PKG_DESCRIPTION="PDF rendering library"
|
||||||
|
TERMUX_PKG_LICENSE="GPL-2.0"
|
||||||
|
TERMUX_PKG_MAINTAINER="@termux"
|
||||||
|
TERMUX_PKG_VERSION=22.04.0
|
||||||
|
TERMUX_PKG_SRCURL=https://poppler.freedesktop.org/poppler-${TERMUX_PKG_VERSION}.tar.xz
|
||||||
|
TERMUX_PKG_SHA256=813fb4b90e7bda63df53205c548602bae728887a60f4048aae4dbd9b1927deff
|
||||||
|
TERMUX_PKG_DEPENDS="fontconfig, freetype, glib, libc++, libcairo, libcurl, libiconv, libjpeg-turbo, libpng, libtiff, littlecms, openjpeg, openjpeg-tools, qt5-qtbase, zlib"
|
||||||
|
TERMUX_PKG_BUILD_DEPENDS="boost, boost-headers, qt5-qtbase-cross-tools"
|
||||||
|
TERMUX_PKG_BREAKS="poppler, poppler-dev"
|
||||||
|
TERMUX_PKG_REPLACES="poppler, poppler-dev"
|
||||||
|
TERMUX_PKG_CONFLICTS="poppler"
|
||||||
|
TERMUX_PKG_PROVIDES="poppler"
|
||||||
|
#texlive needs the xpdf headers
|
||||||
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
||||||
|
-DENABLE_GLIB=ON
|
||||||
|
-DENABLE_UNSTABLE_API_ABI_HEADERS=ON
|
||||||
|
-DENABLE_QT5=ON
|
||||||
|
-DENABLE_QT6=OFF
|
||||||
|
-DFONT_CONFIGURATION=fontconfig
|
||||||
|
"
|
||||||
|
|
||||||
|
termux_step_pre_configure() {
|
||||||
|
CPPFLAGS+=" -DCMS_NO_REGISTER_KEYWORD"
|
||||||
|
}
|
12
x11-packages/poppler-qt/force-termux-include-dirs.patch
Normal file
12
x11-packages/poppler-qt/force-termux-include-dirs.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
--- ./CMakeLists.txt.orig 2020-03-01 20:52:52.000000000 +0100
|
||||||
|
+++ ./CMakeLists.txt 2020-03-20 07:09:18.713276868 +0100
|
||||||
|
@@ -316,6 +316,9 @@
|
||||||
|
set(CMAKE_CXX_FLAGS "${DEFAULT_COMPILE_WARNINGS} ${CMAKE_CXX_FLAGS}")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -I@TERMUX_PREFIX@/include")
|
||||||
|
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -I@TERMUX_PREFIX@/include")
|
||||||
|
+
|
||||||
|
include(ConfigureChecks.cmake)
|
||||||
|
configure_file(config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h)
|
||||||
|
configure_file(poppler/poppler-config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/poppler/poppler-config.h)
|
26
x11-packages/poppler-qt/gstrtod.cc.patch
Normal file
26
x11-packages/poppler-qt/gstrtod.cc.patch
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
diff -u -r ../poppler-0.26.2/goo/gstrtod.cc ./goo/gstrtod.cc
|
||||||
|
--- ../poppler-0.26.2/goo/gstrtod.cc 2014-04-26 17:37:22.000000000 +0200
|
||||||
|
+++ ./goo/gstrtod.cc 2014-06-26 08:44:42.000000000 +0200
|
||||||
|
@@ -41,7 +41,9 @@
|
||||||
|
{
|
||||||
|
char *fail_pos;
|
||||||
|
double val;
|
||||||
|
+#ifndef __ANDROID__
|
||||||
|
struct lconv *locale_data;
|
||||||
|
+#endif
|
||||||
|
const char *decimal_point;
|
||||||
|
int decimal_point_len;
|
||||||
|
const char *p, *decimal_point_pos;
|
||||||
|
@@ -50,8 +52,12 @@
|
||||||
|
|
||||||
|
fail_pos = nullptr;
|
||||||
|
|
||||||
|
+#ifdef __ANDROID__
|
||||||
|
+ decimal_point = ".";
|
||||||
|
+#else
|
||||||
|
locale_data = localeconv();
|
||||||
|
decimal_point = locale_data->decimal_point;
|
||||||
|
+#endif
|
||||||
|
decimal_point_len = strlen(decimal_point);
|
||||||
|
|
||||||
|
decimal_point_pos = nullptr;
|
Loading…
Reference in New Issue
Block a user