# Tanım:Xpdf 3.0'a dayalı PDF işleme kütüphanesi
# URL: http://poppler.freedesktop.org/
# Paketçi: alihan-ozturk28@hotmail.com
# Gerekler: poppler xorg-libxxf86vm libpng xorg-fontconfig libjpeg-turbo cairo libxml2 openjpeg lcms lcms2 glib
# Grup: kütüphane

isim=poppler-glib
surum=0.46.0
devir=1

kaynak=(http://poppler.freedesktop.org/poppler-$surum.tar.xz)

derle() {
cd poppler-$surum

CXXFLAGS="-std=c++11"

./configure --prefix=/usr      \
            --sysconfdir=/etc      \
            --disable-static       \
            --disable-poppler-qt4  \
            --disable-poppler-qt5  \
            --enable-poppler-glib \
            --disable-xpdf-headers

make
make -C poppler DESTDIR=$PKG install-libLTLIBRARIES
make -C glib 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.*
rm -rf $PKG/usr/share/gtk-doc/html/poppler/ 
}
