Browse Source

xap/digikam: Upgraded to digikam-4.14.0.

slackware-14.2
Damien Goutte-Gattat 5 years ago
parent
commit
bf621a3c3b
  1. 14
      xap/digikam/digikam-4.14.0-disable-panorama.patch
  2. 1
      xap/digikam/digikam-4.14.0.tar.bz2.sha1
  3. 1
      xap/digikam/digikam-4.2.0.tar.bz2.sha1
  4. 29
      xap/digikam/digikam.SlackBuild

14
xap/digikam/digikam-4.14.0-disable-panorama.patch

@ -0,0 +1,14 @@
diff -Naur digikam-4.14.0.orig/extra/kipi-plugins/CMakeLists.txt digikam-4.14.0/extra/kipi-plugins/CMakeLists.txt
--- digikam-4.14.0.orig/extra/kipi-plugins/CMakeLists.txt 2015-10-13 23:58:20.000000000 +0200
+++ digikam-4.14.0/extra/kipi-plugins/CMakeLists.txt 2016-07-25 14:19:42.981430849 +0200
@@ -480,10 +480,6 @@
add_subdirectory(mediawiki)
endif()
- if(FLEX_FOUND AND BISON_FOUND)
- add_subdirectory(panorama)
- endif()
-
if(ImageMagick_FOUND AND QTGSTREAMER_FOUND)
add_subdirectory(videoslideshow)
endif()

1
xap/digikam/digikam-4.14.0.tar.bz2.sha1

@ -0,0 +1 @@
08bbded5433e442dce8ac00eb301606ef0924e8c digikam-4.14.0.tar.bz2

1
xap/digikam/digikam-4.2.0.tar.bz2.sha1

@ -1 +0,0 @@
4a54136629bed3b30cf4e9355e8d5b498b0d4e54 digikam-4.2.0.tar.bz2

29
xap/digikam/digikam.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2014 Damien Goutte-Gattat
# Copyright (C) 2014,2016 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -24,13 +24,13 @@
#
# Latest digikam sourcecode is available at: <http://www.digikam.org/>.
#
# Depends: l/opencv, l/libkgeomap
# Depends: l/opencv, l/libkgeomap, l/libkface, l/libpgf
# Source package infos
NAMESRC=${NAMESRC:-digikam}
VERSION=${VERSION:-4.2.0}
VERSION=${VERSION:-4.14.0}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.bz2}
WGET=${WGET:-http://download.kde.org/stable/digikam/$ARCHIVE}
WGET=${WGET:-http://download.kde.org/Attic/digikam/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-digikam}
@ -78,18 +78,28 @@ fi
sha1sum -c $ARCHIVE.sha1
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
# Compile
# Extract
cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
# The panorama plugin fails to compile due to a stupid
# behavior of flex-2.6.0 (insertion of a C++-style comment
# into a C90 code file). Rather than patching flex, I
# crudely disable here the panorama plugin (I have no use
# for it).
patch -p 1 < $CWD/digikam-4.14.0-disable-panorama.patch
# Compile and install
mkdir build && cd build
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
LDFLAGS="$(Magick++-config --ldflags)" \
cmake \
-W-no-dev \
-DCMAKE_INSTALL_PREFIX=/usr \
-DENABLE_NEPOMUKSUPPORT=OFF \
-DWITH_QtGStreamer=OFF \
-DCMAKE_BUILD_TYPE=Release \
..
make -j $JOBS
make install/strip DESTDIR=$PKG
@ -99,8 +109,9 @@ find $PKG/usr/man -type f -exec gzip -9 {} \;
# Install the documentation
mkdir -p $PKG/usr/doc/$NAME
install -m 644 ../COPYING ../COPYING.DOC ../COPYING.LIB ../NEWS ../README \
$PKG/usr/doc/$NAME
install -m 644 ../COPYING{,.DOC,.LIB} ../NEWS ../README $PKG/usr/doc/$NAME
mv $PKG/usr/share/doc/HTML $PKG/usr/doc/HTML
rmdir $PKG/usr/share/doc
# Copy slack-desc and doinst.sh files
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc

Loading…
Cancel
Save