summaryrefslogtreecommitdiff
path: root/poppler-qt4
diff options
context:
space:
mode:
authorJuergen Daubert <jue@jue.li>2017-01-01 13:36:49 +0100
committerJuergen Daubert <jue@jue.li>2017-01-01 13:36:49 +0100
commit4950e8c19b2cc4539f385a88a8e050dc6c910932 (patch)
tree5bbb18da78d27f77edb57890cb4a9b56727c0e2e /poppler-qt4
parent76f53a5225d32c97c6215eb0b099a969fc053f0c (diff)
downloadopt-4950e8c19b2cc4539f385a88a8e050dc6c910932.tar.gz
opt-4950e8c19b2cc4539f385a88a8e050dc6c910932.tar.xz
poppler-qt4: use cmake build system
Diffstat (limited to 'poppler-qt4')
-rw-r--r--poppler-qt4/.footprint5
-rw-r--r--poppler-qt4/.md5sum1
-rw-r--r--poppler-qt4/.signature7
-rw-r--r--poppler-qt4/Pkgfile41
-rw-r--r--poppler-qt4/poppler-cmake.patch158
5 files changed, 192 insertions, 20 deletions
diff --git a/poppler-qt4/.footprint b/poppler-qt4/.footprint
index 53ad4ec68..b13e003c2 100644
--- a/poppler-qt4/.footprint
+++ b/poppler-qt4/.footprint
@@ -5,16 +5,13 @@ drwxr-xr-x root/root usr/include/poppler/qt4/
-rw-r--r-- root/root usr/include/poppler/qt4/poppler-annotation.h
-rw-r--r-- root/root usr/include/poppler/qt4/poppler-export.h
-rw-r--r-- root/root usr/include/poppler/qt4/poppler-form.h
--rw-r--r-- root/root usr/include/poppler/qt4/poppler-link-private.h
-rw-r--r-- root/root usr/include/poppler/qt4/poppler-link.h
-rw-r--r-- root/root usr/include/poppler/qt4/poppler-media.h
-rw-r--r-- root/root usr/include/poppler/qt4/poppler-optcontent.h
-rw-r--r-- root/root usr/include/poppler/qt4/poppler-page-transition.h
-rw-r--r-- root/root usr/include/poppler/qt4/poppler-qt4.h
drwxr-xr-x root/root usr/lib/
--rw-r--r-- root/root usr/lib/libpoppler-qt4.a
--rwxr-xr-x root/root usr/lib/libpoppler-qt4.la
-lrwxrwxrwx root/root usr/lib/libpoppler-qt4.so -> libpoppler-qt4.so.4.11.0
+lrwxrwxrwx root/root usr/lib/libpoppler-qt4.so -> libpoppler-qt4.so.4
lrwxrwxrwx root/root usr/lib/libpoppler-qt4.so.4 -> libpoppler-qt4.so.4.11.0
-rwxr-xr-x root/root usr/lib/libpoppler-qt4.so.4.11.0
drwxr-xr-x root/root usr/lib/pkgconfig/
diff --git a/poppler-qt4/.md5sum b/poppler-qt4/.md5sum
index 1fa22bbdb..e164f4412 100644
--- a/poppler-qt4/.md5sum
+++ b/poppler-qt4/.md5sum
@@ -1 +1,2 @@
1a4c0cd873bddd8f266b85ab8d799962 poppler-0.50.0.tar.xz
+56403c21d7357d1151d72d3fe26a1bf6 poppler-cmake.patch
diff --git a/poppler-qt4/.signature b/poppler-qt4/.signature
index 797501be7..c4342231c 100644
--- a/poppler-qt4/.signature
+++ b/poppler-qt4/.signature
@@ -1,5 +1,6 @@
untrusted comment: verify with /etc/ports/opt.pub
-RWSE3ohX2g5d/cbpMhQvX+/4wGoZe6Qh0LK4rt4QfsqXVVh9C7roeY1UaFUhSuwpQfkc9e1+XH8DuCd/NZPFE6jet2lTWzWfAAU=
-SHA256 (Pkgfile) = b870e1ab3b83beb077f04b686557aba7dfab4bf4e4fa3b8877fe2b905a3826f5
-SHA256 (.footprint) = f5b68c9d718eba0ea33836b6e0ea145f4e9f81109d2f948e42e671ca1affd5ed
+RWSE3ohX2g5d/ZHmzO3gYDaaVH895nfgfawn6kt7E7cuOeEyHQz2bWHpo1pjE5b6yYxhox44bbgCdFcB2WxHXz4wI5aH1YINPws=
+SHA256 (Pkgfile) = 7253d343c9e047012b8c8a359ece10b41a456dd2390d54885dc7029a8af3b8e2
+SHA256 (.footprint) = 24a302bd42d6cd66ea4463815b86618190c384ee8d69d809391f7af6818cd367
SHA256 (poppler-0.50.0.tar.xz) = c9c93318b789d3933f6e0bad3bc65110280c28eac3f0666284bb9c9a0ab4bc36
+SHA256 (poppler-cmake.patch) = dc3074f93cfcbdbf9b7934763cf1de3d8fdfef5665f503c0471f8aa4e2166dc7
diff --git a/poppler-qt4/Pkgfile b/poppler-qt4/Pkgfile
index e7592a2e2..8cb06c2ce 100644
--- a/poppler-qt4/Pkgfile
+++ b/poppler-qt4/Pkgfile
@@ -1,27 +1,42 @@
-# Description: QT4-based shared library for poppler
+# Description: qt4 wrapper for poppler
# URL: http://poppler.freedesktop.org/
# Maintainer: Juergen Daubert, jue at crux dot nu
-# Depends on: qt4 poppler
+# Depends on: qt4 poppler
name=poppler-qt4
version=0.50.0
-release=1
-source=(http://poppler.freedesktop.org/poppler-$version.tar.xz)
+release=2
+source=(http://poppler.freedesktop.org/poppler-$version.tar.xz
+ poppler-cmake.patch)
build() {
cd poppler-$version
- ./configure --prefix=/usr \
- --mandir=/usr/man \
- --enable-{zlib,libjpeg,libpng} \
- --enable-cms=lcms2 \
- --enable-libopenjpeg=none \
- --disable-utils \
- --disable-poppler-{qt5,glib,cpp}
+ patch -p0 -i $SRC/poppler-cmake.patch
+
+ cmake . \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DENABLE_XPDF_HEADERS=OFF \
+ -DENABLE_UTILS=OFF \
+ -DENABLE_SPLASH=ON \
+ -DENABLE_CAIRO=OFF \
+ -DENABLE_CPP=OFF \
+ -DENABLE_GLIB=OFF \
+ -DENABLE_QT4=ON \
+ -DENABLE_QT5=OFF \
+ -DENABLE_ZLIB=ON \
+ -DENABLE_CMS=lcms2 \
+ -DENABLE_LIBOPENJPEG=OFF \
+ -DENABLE_NSS3=OFF \
+ -DBUILD_GTK_TESTS=OFF \
+ -DBUILD_QT4_TESTS=OFF \
+ -DBUILD_QT5_TESTS=OFF \
+ -DBUILD_CPP_TESTS=OFF \
make
make DESTDIR=$PKG install
- rm $PKG/usr/lib/pkgconfig/poppler{,-cairo,-splash}.pc
- rm $PKG/usr/lib/libpoppler.*
+ rm $PKG/usr/lib/libpoppler.so*
+ rm $PKG/usr/lib/pkgconfig/poppler.pc
+ rm $PKG/usr/lib/pkgconfig/poppler-splash.pc
}
diff --git a/poppler-qt4/poppler-cmake.patch b/poppler-qt4/poppler-cmake.patch
new file mode 100644
index 000000000..1ccfe051e
--- /dev/null
+++ b/poppler-qt4/poppler-cmake.patch
@@ -0,0 +1,158 @@
+--- CMakeLists.txt.orig 2016-12-17 14:42:45.869315608 +0100
++++ CMakeLists.txt 2016-12-17 18:17:13.215529642 +0100
+@@ -33,8 +33,14 @@
+ option(BUILD_QT5_TESTS "Whether compile the Qt5 test programs." ON)
+ option(BUILD_CPP_TESTS "Whether compile the CPP test programs." ON)
+ option(ENABLE_SPLASH "Build the Splash graphics backend." ON)
++option(ENABLE_CAIRO "Build the Cairo graphics backend." ON)
+ option(ENABLE_UTILS "Compile poppler command line utils." ON)
+ option(ENABLE_CPP "Compile poppler cpp wrapper." ON)
++option(ENABLE_GLIB "Compile poppler glib wrapper." ON)
++option(ENABLE_QT4 "Compile poppler QT4 wrapper." ON)
++option(ENABLE_QT5 "Compile poppler QT5 wrapper." ON)
++option(ENABLE_NSS3 "Build with NSS3 support." OFF)
++
+ set(ENABLE_LIBOPENJPEG "auto" CACHE STRING "Use libopenjpeg for JPX streams. Possible values: auto, openjpeg1, openjpeg2. 'auto' prefers openjpeg1 over openjpeg2 if both are available. Unset to not use openjpeg.")
+ set(ENABLE_CMS "auto" CACHE STRING "Use color management system. Possible values: auto, lcms1, lcms2. 'auto' prefers lcms2 over lcms1 if both are available. Unset to disable color management system.")
+ option(ENABLE_LIBCURL "Build libcurl based HTTP support." OFF)
+@@ -111,43 +117,46 @@
+ set(ENABLE_LIBJPEG ${JPEG_FOUND})
+ endif(JPEG_FOUND)
+ macro_optional_find_package(Qt4)
+-if(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION} VERSION_GREATER 2.8.7)
+- find_package(Qt5Core)
+- find_package(Qt5Gui)
+- find_package(Qt5Xml)
+- find_package(Qt5Widgets)
+- find_package(Qt5Test)
+- if (Qt5Core_FOUND AND Qt5Gui_FOUND AND Qt5Xml_FOUND AND Qt5Widgets_FOUND AND Qt5Test_FOUND)
+- set(QT5_FOUND true)
+- else ()
+- message("-- Package Qt5Core or Qt5Gui or Qt5Xml or Qt5Widgets or Qt5Test not found")
++if(ENABLE_QT5)
++ if(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION} VERSION_GREATER 2.8.7)
++ find_package(Qt5Core)
++ find_package(Qt5Gui)
++ find_package(Qt5Xml)
++ find_package(Qt5Widgets)
++ find_package(Qt5Test)
++ if (Qt5Core_FOUND AND Qt5Gui_FOUND AND Qt5Xml_FOUND AND Qt5Widgets_FOUND AND Qt5Test_FOUND)
++ set(QT5_FOUND true)
++ else ()
++ message("-- Package Qt5Core or Qt5Gui or Qt5Xml or Qt5Widgets or Qt5Test not found")
++ set(QT5_FOUND false)
++ endif()
++ else(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION} VERSION_GREATER 2.8.7)
+ set(QT5_FOUND false)
+- endif()
+-else(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION} VERSION_GREATER 2.8.7)
+- set(QT5_FOUND false)
+- message("-- CMake >= 2.8.8 is needed to enable Qt5")
+-endif(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION} VERSION_GREATER 2.8.7)
+-
+-macro_optional_find_package(Cairo ${CAIRO_VERSION})
+-if(CAIRO_FOUND)
+- set(HAVE_CAIRO ${CAIRO_FOUND})
+- set(CAIRO_FEATURE "#define POPPLER_HAS_CAIRO 1")
+- set(CAIRO_REQ "cairo")
+- set(POPPLER_GLIB_DISABLE_DEPRECATED "")
+- set(POPPLER_GLIB_DISABLE_SINGLE_INCLUDES "")
+- macro_optional_find_package(GLIB)
+- if(GLIB_FOUND)
+- set(ENABLE_GLIB ON)
+- # Check for introspection
+- macro_optional_find_package(GObjectIntrospection 0.9.12)
+- set(HAVE_INTROSPECTION ${INTROSPECTION_FOUND})
+- set(POPPLER_GLIB_DISABLE_DEPRECATED "${POPPLER_GLIB_DISABLE_DEPRECATED} -DG_DISABLE_DEPRECATED")
+- set(POPPLER_GLIB_DISABLE_SINGLE_INCLUDES "${POPPLER_GLIB_DISABLE_SINGLE_INCLUDES} -DG_DISABLE_SINGLE_INCLUDES")
+- macro_optional_find_package(GTK)
+- endif(GLIB_FOUND)
+-else(CAIRO_FOUND)
+- set(CAIRO_FEATURE "#undef POPPLER_HAS_CAIRO")
+-endif(CAIRO_FOUND)
++ message("-- CMake >= 2.8.8 is needed to enable Qt5")
++ endif(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION} VERSION_GREATER 2.8.7)
++endif()
++if(ENABLE_CAIRO)
++ macro_optional_find_package(Cairo ${CAIRO_VERSION})
++ if(CAIRO_FOUND)
++ set(HAVE_CAIRO ${CAIRO_FOUND})
++ set(CAIRO_FEATURE "#define POPPLER_HAS_CAIRO 1")
++ set(CAIRO_REQ "cairo")
++ set(POPPLER_GLIB_DISABLE_DEPRECATED "")
++ set(POPPLER_GLIB_DISABLE_SINGLE_INCLUDES "")
++ macro_optional_find_package(GLIB)
++ if(ENABLE_GLIB)
++ set(ENABLE_GLIB ON)
++ # Check for introspection
++ macro_optional_find_package(GObjectIntrospection 0.9.12)
++ set(HAVE_INTROSPECTION ${INTROSPECTION_FOUND})
++ set(POPPLER_GLIB_DISABLE_DEPRECATED "${POPPLER_GLIB_DISABLE_DEPRECATED} -DG_DISABLE_DEPRECATED")
++ set(POPPLER_GLIB_DISABLE_SINGLE_INCLUDES "${POPPLER_GLIB_DISABLE_SINGLE_INCLUDES} -DG_DISABLE_SINGLE_INCLUDES")
++ macro_optional_find_package(GTK)
++ endif(ENABLE_GLIB)
++ else(CAIRO_FOUND)
++ set(CAIRO_FEATURE "#undef POPPLER_HAS_CAIRO")
++ endif(CAIRO_FOUND)
++endif(ENABLE_CAIRO)
+ if(ENABLE_CPP)
+ macro_optional_find_package(Iconv)
+ set(ENABLE_CPP ${ICONV_FOUND})
+@@ -241,10 +250,10 @@
+ include_directories(${ZLIB_INCLUDE_DIR})
+ endif(ENABLE_ZLIB)
+
+-if (NSS3_FOUND)
++if (ENABLE_NSS3 AND NSS3_FOUND)
+ add_definitions(${NSS3_CFLAGS})
+ set(ENABLE_NSS3 ON)
+-endif(NSS3_FOUND)
++endif(ENABLE_NSS3 AND NSS3_FOUND)
+ if(JPEG_FOUND)
+ include_directories(${JPEG_INCLUDE_DIR})
+ set(ENABLE_LIBJPEG ON)
+@@ -681,12 +690,12 @@
+ add_subdirectory(glib)
+ endif(ENABLE_GLIB)
+ add_subdirectory(test)
+-if(QT4_FOUND)
++if(ENABLE_QT4)
+ add_subdirectory(qt4)
+-endif(QT4_FOUND)
+-if(QT5_FOUND)
++endif(ENABLE_QT4)
++if(ENABLE_QT5)
+ add_subdirectory(qt5)
+-endif(QT5_FOUND)
++endif(ENABLE_QT5)
+ if(ENABLE_CPP)
+ add_subdirectory(cpp)
+ endif(ENABLE_CPP)
+@@ -708,12 +717,12 @@
+ if(ENABLE_SPLASH)
+ poppler_create_install_pkgconfig(poppler-splash.pc lib${LIB_SUFFIX}/pkgconfig)
+ endif(ENABLE_SPLASH)
+-if(QT4_FOUND)
++if(ENABLE_QT4)
+ poppler_create_install_pkgconfig(poppler-qt4.pc lib${LIB_SUFFIX}/pkgconfig)
+-endif(QT4_FOUND)
+-if(QT5_FOUND)
++endif(ENABLE_QT4)
++if(ENABLE_QT5)
+ poppler_create_install_pkgconfig(poppler-qt5.pc lib${LIB_SUFFIX}/pkgconfig)
+-endif(QT5_FOUND)
++endif(ENABLE_QT5)
+ if(ENABLE_GLIB)
+ poppler_create_install_pkgconfig(poppler-glib.pc lib${LIB_SUFFIX}/pkgconfig)
+ endif(ENABLE_GLIB)
+@@ -732,8 +741,8 @@
+ message(" with CMYK support")
+ endif()
+ show_end_message_yesno("cairo output" CAIRO_FOUND)
+-show_end_message_yesno("qt4 wrapper" QT4_FOUND)
+-show_end_message_yesno("qt5 wrapper" QT5_FOUND)
++show_end_message_yesno("qt4 wrapper" ENABLE_QT4)
++show_end_message_yesno("qt5 wrapper" ENABLE_QT5)
+ show_end_message_yesno("glib wrapper" ENABLE_GLIB)
+ show_end_message_yesno(" introspection" INTROSPECTION_FOUND)
+ show_end_message_yesno("cpp wrapper" ENABLE_CPP)

Generated by cgit