summaryrefslogtreecommitdiffstats
path: root/poppler-qt/Pkgfile
blob: 6a4dd67fb22e225a54e6417ebe40c720d67f49fe (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
34
35
36
37
38
# Description: Conitient 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: qt, poppler
# Run on: qt,poppler

name=poppler-qt
version=0.18.0
#0.16.7
release=1
source=(http://poppler.freedesktop.org/poppler-$version.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 \
      		--enable-poppler-qt4 \
      		--disable-poppler-glib
  	make
  	sed -e 's/^glib_subdir =.*/glib_subdir =/' \
      	    -e 's/^qt4_subdir =.*/qt4_subdir =/' -i Makefile
	
	cd poppler
	make DESTDIR=$PKG install-libLTLIBRARIES
	cd $SRC/poppler-$version/qt4
	make DESTDIR=$PKG install

	install -m755 -d $PKG/usr/lib/pkgconfig
	install -m644 ../poppler-qt4.pc $PKG/usr/lib/pkgconfig/
  	rm -f $PKG/usr/lib/libpoppler.*
}