summaryrefslogtreecommitdiffstats
path: root/extra/poppler/Pkgfile
blob: 0d18044932b8b79fa6a01ad606c168ecd37882a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Description: Contient une librairie pour le rendu des fichiers pdf
# URL: http://poppler.freedesktop.org/
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on: fontconfig, libjpeg, cairo, libxml2, openjpeg, lcms
# Run on: fontconfig,libjpeg,cairo,libxml2,openjpeg,qt,lcms

name=poppler
version=0.16.4
release=3
source=(http://poppler.freedesktop.org/$name-$version.tar.gz \
	http://poppler.freedesktop.org/poppler-data-0.4.4.tar.gz)

build() {
 	cd poppler-$version
        sed -i -e '/AC_PATH_XTRA/d' configure.ac
        autoreconf
        ./configure --prefix=/usr --sysconfdir=/etc \
                --localstatedir=/var --disable-static \
                --enable-cairo-output \
                --enable-xpdf-headers \
                --enable-libjpeg --enable-zlib \
                --disable-poppler-qt4 \
                --disable-poppler-glib
        make
        sed -e 's/^glib_subdir =.*/glib_subdir =/' \
            -e 's/^qt4_subdir =.*/qt4_subdir =/' -i Makefile

        make DESTDIR=$PKG install

	rm -f $PKG/usr/lib/pkgconfig/poppler-{glib,qt4}.pc
}