Mercurial > mxe-octave
annotate src/poppler.mk @ 2770:02c1929baf44
package poppler: use extra pkgconfig directory for qt
author | Mark Brand <mabrand@mabrand.nl> |
---|---|
date | Thu, 20 Sep 2012 17:01:13 +0200 |
parents | 9aa687683a32 |
children | f59af9d32db0 |
rev | line source |
---|---|
2423 | 1 # This file is part of MXE. |
2 # See index.html for further information. | |
3 | |
4 PKG := poppler | |
5 $(PKG)_IGNORE := | |
2660 | 6 $(PKG)_CHECKSUM := 0f745b593e764d27a0e21645e6febd6ad8ad2ab9 |
2423 | 7 $(PKG)_SUBDIR := poppler-$($(PKG)_VERSION) |
8 $(PKG)_FILE := poppler-$($(PKG)_VERSION).tar.gz | |
9 $(PKG)_URL := http://poppler.freedesktop.org/$($(PKG)_FILE) | |
10 $(PKG)_DEPS := gcc glib cairo libpng lcms jpeg tiff freetype zlib curl qt | |
11 | |
12 define $(PKG)_UPDATE | |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2423
diff
changeset
|
13 $(WGET) -q -O- 'http://poppler.freedesktop.org/' | \ |
2423 | 14 $(SED) -n 's,.*"poppler-\([0-9.]\+\)\.tar\.gz".*,\1,p' | \ |
15 head -1 | |
16 endef | |
17 | |
18 define $(PKG)_BUILD | |
19 # Note: Specifying LIBS explicitly is necessary for configure to properly | |
20 # pick up libtiff (otherwise linking a minimal test program fails not | |
21 # because libtiff is not found, but because some references are | |
22 # undefined) | |
23 cd '$(1)' && ./configure \ | |
24 --host='$(TARGET)' \ | |
2609 | 25 --build="`config.guess`" \ |
2423 | 26 --prefix='$(PREFIX)/$(TARGET)' \ |
27 --disable-silent-rules \ | |
28 --disable-shared \ | |
29 --enable-static \ | |
30 --enable-xpdf-headers \ | |
31 --enable-poppler-qt4 \ | |
32 --enable-zlib \ | |
33 --enable-libcurl \ | |
34 --enable-libtiff \ | |
35 --enable-libjpeg \ | |
36 --enable-libpng \ | |
37 --enable-poppler-glib \ | |
38 --enable-poppler-cpp \ | |
39 --enable-cairo-output \ | |
40 --enable-splash-output \ | |
41 --enable-compile-warnings=yes \ | |
42 --enable-introspection=auto \ | |
43 --disable-libopenjpeg \ | |
44 --disable-gtk-test \ | |
45 --disable-utils \ | |
46 --disable-gtk-doc \ | |
47 --disable-gtk-doc-html \ | |
48 --disable-gtk-doc-pdf \ | |
49 --with-font-configuration=win32 \ | |
2770
02c1929baf44
package poppler: use extra pkgconfig directory for qt
Mark Brand <mabrand@mabrand.nl>
parents:
2660
diff
changeset
|
50 LIBS="`'$(TARGET)-pkg-config' zlib liblzma --libs` -ljpeg" \ |
02c1929baf44
package poppler: use extra pkgconfig directory for qt
Mark Brand <mabrand@mabrand.nl>
parents:
2660
diff
changeset
|
51 PKG_CONFIG_PATH_i686_pc_mingw32='$(PREFIX)/$(TARGET)/qt/lib/pkgconfig:$PKG_CONFIG_PATH_i686_pc_mingw32' |
2423 | 52 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= |
53 | |
54 # Test program | |
55 '$(TARGET)-g++' \ | |
56 -W -Wall -Werror -ansi -pedantic \ | |
57 '$(2).cxx' -o '$(PREFIX)/$(TARGET)/bin/test-poppler.exe' \ | |
58 `'$(TARGET)-pkg-config' poppler poppler-cpp --cflags --libs` | |
59 endef | |
60 |