summaryrefslogtreecommitdiffstats
path: root/src/poppler.mk
diff options
context:
space:
mode:
Diffstat (limited to 'src/poppler.mk')
-rw-r--r--src/poppler.mk19
1 files changed, 12 insertions, 7 deletions
diff --git a/src/poppler.mk b/src/poppler.mk
index c1d8cad..904adb6 100644
--- a/src/poppler.mk
+++ b/src/poppler.mk
@@ -3,16 +3,16 @@
PKG := poppler
$(PKG)_IGNORE :=
-$(PKG)_VERSION := 0.22.5
-$(PKG)_CHECKSUM := 9491bb33788d7f0ee67da572dc4798004f98323a
+$(PKG)_VERSION := 0.24.5
+$(PKG)_CHECKSUM := 7b7cabee85bd81a7e55c939740d5d7ccd7c0dda5
$(PKG)_SUBDIR := poppler-$($(PKG)_VERSION)
-$(PKG)_FILE := poppler-$($(PKG)_VERSION).tar.gz
+$(PKG)_FILE := poppler-$($(PKG)_VERSION).tar.xz
$(PKG)_URL := http://poppler.freedesktop.org/$($(PKG)_FILE)
$(PKG)_DEPS := gcc glib cairo libpng lcms jpeg tiff freetype zlib curl qt
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://poppler.freedesktop.org/' | \
- $(SED) -n 's,.*"poppler-\([0-9.]\+\)\.tar\.gz".*,\1,p' | \
+ $(SED) -n 's,.*"poppler-\([0-9.]\+\)\.tar\.xz".*,\1,p' | \
head -1
endef
@@ -21,7 +21,9 @@ define $(PKG)_BUILD
# pick up libtiff (otherwise linking a minimal test program fails not
# because libtiff is not found, but because some references are
# undefined)
- cd '$(1)' && ./configure \
+ cd '$(1)' \
+ && PATH='$(PREFIX)/$(TARGET)/qt/bin:$(PATH)' \
+ ./configure \
--host='$(TARGET)' \
--build="`config.guess`" \
--prefix='$(PREFIX)/$(TARGET)' \
@@ -31,6 +33,7 @@ define $(PKG)_BUILD
--enable-xpdf-headers \
--enable-poppler-qt4 \
--enable-zlib \
+ --enable-cms=lcms2 \
--enable-libcurl \
--enable-libtiff \
--enable-libjpeg \
@@ -48,9 +51,11 @@ define $(PKG)_BUILD
--disable-gtk-doc-html \
--disable-gtk-doc-pdf \
--with-font-configuration=win32 \
- PKG_CONFIG_PATH_$(subst -,_,$(TARGET))='$(PREFIX)/$(TARGET)/qt/lib/pkgconfig' \
+ PKG_CONFIG_PATH_$(subst .,_,$(subst -,_,$(TARGET)))='$(PREFIX)/$(TARGET)/qt/lib/pkgconfig' \
+ CXXFLAGS=-D_WIN32_WINNT=0x0500 \
LIBTIFF_LIBS="`'$(TARGET)-pkg-config' libtiff-4 --libs`"
- $(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
+ PATH='$(PREFIX)/$(TARGET)/qt/bin:$(PATH)' \
+ $(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
$(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
# Test program