blob: 3837083160395762c55f700e766b066a516a0bed (
plain)
1 # Description: glib wrapper for poppler
2 # URL: http://poppler.freedesktop.org/
3 # Maintainer: Juergen Daubert, jue at crux dot nu
4 # Depends on: gobject-introspection poppler
5
6 name=poppler-glib
7 version=0.55.0
8 release=1
9 source=(http://poppler.freedesktop.org/poppler-$version.tar.xz
10 poppler-cmake.patch)
11
12 build() {
13 cd poppler-$version
14
15 patch -p0 -i $SRC/poppler-cmake.patch
16
17 cmake . \
18 -DCMAKE_INSTALL_PREFIX=/usr \
19 -DENABLE_XPDF_HEADERS=OFF \
20 -DENABLE_UTILS=OFF \
21 -DENABLE_SPLASH=ON \
22 -DENABLE_CAIRO=ON \
23 -DENABLE_CPP=OFF \
24 -DENABLE_GLIB=ON \
25 -DENABLE_QT4=OFF \
26 -DENABLE_QT5=OFF \
27 -DENABLE_ZLIB=ON \
28 -DENABLE_CMS=lcms2 \
29 -DENABLE_LIBOPENJPEG=none \
30 -DENABLE_NSS3=OFF \
31 -DBUILD_GTK_TESTS=OFF \
32 -DBUILD_QT4_TESTS=OFF \
33 -DBUILD_QT5_TESTS=OFF \
34 -DBUILD_CPP_TESTS=OFF \
35
36 make
37 make DESTDIR=$PKG install
38
39 rm $PKG/usr/lib/libpoppler.so*
40 rm $PKG/usr/lib/pkgconfig/poppler.pc
41 rm $PKG/usr/lib/pkgconfig/poppler-splash.pc
42 rm $PKG/usr/lib/pkgconfig/poppler-cairo.pc
43 }
|