opt/xpdf/Pkgfile

39 lines
957 B
Plaintext
Raw Normal View History

2007-05-15 21:19:29 +02:00
# Description: PDF viewer
# URL: https://www.xpdfreader.com
2010-02-28 02:58:28 +01:00
# Maintainer: Thomas Penteker, tek at serverop dot de
# Depends on: qt5
# Optional: cups paper
2007-05-15 21:19:29 +02:00
name=xpdf
2020-04-15 16:46:03 +02:00
version=4.02
release=1
source=(https://xpdfreader-dl.s3.amazonaws.com/xpdf-${version}.tar.gz
xpdf-automagic.patch
xpdf-visibility.patch
xpdf-shared-libs.patch)
2007-05-15 21:19:29 +02:00
build() {
cd $name-$version
CXXFLAGS+=' -Wno-deprecated -Wno-deprecated-declarations'
patch -p1 -i $SRC/xpdf-automagic.patch
patch -p1 -i $SRC/xpdf-visibility.patch
patch -p1 -i $SRC/xpdf-shared-libs.patch
2017-08-20 22:27:55 +02:00
mkdir build
cd build
2010-11-14 17:00:23 +01:00
2017-08-20 22:27:55 +02:00
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DA4_PAPER=ON \
-DXPDFWIDGET_PRINTING="$(prt-get isinst cups >/dev/null && echo ON || echo OFF)" \
-DWITH_LIBPAPER=$(prt-get isinst paper >/dev/null && echo ON || echo OFF) ..
2017-08-20 22:27:55 +02:00
cd xpdf-qt
2007-05-15 21:19:29 +02:00
make
make install DESTDIR=$PKG
2007-05-15 21:19:29 +02:00
}