summaryrefslogtreecommitdiffstats
path: root/extra/poppler-glib/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'extra/poppler-glib/Pkgfile')
-rwxr-xr-xextra/poppler-glib/Pkgfile46
1 files changed, 25 insertions, 21 deletions
diff --git a/extra/poppler-glib/Pkgfile b/extra/poppler-glib/Pkgfile
index 271da0934..9228f8059 100755
--- a/extra/poppler-glib/Pkgfile
+++ b/extra/poppler-glib/Pkgfile
@@ -2,32 +2,36 @@
# URL: http://poppler.freedesktop.org/
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
-# Depends on: gtk, poppler, xorg-libxdamage, xorg-libxrandr, xorg-libxinerama, xorg-libxcursor
+# Depends on: gtk, poppler
# Run on: gtk,poppler
name=poppler-glib
version=0.16.4
-release=1
+release=2
source=(http://poppler.freedesktop.org/poppler-$version.tar.gz)
build() {
- cd poppler-$version
- ./configure --prefix=/usr --sysconfdir=/etc \
- --localstatedir=/var --disable-static \
- --enable-zlib \
- --enable-libjpeg \
- --enable-cairo-output \
- --disable-poppler-qt4 \
- --enable-poppler-glib \
- --disable-poppler-cpp \
- --disable-poppler-qt
- pushd poppler
- make libpoppler-cairo.la
- popd
- make
- make prefix=$PKG/usr install
- rm -r $PKG/usr/{bin,share}
- rm -r $PKG/usr/lib/libpoppler.*
- rm -r $PKG/usr/lib/pkgconfig/poppler{.pc,-splash.pc,-cairo.pc}
+ 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 \
+ --enable-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/glib
+ make DESTDIR=$PKG install
+
+ install -m755 -d $PKG/usr/lib/pkgconfig
+ install -m644 ../poppler-glib.pc $PKG/usr/lib/pkgconfig/
+ rm -f $PKG/usr/lib/libpoppler.*
}
-
+i