diff options
author | Eric Hameleers <alien@slackware.com> | 2017-12-08 21:05:03 +0100 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2017-12-08 21:05:03 +0100 |
commit | dbfeea72767c75e34644451a736aba5f829eec40 (patch) | |
tree | 88237718bd4dfb1fda278a12e31c464650bf2baa /deps/poppler/poppler.SlackBuild | |
parent | c41195f65d22455432da195c90e32c0056be5819 (diff) | |
download | ktown-dbfeea72767c75e34644451a736aba5f829eec40.tar.gz ktown-dbfeea72767c75e34644451a736aba5f829eec40.tar.xz |
Update or recompile the deps that are affected by -current updates
Notably, icu4c, poppler and libical updates in slackware-current
were incompatible with many of the packages in the 'ktown' repository.
Diffstat (limited to 'deps/poppler/poppler.SlackBuild')
-rwxr-xr-x | deps/poppler/poppler.SlackBuild | 38 |
1 files changed, 25 insertions, 13 deletions
diff --git a/deps/poppler/poppler.SlackBuild b/deps/poppler/poppler.SlackBuild index b93a7d8..b94e80a 100755 --- a/deps/poppler/poppler.SlackBuild +++ b/deps/poppler/poppler.SlackBuild @@ -24,7 +24,7 @@ # Modified 2016, 2017 by Eric Hameleers <alien@slackware.com> PKGNAM=poppler -VERSION=${VERSION:-0.59.0} +VERSION=${VERSION:-0.62.0} BUILD=${BUILD:-1} # Automatically determine the architecture we're building on: @@ -71,6 +71,10 @@ cd ${PKGNAM}-$VERSION || exit 1 ## This is needed for compilation with c++11 compiler: #cat $CWD/patches/poppler_cpp11.patch | patch -p1 --verbose || exit 1 +# At least for now, we will revert this patch since we have +# things that depend on it: +cat $CWD/poppler.remove.qt4.frontend.diff | patch -p1 -R --verbose || exit 1 + chown -R root:root . find . \ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ @@ -78,25 +82,33 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; +mkdir build +cd build + # Adding " -std=c++11" to CXXFLAGS is needed for compiling against Qt >= 5.7: CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS -std=c++11" \ -./configure \ - --prefix=/usr \ - --libdir=/usr/lib${LIBDIRSUFFIX} \ - --sysconfdir=/etc \ - --enable-xpdf-headers \ - --enable-poppler-qt4 \ - --enable-poppler-qt5 \ - --enable-cairo-output \ - --mandir=/usr/man \ - --disable-static \ - --enable-zlib \ - --build=$TARGET || exit 1 +cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_MANDIR=/usr/man \ + -DBUILD_SHARED_LIBS=ON \ + -DENABLE_QT4=ON \ + -DENABLE_QT5=ON \ + -DENABLE_XPDF_HEADERS=ON \ + -DENABLE_CMS=lcms2 \ + -DENABLE_DCTDECODER=libjpeg \ + -DENABLE_GTK_DOC=ON \ + -DENABLE_LIBOPENJPEG=openjpeg2 \ + -DENABLE_XPDF_HEADERS=ON \ + -DENABLE_ZLIB=ON \ + .. || exit 1 make $NUMBOBS || make || exit 1 make install DESTDIR=$PKG || exit 1 +# Back to source tarball root directory: +cd .. + # Remove files that overlap with the xpdf package: rm -f $PKG/usr/bin/pdfdetach $PKG/usr/man/man1/pdfdetach.1 |