summaryrefslogtreecommitdiffstats
path: root/src/poppler.mk
diff options
context:
space:
mode:
authorStefan Löffler <st.loeffler@gmail.com>2012-04-17 19:07:25 (GMT)
committerStefan Löffler <st.loeffler@gmail.com>2012-04-17 19:07:25 (GMT)
commit04d70b56a3f985e0a291a241ead3996f0524b860 (patch)
treeefdc971c97a5426e4403eb88d9e75cb200f56daa /src/poppler.mk
parent7daf04c4aa4fcfc63a8c810a4f66bea7fbd29db2 (diff)
downloadmxe-04d70b56a3f985e0a291a241ead3996f0524b860.zip
mxe-04d70b56a3f985e0a291a241ead3996f0524b860.tar.gz
mxe-04d70b56a3f985e0a291a241ead3996f0524b860.tar.bz2
New package: poppler
Diffstat (limited to 'src/poppler.mk')
-rw-r--r--src/poppler.mk58
1 files changed, 58 insertions, 0 deletions
diff --git a/src/poppler.mk b/src/poppler.mk
new file mode 100644
index 0000000..06c874b
--- /dev/null
+++ b/src/poppler.mk
@@ -0,0 +1,58 @@
+# This file is part of MXE.
+# See index.html for further information.
+
+PKG := poppler
+$(PKG)_IGNORE :=
+$(PKG)_CHECKSUM := 3753caecba71afaf29f097e0b9c52e0f83a10a59
+$(PKG)_SUBDIR := poppler-$($(PKG)_VERSION)
+$(PKG)_FILE := poppler-$($(PKG)_VERSION).tar.gz
+$(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' | \
+ head -1
+endef
+
+define $(PKG)_BUILD
+ # Note: Specifying LIBS explicitly is necessary for configure to properly
+ # 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 \
+ --host='$(TARGET)' \
+ --prefix='$(PREFIX)/$(TARGET)' \
+ --disable-silent-rules \
+ --disable-shared \
+ --enable-static \
+ --enable-xpdf-headers \
+ --enable-poppler-qt4 \
+ --enable-zlib \
+ --enable-libcurl \
+ --enable-libtiff \
+ --enable-libjpeg \
+ --enable-libpng \
+ --enable-poppler-glib \
+ --enable-poppler-cpp \
+ --enable-cairo-output \
+ --enable-splash-output \
+ --enable-compile-warnings=yes \
+ --enable-introspection=auto \
+ --disable-libopenjpeg \
+ --disable-gtk-test \
+ --disable-utils \
+ --disable-gtk-doc \
+ --disable-gtk-doc-html \
+ --disable-gtk-doc-pdf \
+ --with-font-configuration=win32 \
+ LIBS="`'$(TARGET)-pkg-config' zlib liblzma --libs` -ljpeg"
+ $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
+
+ # Test program
+ '$(TARGET)-g++' \
+ -W -Wall -Werror -ansi -pedantic \
+ '$(2).cxx' -o '$(PREFIX)/$(TARGET)/bin/test-poppler.exe' \
+ `'$(TARGET)-pkg-config' poppler poppler-cpp --cflags --libs`
+endef
+