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

isim=poppler-qt5
surum=0.61.1
devir=1

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

derle() {
  mkdir build
  cd build
  cmake ../poppler-$surum \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX:PATH=/usr \
    -DCMAKE_INSTALL_LIBDIR=/usr/lib \
    -DENABLE_XPDF_HEADERS=ON \
    -DENABLE_GTK_DOC=ON
  make
  make -C qt5 DESTDIR="${PKG}" install
  install -m755 -d "${PKG}/usr/lib/pkgconfig"
  install -m644 poppler-qt5.pc "${PKG}/usr/lib/pkgconfig/"
}
