ports/opt (3.6): xpdf: fix missing source and build
commit dd631336ea72876c0bc1e2f4b00e8de58ce2de4e Author: Danny Rawlins <contact@romster.me> Date: Sat Dec 5 16:58:52 2020 +1100 xpdf: fix missing source and build diff --git a/xpdf/.signature b/xpdf/.signature index 89768a755..901601f73 100644 --- a/xpdf/.signature +++ b/xpdf/.signature @@ -1,6 +1,6 @@ untrusted comment: verify with /etc/ports/opt.pub -RWSE3ohX2g5d/UIZlHsADFVEHko39BtQtZbs7esitzqcGsbqffbSgwQpFFx7yyDC049vD0IGxTOKm3lstJJQh74tFs0pXMulagU= -SHA256 (Pkgfile) = d0904d8a7ead82f82b002e6de14908c1e57f059426cdf7a93fc6346776f7e07c +RWSE3ohX2g5d/fCj+6G2ltZMQ1Y8AUVnBe6t/fDkvhjRblubWWalnKxlOcnomfKDqM7pKfa850gnfazM0pn4WXm44hR+eCdmkQk= +SHA256 (Pkgfile) = d9c06be8c8ae9634458e79d85aa894572cdd63be0a207f8a67576a592a9a1d35 SHA256 (.footprint) = b04fc4d3a62e3311e32f9350e044e905495c74101132621641fe2088f7248bdc SHA256 (xpdf-4.02.tar.gz) = 52d51dc943b9614b8da66e8662b3031a3c82dc25bfc792eac6b438aa36d549a4 SHA256 (xpdf-automagic.patch) = 3cf7b618a90e39891b140978c9147e7b8edfd39666f11c9eb11bfe8727241cd9 diff --git a/xpdf/Pkgfile b/xpdf/Pkgfile index ba8da49b7..f76ba3eaa 100644 --- a/xpdf/Pkgfile +++ b/xpdf/Pkgfile @@ -6,33 +6,28 @@ name=xpdf version=4.02 -release=1 -source=(https://xpdfreader-dl.s3.amazonaws.com/xpdf-${version}.tar.gz +release=2 +source=(https://dl.xpdfreader.com/$name-$version.tar.gz xpdf-automagic.patch xpdf-visibility.patch xpdf-shared-libs.patch) 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 - - mkdir build - cd build - - 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) .. - - cd xpdf-qt - - make - make install DESTDIR=$PKG - + 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 }
participants (1)
-
crux@crux.nu