Magellan Linux

Contents of /branches/magellan-next/extras/poppler-qt4/poppler-qt4-0.15.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7123 - (show annotations) (download)
Wed Sep 29 10:11:19 2010 UTC (13 years, 8 months ago) by niro
File size: 1426 byte(s)
-rebased bindings patch
1 # $Id: poppler-qt4-0.12.1-r1.smage2 3802 2009-11-04 09:36:52Z niro $
2
3 PNAME="poppler-qt4"
4 PVER="0.15.0"
5 PBUILD="r1"
6
7 PCATEGORIE="app-text"
8 STATE="unstable"
9
10 DESCRIPTION="Poppler bindings for QT4."
11 HOMEPAGE="http://poppler.freedesktop.org/"
12
13 DEPEND="== app-text/poppler-${PVER}"
14
15 SDEPEND=">= dev-util/pkgconfig-0.25
16 >= sys-dev/automake-3
17 >= sys-dev/autoconf-4
18 >= sys-apps/sed-4"
19
20 SRCFILE="poppler-${PVER}.tar.gz"
21 SRCDIR="${BUILDDIR}/poppler-${PVER}"
22
23 sminclude mbuild qt4
24
25 SRC_URI=(
26 http://poppler.freedesktop.org/${SRCFILE}
27 mirror://poppler/${SRCFILE}
28 mirror://poppler/poppler-${PVER}-bindings.patch
29 )
30
31 UP2DATE="updatecmd -listonly ${HOMEPAGE}/releases.html | firsttarball gz"
32
33 src_prepare()
34 {
35 munpack ${SRCFILE} || die
36 cd ${SRCDIR}
37
38 # only install the libs and compile against system libs
39 mpatch poppler-${PVER}-bindings.patch || die
40
41 # fix qt4 include pathes -> we are using include/qt
42 sed -i 's:qt4_incdirs="$QTDIR/include:&/qt:g' m4/qt.m4 || die
43 # moc for qt4 may not be found, if qt3 is installed
44 sed -i 's:MOCQT4=`which moc`:MOCQT4="$QTDIR/bin/moc":g' configure.ac || die
45
46 autoreconf --install --force --verbose || die
47 }
48
49 src_compile()
50 {
51 cd ${SRCDIR}
52
53 mconfigure \
54 --enable-opi \
55 --enable-poppler-qt4 \
56 --disable-poppler-qt \
57 --disable-cairo-output \
58 --disable-poppler-glib \
59 || die
60
61 # needed to build qt4 bindings successfully
62 mmake -C poppler libpoppler-arthur.la || die
63 mmake || die
64 }