Mercurial > mxe-octave
annotate src/poppler.mk @ 3929:6cb1bf4d1ab4
osmesa: update path to package
* src/osmesa.mk: update package urk
author | John Donoghue |
---|---|
date | Tue, 05 May 2015 15:08:30 -0400 |
parents | ae4193aad5fe |
children |
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 := | |
3480
13be64f9f16d
move version info from index.html to src/*.mk files
John W. Eaton <jwe@octave.org>
parents:
3048
diff
changeset
|
6 $(PKG)_VERSION := 0.20.5 |
2807 | 7 $(PKG)_CHECKSUM := 5eb351381e6d7994bdf7f09bb5c1075f41d79381 |
2423 | 8 $(PKG)_SUBDIR := poppler-$($(PKG)_VERSION) |
9 $(PKG)_FILE := poppler-$($(PKG)_VERSION).tar.gz | |
10 $(PKG)_URL := http://poppler.freedesktop.org/$($(PKG)_FILE) | |
3048
5ef49fb3299d
treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents:
3031
diff
changeset
|
11 $(PKG)_DEPS := glib cairo libpng lcms jpeg tiff freetype zlib curl qt |
2423 | 12 |
13 define $(PKG)_UPDATE | |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2423
diff
changeset
|
14 $(WGET) -q -O- 'http://poppler.freedesktop.org/' | \ |
3561
ae4193aad5fe
revise and enable more $(PKG)_UPDATE rules
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
15 $(SED) -n 's,.*"poppler-\([0-9.]\+\)\.tar\.xz".*,\1,p' | \ |
2423 | 16 head -1 |
17 endef | |
18 | |
19 define $(PKG)_BUILD | |
20 # Note: Specifying LIBS explicitly is necessary for configure to properly | |
21 # pick up libtiff (otherwise linking a minimal test program fails not | |
22 # because libtiff is not found, but because some references are | |
23 # undefined) | |
24 cd '$(1)' && ./configure \ | |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
25 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2855
diff
changeset
|
26 --prefix='$(HOST_PREFIX)' \ |
2423 | 27 --disable-silent-rules \ |
2855
47558e958113
Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents:
2807
diff
changeset
|
28 $(ENABLE_SHARED_OR_STATIC) \ |
2423 | 29 --enable-xpdf-headers \ |
30 --enable-poppler-qt4 \ | |
31 --enable-zlib \ | |
32 --enable-libcurl \ | |
33 --enable-libtiff \ | |
34 --enable-libjpeg \ | |
35 --enable-libpng \ | |
36 --enable-poppler-glib \ | |
37 --enable-poppler-cpp \ | |
38 --enable-cairo-output \ | |
39 --enable-splash-output \ | |
40 --enable-compile-warnings=yes \ | |
41 --enable-introspection=auto \ | |
42 --disable-libopenjpeg \ | |
43 --disable-gtk-test \ | |
44 --disable-utils \ | |
45 --disable-gtk-doc \ | |
46 --disable-gtk-doc-html \ | |
47 --disable-gtk-doc-pdf \ | |
48 --with-font-configuration=win32 \ | |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2855
diff
changeset
|
49 PKG_CONFIG_PATH_$(subst -,_,$(TARGET))='$(HOST_PREFIX)/qt/lib/pkgconfig' \ |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
50 LIBS="`'$(MXE_PKG_CONFIG)' zlib liblzma --libs` -ljpeg" |
2423 | 51 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= |
52 | |
53 # Test program | |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
54 '$(MXE_CXX)' \ |
2423 | 55 -W -Wall -Werror -ansi -pedantic \ |
3014
b6c7244a2f66
Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents:
3013
diff
changeset
|
56 '$(2).cxx' -o '$(HOST_BINDIR)/test-poppler.exe' \ |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
57 `'$(MXE_PKG_CONFIG)' poppler poppler-cpp --cflags --libs` |
2423 | 58 endef |
59 |