2 # Maintainer: David C. Rankin <drankinatty@gmail.com>
4 # All modifications and uses of this file are licensed under
5 # the software for which this file was made for, should the software
6 # be under an Open Source License, at least version 1.9, defined
7 # by the Open Source Initiative. In other cases, this file is automatically
8 # released to the Public Domain.
11 pkgname=trinity-kdegraphics
14 arch=('i686' 'x86_64')
15 url='http://www.kde.org'
17 groups=('trinity-extras')
18 pkgdesc="Trinity - kdegraphics"
19 depends=('trinity-kdebase' 'libart-lgpl' 'libgphoto2' 'libtiff' 'openexr' 't1lib')
20 makedepends=('pkgconfig' 'cmake' 'imake' 'fribidi')
22 optdepends=('xscreensaver: Screen saver and locker for the X Window System')
23 provides=('trinity-kdegraphics')
24 conflicts=('trinity-kdegraphics')
25 replaces=('trinity-kdegraphics')
26 options=('libtool' '!strip')
27 source=('GSmartPointer.h.patch' 'http://mirror.its.uidaho.edu/pub/trinity/releases/3.5.13/kdegraphics-3.5.13.tar.gz')
28 md5sums=('7b93c9bdf1208df453c9838519fab109' 'a75c254cd1060343cd04c6744bce6798')
31 trinity_prefix="/opt/trinity"
36 if grep -q cstddef ${srcdir}/kdegraphics/kviewshell/plugins/djvu/libdjvu/GSmartPointer.h; then
37 msg "Patch for GCC 4.6 - Previously Applied"
39 msg "Applying Patch for GCC 4.6"
40 patch -p0 -i ${srcdir}/GSmartPointer.h.patch || return 1
43 msg "Setting PATH, CMAKE and Trinity Environment variables"
44 export CMAKE_PREFIX_PATH=/opt/qt:/opt/trinity
45 if [[ -r /etc/profile.d/qt3.sh ]]; then
46 . /etc/profile.d/qt3.sh
47 [[ -n $QTDIR ]] && _qtdir=$QTDIR
49 [[ ${PATH%%:*} =~ ${_qtdir}/bin ]] || export PATH=${_qtdir}/bin:$PATH
52 export CMAKE_INCLUDE_PATH=/opt/qt/include:/opt/qt/include/tqt:/usr/include/dbus-1.0:/opt/trinity/include:/opt/trinity/include/libkrandr:/usr/include
53 export LD_LIBRARY_PATH=/opt/trinity/lib:/opt/trinity/lib/kde3:$LD_LIBRARY_PATH
54 export PKG_CONFIG_PATH=:/opt/trinity/lib/pkgconfig:/opt/qt/lib/pkgconfig
57 msg "Creating out-of-source build directory: ${srcdir}/build"
61 msg "Starting cmake..."
62 cmake ${srcdir}/${_svnmod} \
63 -DCMAKE_INSTALL_PREFIX=${trinity_prefix} \
64 -DCMAKE_VERBOSE_MAKEFILE=ON \
66 -DCMAKE_CXX_FLAGS="-fpermissive" \
75 # -DWITH_PDF=ON \ (waiting on poppler-qt3)
79 # -DQT_LIBRARY_DIRS=/opt/qt/lib \
83 msg "Packaging - $pkgname-$pkgver"
86 make DESTDIR="$pkgdir/" install