diff options
author | B. Watson <urchlay@slackware.uk> | 2023-01-04 01:58:13 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-01-07 08:13:47 +0700 |
commit | 143cdde0d88d928fefe80d732af9c89e9d44d442 (patch) | |
tree | 8410ae4d7a45274b0a84ebb1f318cccbbc289d0e | |
parent | ebf3fa231fec6ea36594abfa83c138954064baa5 (diff) |
office/jfbview: Fix imlib2-1.10.0 breakage.
Signed-off-by: B. Watson <urchlay@slackware.uk>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | office/jfbview/jfbview.SlackBuild | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/office/jfbview/jfbview.SlackBuild b/office/jfbview/jfbview.SlackBuild index bd4b0d79abaa6..7764e89518cdc 100644 --- a/office/jfbview/jfbview.SlackBuild +++ b/office/jfbview/jfbview.SlackBuild @@ -9,12 +9,17 @@ # This doesn't depend on mupdf or mupdf-legacy because it includes its # own bundled mupdf source. +# 20230104 bkw: BUILD=2 +# - fix imlib2 builds (broke with recent imlib2 update to 1.10.0). +# - fix PKGTYPE mess. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=jfbview VERSION=${VERSION:-0.6.0} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -68,18 +73,24 @@ sed -i -e 's,share/man,man,g' \ doc/CMakeLists.txt # no autodetect for imlib2, help it out some. -IMLIB_OPT=off -[ "${IMLIB:-yes}" = "yes" ] && pkg-config --exists imlib2 && IMLIB_OPT=on +# 20230104 bkw: imlib2 no longer has /usr/bin/imlib2-config, which +# the FindImlib2.cmake in jfbview's source wants. Work around it by +# manually setting the cmake vars it would automatically set. +if [ "${IMLIB:-yes}" = "yes" ] && pkg-config --exists imlib2; then + IMLIB_OPT="-DENABLE_IMAGE_SUPPORT=ON -DIMLIB2_FOUND=ON -DIMLIB2_LIBRARIES=-lImlib2" +else + IMLIB_OPT="-DENABLE_IMAGE_SUPPORT=OFF" +fi mkdir -p build cd build cmake \ - -DENABLE_IMAGE_SUPPORT=$IMLIB_OPT \ + $IMLIB_OPT \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release .. - make + make VERBOSE=1 make install/strip DESTDIR=$PKG cd .. @@ -103,4 +114,4 @@ mkdir -p $PKG/install sed "s,@WITHIM@,$WITHIM," $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |