comparison src/poppler.mk @ 3012:100e618349f7

Improve handling of prefix directories by defining HOST_PREFIX and BUILD_TOOLS_PREFIX variables in top-level Makefile.
author John W. Eaton <jwe@octave.org>
date Sun, 02 Jun 2013 10:31:04 -0400
parents 47558e958113
children bcc26ffe9a0f
comparison
equal deleted inserted replaced
3011:75e142c0004b 3012:100e618349f7
21 # because libtiff is not found, but because some references are 21 # because libtiff is not found, but because some references are
22 # undefined) 22 # undefined)
23 cd '$(1)' && ./configure \ 23 cd '$(1)' && ./configure \
24 --host='$(TARGET)' \ 24 --host='$(TARGET)' \
25 --build="`config.guess`" \ 25 --build="`config.guess`" \
26 --prefix='$(PREFIX)/$(TARGET)' \ 26 --prefix='$(HOST_PREFIX)' \
27 --disable-silent-rules \ 27 --disable-silent-rules \
28 $(ENABLE_SHARED_OR_STATIC) \ 28 $(ENABLE_SHARED_OR_STATIC) \
29 --enable-xpdf-headers \ 29 --enable-xpdf-headers \
30 --enable-poppler-qt4 \ 30 --enable-poppler-qt4 \
31 --enable-zlib \ 31 --enable-zlib \
44 --disable-utils \ 44 --disable-utils \
45 --disable-gtk-doc \ 45 --disable-gtk-doc \
46 --disable-gtk-doc-html \ 46 --disable-gtk-doc-html \
47 --disable-gtk-doc-pdf \ 47 --disable-gtk-doc-pdf \
48 --with-font-configuration=win32 \ 48 --with-font-configuration=win32 \
49 PKG_CONFIG_PATH_$(subst -,_,$(TARGET))='$(PREFIX)/$(TARGET)/qt/lib/pkgconfig' \ 49 PKG_CONFIG_PATH_$(subst -,_,$(TARGET))='$(HOST_PREFIX)/qt/lib/pkgconfig' \
50 LIBS="`'$(TARGET)-pkg-config' zlib liblzma --libs` -ljpeg" 50 LIBS="`'$(TARGET)-pkg-config' zlib liblzma --libs` -ljpeg"
51 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= 51 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
52 52
53 # Test program 53 # Test program
54 '$(TARGET)-g++' \ 54 '$(TARGET)-g++' \
55 -W -Wall -Werror -ansi -pedantic \ 55 -W -Wall -Werror -ansi -pedantic \
56 '$(2).cxx' -o '$(PREFIX)/$(TARGET)/bin/test-poppler.exe' \ 56 '$(2).cxx' -o '$(HOST_PREFIX)/bin/test-poppler.exe' \
57 `'$(TARGET)-pkg-config' poppler poppler-cpp --cflags --libs` 57 `'$(TARGET)-pkg-config' poppler poppler-cpp --cflags --libs`
58 endef 58 endef
59 59