diff --git a/xpdf/.footprint b/xpdf/.footprint deleted file mode 100644 index ef1746546..000000000 --- a/xpdf/.footprint +++ /dev/null @@ -1,7 +0,0 @@ -drwxr-xr-x root/root usr/ -drwxr-xr-x root/root usr/bin/ --rwxr-xr-x root/root usr/bin/xpdf -drwxr-xr-x root/root usr/share/ -drwxr-xr-x root/root usr/share/man/ -drwxr-xr-x root/root usr/share/man/man1/ --rw-r--r-- root/root usr/share/man/man1/xpdf.1.gz diff --git a/xpdf/.signature b/xpdf/.signature deleted file mode 100644 index 7a3975c01..000000000 --- a/xpdf/.signature +++ /dev/null @@ -1,8 +0,0 @@ -untrusted comment: verify with /etc/ports/opt.pub -RWSE3ohX2g5d/bIRG3WDfd+iiYr70CM4LUybjsZS9clL9q0WIh/yquqk05/FITlpf36vCxvg84l2NZC+n/AYHu2g4uDE1+6wVQA= -SHA256 (Pkgfile) = b387a44d157fde1d466fe263a9290a8d9d76567e9eeec78ac7773176223bda8a -SHA256 (.footprint) = b04fc4d3a62e3311e32f9350e044e905495c74101132621641fe2088f7248bdc -SHA256 (xpdf-4.03.tar.gz) = 0fe4274374c330feaadcebb7bd7700cb91203e153b26aa95952f02bf130be846 -SHA256 (xpdf-automagic.patch) = 3cf7b618a90e39891b140978c9147e7b8edfd39666f11c9eb11bfe8727241cd9 -SHA256 (xpdf-visibility.patch) = 4dfde83375f344c724cb51cf7d2e0fef726ef7617be36d4a0570980917f68ead -SHA256 (xpdf-shared-libs.patch) = e48d08c44dffb9367ec2cfe31823a44549cbd4ff00b10317c14a8d5225cde82f diff --git a/xpdf/Pkgfile b/xpdf/Pkgfile deleted file mode 100644 index 8a37e3f22..000000000 --- a/xpdf/Pkgfile +++ /dev/null @@ -1,33 +0,0 @@ -# Description: PDF viewer -# URL: https://www.xpdfreader.com -# Maintainer: Thomas Penteker, tek at serverop dot de -# Depends on: qt5 -# Optional: cups paper - -name=xpdf -version=4.03 -release=1 -source=(https://dl.xpdfreader.com/$name-$version.tar.gz - xpdf-automagic.patch - xpdf-visibility.patch - xpdf-shared-libs.patch) - -build() { - CXXFLAGS+=' -Wno-deprecated -Wno-deprecated-declarations' - - patch -d $name-$version -p1 -i $SRC/xpdf-automagic.patch - patch -d $name-$version -p1 -i $SRC/xpdf-visibility.patch - patch -d $name-$version -p1 -i $SRC/xpdf-shared-libs.patch - - cmake -S $name-$version -B build -G Ninja \ - -D CMAKE_INSTALL_PREFIX=/usr \ - -D CMAKE_INSTALL_LIBDIR=lib \ - -D CMAKE_BUILD_TYPE=Release \ - -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \ - -D A4_PAPER=ON \ - -D XPDFWIDGET_PRINTING="$(prt-get isinst cups >/dev/null && echo ON || echo OFF)" \ - -D WITH_LIBPAPER="$(prt-get isinst paper >/dev/null && echo ON || echo OFF)" - - cmake --build build -- xpdf - DESTDIR=$PKG cmake --install build/xpdf-qt -} diff --git a/xpdf/README b/xpdf/README deleted file mode 100644 index 2206c3329..000000000 --- a/xpdf/README +++ /dev/null @@ -1,10 +0,0 @@ -README for xpdf - -Ghostscript is an optional dependency for xpdf. To use ghostscript -fonts in xpdf uncomment the lines beginning with '#displayFontT1' -in /etc/xpdfrc. - -You can also specify additional font mappings and use TrueType fonts -(again, see /etc/xpdfrc) - -Thanks to Clare Johnstone for the tip. diff --git a/xpdf/xpdf-automagic.patch b/xpdf/xpdf-automagic.patch deleted file mode 100644 index 4c35ca891..000000000 --- a/xpdf/xpdf-automagic.patch +++ /dev/null @@ -1,36 +0,0 @@ ---- xpdf-4.01.orig/cmake-config.txt 2019-02-18 21:24:19.000000000 +0300 -+++ xpdf-4.01/cmake-config.txt 2019-03-10 20:59:59.769610445 +0300 -@@ -93,6 +93,10 @@ - option(XPDFWIDGET_PRINTING "include printing support in XpdfWidget" ON) - endif () - -+#--- disable lib dep automagick --- -+option(WITH_LIBPAPER "Enable libpaper support for getting paper size preferences" ON) -+option(WITH_LIBPNG "Enable png support via libpng" ON) -+ - #--- check for various library functions - check_function_exists(mkstemp HAVE_MKSTEMP) - check_function_exists(mkstemps HAVE_MKSTEMPS) -@@ -182,7 +186,9 @@ - find_package(ZLIB) - - #--- look for libpng -+if (WITH_LIBPNG) - find_package(PNG) -+endif () - - - -@@ -239,10 +245,12 @@ - endif() - - #--- look for libpaper -+if (WITH_LIBPAPER) - find_library(PAPER_LIBRARY - NAMES paper libpaper - PATH_SUFFIXES lib64 lib - ) -+endif () - if (PAPER_LIBRARY) - set(HAVE_PAPER_H TRUE) - else () diff --git a/xpdf/xpdf-shared-libs.patch b/xpdf/xpdf-shared-libs.patch deleted file mode 100644 index c8aafa840..000000000 --- a/xpdf/xpdf-shared-libs.patch +++ /dev/null @@ -1,54 +0,0 @@ -diff '--color=auto' -Naurd xpdf-4.01.orig/cmake-config.txt xpdf-4.01/cmake-config.txt ---- xpdf-4.01.orig/cmake-config.txt 2019-03-10 21:32:18.000000000 +0300 -+++ xpdf-4.01/cmake-config.txt 2019-03-11 09:03:37.025125528 +0300 -@@ -12,6 +12,9 @@ - include(CheckCXXSourceCompiles) - include(GNUInstallDirs) - -+set(XPDF_LIBDIR ${CMAKE_INSTALL_LIBDIR}/xpdf) -+set(CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_FULL_LIBDIR}/xpdf) -+ - enable_language(CXX) - - #--- set default C/C++ compiler flags for Unix -diff '--color=auto' -Naurd xpdf-4.01.orig/fofi/CMakeLists.txt xpdf-4.01/fofi/CMakeLists.txt ---- xpdf-4.01.orig/fofi/CMakeLists.txt 2019-03-10 21:32:19.000000000 +0300 -+++ xpdf-4.01/fofi/CMakeLists.txt 2019-03-11 09:04:16.257526539 +0300 -@@ -24,3 +24,6 @@ - add_library(fofi - $ - ) -+ -+set_target_properties(fofi_objs PROPERTIES COMPILE_FLAGS "-fPIC") -+install(TARGETS fofi LIBRARY DESTINATION ${XPDF_LIBDIR}) -diff '--color=auto' -Naurd xpdf-4.01.orig/goo/CMakeLists.txt xpdf-4.01/goo/CMakeLists.txt ---- xpdf-4.01.orig/goo/CMakeLists.txt 2019-03-11 09:03:04.000000000 +0300 -+++ xpdf-4.01/goo/CMakeLists.txt 2019-03-11 09:02:51.638793035 +0300 -@@ -25,3 +25,6 @@ - add_library(goo - $ - ) -+ -+set_target_properties(goo_objs PROPERTIES COMPILE_FLAGS "-fPIC") -+install(TARGETS goo LIBRARY DESTINATION ${XPDF_LIBDIR}) -diff '--color=auto' -Naurd xpdf-4.01.orig/splash/CMakeLists.txt xpdf-4.01/splash/CMakeLists.txt ---- xpdf-4.01.orig/splash/CMakeLists.txt 2019-03-10 21:32:19.000000000 +0300 -+++ xpdf-4.01/splash/CMakeLists.txt 2019-03-11 09:04:48.885028391 +0300 -@@ -44,4 +44,7 @@ - add_library(splash - $ - ) -+ -+ set_target_properties(splash_objs PROPERTIES COMPILE_FLAGS "-fPIC") -+ install(TARGETS splash LIBRARY DESTINATION ${XPDF_LIBDIR}) - endif () ---- xpdf-4.01.orig/xpdf-qt/CMakeLists.txt 2019-02-18 21:24:19.000000000 +0300 -+++ xpdf-4.01/xpdf-qt/CMakeLists.txt 2019-03-11 17:29:55.445451783 +0300 -@@ -93,6 +93,7 @@ - else () - set_property(TARGET xpdf PROPERTY Qt5_NO_LINK_QTMAIN ON) - endif () -+ set_property(TARGET xpdf PROPERTY INSTALL_RPATH "") - - install(TARGETS xpdf RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) - install(FILES ${PROJECT_SOURCE_DIR}/doc/xpdf.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1) diff --git a/xpdf/xpdf-visibility.patch b/xpdf/xpdf-visibility.patch deleted file mode 100644 index 9eab57b4a..000000000 --- a/xpdf/xpdf-visibility.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- xpdf-4.01/goo/GString.h.orig 2019-02-18 21:24:19.000000000 +0300 -+++ xpdf-4.01/goo/GString.h 2019-03-10 20:16:48.257102840 +0300 -@@ -39,7 +39,7 @@ - - // Copy a string. - GString(GString *str); -- GString *copy() { return new GString(this); } -+ __attribute__ ((visibility ("default"))) GString *copy() { return new GString(this); } - - // Concatenate two strings. - GString(GString *str1, GString *str2);