You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
266 lines
8.4 KiB
266 lines
8.4 KiB
#!/bin/sh
|
|
# Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST
|
|
# Copyright 2009, 2010, 2011, 2012, 2013, 2014, 2015 Eric Hameleers, Eindhoven, Netherlands
|
|
# Copyright 2015-2017 Thorn Inurcide
|
|
# Copyright 2015-2017 tde-slackbuilds project on GitHub
|
|
# All rights reserved.
|
|
#
|
|
# Permission to use, copy, modify, and distribute this software for
|
|
# any purpose with or without fee is hereby granted, provided that
|
|
# the above copyright notice and this permission notice appear in all
|
|
# copies.
|
|
#
|
|
# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
|
|
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
# IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
|
|
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
|
|
# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
|
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
|
|
# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
# SUCH DAMAGE.
|
|
|
|
PRGNAM=tdegraphics
|
|
VERSION=${VERSION:-$TDEVERSION}
|
|
BUILD=${BUILD:-1}
|
|
TAG=${TAG:-_tde}
|
|
|
|
source ../../get-source.sh
|
|
getsource_fn
|
|
|
|
untar_fn
|
|
|
|
## for cgit - bug 2957
|
|
echo $'
|
|
--- config.h.cmake
|
|
+++ config.h.cmake
|
|
@@ -3,0 +4 @@
|
|
+#cmakedefine HAVE_POPPLER_064
|
|
--- tdefile-plugins/dependencies/poppler-tqt/ConfigureChecks.cmake
|
|
+++ tdefile-plugins/dependencies/poppler-tqt/ConfigureChecks.cmake
|
|
@@ -36,0 +37,11 @@
|
|
+
|
|
+if( NOT DEFINED HAVE_POPPLER_064 )
|
|
+ message( STATUS "Performing Test HAVE_POPPLER_064" )
|
|
+ if( NOT POPPLER_VERSION VERSION_LESS "0.64" )
|
|
+ set( HAVE_POPPLER_064 1 CACHE INTERNAL "" FORCE )
|
|
+ message( STATUS "Performing Test HAVE_POPPLER_064 - Success" )
|
|
+ else( )
|
|
+ set( HAVE_POPPLER_064 "" CACHE INTERNAL "" FORCE )
|
|
+ message( STATUS "Performing Test HAVE_POPPLER_064 - Failed" )
|
|
+ endif( )
|
|
+endif( )
|
|
--- tdefile-plugins/dependencies/poppler-tqt/poppler-document.cc
|
|
+++ tdefile-plugins/dependencies/poppler-tqt/poppler-document.cc
|
|
@@ -179,0 +180,3 @@
|
|
+# if defined(HAVE_POPPLER_064)
|
|
+ s1 = (GooString *)obj.getString();
|
|
+# else
|
|
@@ -180,0 +184 @@
|
|
+# endif
|
|
@@ -251,0 +256,3 @@
|
|
+# if defined(HAVE_POPPLER_064)
|
|
+ TQString s = UnicodeParsedString((GooString *)obj.getString());
|
|
+# else
|
|
@@ -252,0 +260 @@
|
|
+# endif
|
|
@@ -322,0 +331,3 @@
|
|
+# if defined(HAVE_POPPLER_064)
|
|
+ GooList * items = (GooList *)outline->getItems();
|
|
+# else
|
|
@@ -323,0 +335 @@
|
|
+# endif
|
|
--- tdefile-plugins/dependencies/poppler-tqt/poppler-private.cc
|
|
+++ tdefile-plugins/dependencies/poppler-tqt/poppler-private.cc
|
|
@@ -98,0 +99,3 @@
|
|
+# if defined(HAVE_POPPLER_064)
|
|
+ Unicode * uniChar = (Unicode *)outlineItem->getTitle();
|
|
+# else
|
|
@@ -99,0 +103 @@
|
|
+# endif
|
|
@@ -108,0 +113,3 @@
|
|
+# if defined(HAVE_POPPLER_064)
|
|
+ ::LinkAction * a = (::LinkAction *)outlineItem->getAction();
|
|
+# else
|
|
@@ -109,0 +117 @@
|
|
+# endif
|
|
@@ -113,0 +122,3 @@
|
|
+# if defined(HAVE_POPPLER_064)
|
|
+ LinkDest * destination = (LinkDest *)g->getDest();
|
|
+# else
|
|
@@ -114,0 +126 @@
|
|
+# endif
|
|
@@ -119,0 +132,3 @@
|
|
+# if defined(HAVE_POPPLER_064)
|
|
+ GooString *s = (GooString *)g->getNamedDest();
|
|
+# else
|
|
@@ -120,0 +136 @@
|
|
+# endif
|
|
@@ -140,0 +157,3 @@
|
|
+# if defined(HAVE_POPPLER_064)
|
|
+ GooList * children = (GooList *)outlineItem->getKids();
|
|
+# else
|
|
@@ -141,0 +161 @@
|
|
+# endif
|
|
' | while read line
|
|
do
|
|
patch -p0
|
|
done
|
|
## more for bug 2957 - for 60->58
|
|
echo $'
|
|
--- config.h.cmake
|
|
+++ config.h.cmake
|
|
@@ -5 +5 @@
|
|
-#cmakedefine HAVE_POPPLER_060
|
|
+#cmakedefine HAVE_POPPLER_058
|
|
--- tdefile-plugins/dependencies/poppler-tqt/ConfigureChecks.cmake
|
|
+++ tdefile-plugins/dependencies/poppler-tqt/ConfigureChecks.cmake
|
|
@@ -27,3 +27,3 @@
|
|
-if( NOT DEFINED HAVE_POPPLER_060 )
|
|
- message( STATUS "Performing Test HAVE_POPPLER_060" )
|
|
- if( NOT POPPLER_VERSION VERSION_LESS "0.60" )
|
|
+if( NOT DEFINED HAVE_POPPLER_058 )
|
|
+ message( STATUS "Performing Test HAVE_POPPLER_058" )
|
|
+ if( NOT POPPLER_VERSION VERSION_LESS "0.58" )
|
|
@@ -30,2 +30,2 @@
|
|
- set( HAVE_POPPLER_060 1 CACHE INTERNAL "" FORCE )
|
|
- message( STATUS "Performing Test HAVE_POPPLER_060 - Success" )
|
|
+ set( HAVE_POPPLER_058 1 CACHE INTERNAL "" FORCE )
|
|
+ message( STATUS "Performing Test HAVE_POPPLER_058 - Success" )
|
|
@@ -33,2 +33,2 @@
|
|
- set( HAVE_POPPLER_060 "" CACHE INTERNAL "" FORCE )
|
|
- message( STATUS "Performing Test HAVE_POPPLER_060 - Failed" )
|
|
+ set( HAVE_POPPLER_058 "" CACHE INTERNAL "" FORCE )
|
|
+ message( STATUS "Performing Test HAVE_POPPLER_058 - Failed" )
|
|
--- tdefile-plugins/dependencies/poppler-tqt/poppler-document.cc
|
|
+++ tdefile-plugins/dependencies/poppler-tqt/poppler-document.cc
|
|
@@ -156 +156 @@
|
|
-# if defined(HAVE_POPPLER_060)
|
|
+# if defined(HAVE_POPPLER_058)
|
|
@@ -173 +173 @@
|
|
-# if defined(HAVE_POPPLER_060)
|
|
+# if defined(HAVE_POPPLER_058)
|
|
@@ -209 +209 @@
|
|
-# if !defined(HAVE_POPPLER_060)
|
|
+# if !defined(HAVE_POPPLER_058)
|
|
@@ -215 +215 @@
|
|
-# if !defined(HAVE_POPPLER_060)
|
|
+# if !defined(HAVE_POPPLER_058)
|
|
@@ -230 +230 @@
|
|
-# if defined(HAVE_POPPLER_060)
|
|
+# if defined(HAVE_POPPLER_058)
|
|
@@ -236 +236 @@
|
|
-# if !defined(HAVE_POPPLER_060)
|
|
+# if !defined(HAVE_POPPLER_058)
|
|
@@ -249 +249 @@
|
|
-# if defined(HAVE_POPPLER_060)
|
|
+# if defined(HAVE_POPPLER_058)
|
|
@@ -267 +267 @@
|
|
-# if !defined(HAVE_POPPLER_060)
|
|
+# if !defined(HAVE_POPPLER_058)
|
|
@@ -275 +275 @@
|
|
-# if !defined(HAVE_POPPLER_060)
|
|
+# if !defined(HAVE_POPPLER_058)
|
|
@@ -362 +362 @@
|
|
-#if defined(HAVE_POPPLER_060) || defined(HAVE_POPPLER_030)
|
|
+#if defined(HAVE_POPPLER_058) || defined(HAVE_POPPLER_030)
|
|
--- tdefile-plugins/dependencies/poppler-tqt/poppler-page.cc
|
|
+++ tdefile-plugins/dependencies/poppler-tqt/poppler-page.cc
|
|
@@ -132 +132 @@
|
|
-#if defined(HAVE_POPPLER_060) || defined(HAVE_POPPLER_030) || defined(HAVE_POPPLER_020)
|
|
+#if defined(HAVE_POPPLER_058) || defined(HAVE_POPPLER_030) || defined(HAVE_POPPLER_020)
|
|
@@ -167 +167 @@
|
|
-#if defined(HAVE_POPPLER_060) || defined(HAVE_POPPLER_030) || defined(HAVE_POPPLER_020)
|
|
+#if defined(HAVE_POPPLER_058) || defined(HAVE_POPPLER_030) || defined(HAVE_POPPLER_020)
|
|
@@ -208 +208 @@
|
|
-# if defined(HAVE_POPPLER_060)
|
|
+# if defined(HAVE_POPPLER_058)
|
|
@@ -215 +215 @@
|
|
-# if !defined(HAVE_POPPLER_060)
|
|
+# if !defined(HAVE_POPPLER_058)
|
|
' | while read line
|
|
do
|
|
patch -p0
|
|
done
|
|
|
|
listdocs_fn
|
|
|
|
chown_fn
|
|
|
|
# If imlib is installed, include Kuickshow:
|
|
[[ $(ls /var/log/packages/imlib-*) ]] && KUICKSHOW=ON
|
|
cd_builddir_fn
|
|
cmake \
|
|
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
|
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
|
-DCMAKE_CXX_FLAGS_RELEASE:STRING="$SLKCFLAGS" \
|
|
-DCMAKE_C_COMPILER=${COMPILER} \
|
|
-DCMAKE_CXX_COMPILER=${COMPILER_CXX} \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=${INSTALL_TDE} \
|
|
-DSYSCONF_INSTALL_DIR=$SYS_CNF_DIR \
|
|
-DMAN_INSTALL_DIR=${INSTALL_TDE}/man \
|
|
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
|
|
-DWITH_T1LIB="OFF" \
|
|
-DWITH_TIFF="OFF" \
|
|
-DWITH_OPENEXR="OFF" \
|
|
-DWITH_PDF="ON" \
|
|
-DBUILD_ALL="ON" \
|
|
-DBUILD_TDEFILE_PLUGINS="ON" \
|
|
-DBUILD_KUICKSHOW=${KUICKSHOW:-OFF} \
|
|
-DBUILD_KPDF="ON" \
|
|
-DBUILD_KAMERA="OFF" \
|
|
-DBUILD_KSVG="OFF" \
|
|
-DBUILD_LIBKSCAN="OFF" \
|
|
-DBUILD_KOOKA="OFF" \
|
|
-Wno-dev \
|
|
..
|
|
make_fn
|
|
|
|
installdocs_fn
|
|
|
|
strip_fn
|
|
|
|
mkdir_install_fn
|
|
|
|
echo "
|
|
# HOW TO EDIT THIS FILE:
|
|
# The 'handy ruler' below makes it easier to edit a package description. Line
|
|
# up the first '|' above the ':' following the base package name, and the '|'
|
|
# on the right side marks the last column you can put a character in. You must
|
|
# make exactly 11 lines for the formatting to be correct. It's also
|
|
# customary to leave one space after the ':'.
|
|
|
|
|-----handy-ruler------------------------------------------------------|
|
|
$PRGNAM: $PRGNAM (Misc graphics apps)
|
|
$PRGNAM:
|
|
$PRGNAM: Misc graphics apps and related
|
|
$PRGNAM:
|
|
$PRGNAM:
|
|
$PRGNAM:
|
|
$PRGNAM:
|
|
$PRGNAM:
|
|
$PRGNAM:
|
|
$PRGNAM:
|
|
$PRGNAM:
|
|
" > $PKG/install/slack-desc
|
|
|
|
cat <<EOINS >> $PKG/install/doinst.sh
|
|
# Update the desktop database:
|
|
if [ -x usr/bin/update-desktop-database ]; then
|
|
chroot . /usr/bin/update-desktop-database ${INSTALL_TDE}/share/applications > /dev/null 2>&1
|
|
fi
|
|
|
|
# Update hicolor theme cache:
|
|
if [ -d usr/share/icons/hicolor ]; then
|
|
if [ -x /usr/bin/gtk-update-icon-cache ]; then
|
|
chroot . /usr/bin/gtk-update-icon-cache -f -t ${INSTALL_TDE}/share/icons/hicolor 1> /dev/null 2> /dev/null
|
|
fi
|
|
fi
|
|
EOINS
|
|
|
|
makepkg_fn
|