annotate src/cairo.mk @ 4803:e2349691d6ae

fix fontconfig dependencies Only include fontconfig as a dependency if USE_SYSTEM_FONTCONFIG is no.
author John W. Eaton <jwe@octave.org>
date Fri, 17 Aug 2018 14:09:31 -0400
parents b6819fef128f
children a7ff8e192f64
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2333
f653602a0500 Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents: 1561
diff changeset
1 # This file is part of MXE.
2353
99516e73b368 Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents: 2349
diff changeset
2 # See index.html for further information.
414
d2a6561bcb6d add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents: 397
diff changeset
3
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 270
diff changeset
4 PKG := cairo
448
e9afec55fd6b improved version recognition, enable the notation of ignored (bad) package versions
Volker Grabsch <vog@notjusthosting.com>
parents: 417
diff changeset
5 $(PKG)_IGNORE :=
4293
7fa4425df344 * src/cairo.mk: update to v1.1.4.8
John D
parents: 3480
diff changeset
6 $(PKG)_VERSION := 1.14.8
7fa4425df344 * src/cairo.mk: update to v1.1.4.8
John D
parents: 3480
diff changeset
7 $(PKG)_CHECKSUM := c6f7b99986f93c9df78653c3e6a3b5043f65145e
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 270
diff changeset
8 $(PKG)_SUBDIR := cairo-$($(PKG)_VERSION)
2613
d6edff1d892a update package cairo
Hans Petter Jansson <hpj@cl.no>
parents: 2525
diff changeset
9 $(PKG)_FILE := cairo-$($(PKG)_VERSION).tar.xz
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 270
diff changeset
10 $(PKG)_URL := http://cairographics.org/releases/$($(PKG)_FILE)
4803
e2349691d6ae fix fontconfig dependencies
John W. Eaton <jwe@octave.org>
parents: 4301
diff changeset
11 ifeq ($(USE_SYSTEM_FONTCONFIG),no)
e2349691d6ae fix fontconfig dependencies
John W. Eaton <jwe@octave.org>
parents: 4301
diff changeset
12 $(PKG)_FONTCONFIG := fontconfig
e2349691d6ae fix fontconfig dependencies
John W. Eaton <jwe@octave.org>
parents: 4301
diff changeset
13 endif
e2349691d6ae fix fontconfig dependencies
John W. Eaton <jwe@octave.org>
parents: 4301
diff changeset
14 $(PKG)_DEPS := zlib libpng $($(PKG)_FONTCONFIG) freetype pixman glib
260
51a5ca86e401 new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15
51a5ca86e401 new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16 define $(PKG)_UPDATE
2525
4d0f3a9da57e all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents: 2365
diff changeset
17 $(WGET) -q -O- 'http://cairographics.org/releases/?C=M;O=D' | \
1444
560b3cb89bab improved upgrade script of packages: cairo cairomm pixman
Volker Grabsch <vog@notjusthosting.com>
parents: 1187
diff changeset
18 $(SED) -n 's,.*"cairo-\([0-9][^"]*\)\.tar.*,\1,p' | \
260
51a5ca86e401 new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 head -1
51a5ca86e401 new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20 endef
51a5ca86e401 new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21
3167
6aaa1723e277 [MSVC] enable Cairo compilation (and bump version to 1.12.14)
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
22 $(PKG)_EXTRA_CONFIGURE_OPTIONS :=
6aaa1723e277 [MSVC] enable Cairo compilation (and bump version to 1.12.14)
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
23 # FIXME: Not sure why i was disabled...
6aaa1723e277 [MSVC] enable Cairo compilation (and bump version to 1.12.14)
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
24 #$(PKG)_EXTRA_CONFIGURE_OPTIONS += --disable-atomic
6aaa1723e277 [MSVC] enable Cairo compilation (and bump version to 1.12.14)
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
25 # Add special flag for static Win32 builds
6aaa1723e277 [MSVC] enable Cairo compilation (and bump version to 1.12.14)
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
26 ifneq ($(filter mingw msvc,$(MXE_SYSTEM)),)
6aaa1723e277 [MSVC] enable Cairo compilation (and bump version to 1.12.14)
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
27 ifeq ($(BUILD_STATIC),yes)
6aaa1723e277 [MSVC] enable Cairo compilation (and bump version to 1.12.14)
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
28 $(PKG)_EXTRA_CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS) -DCAIRO_WIN32_STATIC_BUILD"
6aaa1723e277 [MSVC] enable Cairo compilation (and bump version to 1.12.14)
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
29 endif
6aaa1723e277 [MSVC] enable Cairo compilation (and bump version to 1.12.14)
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
30 endif
6aaa1723e277 [MSVC] enable Cairo compilation (and bump version to 1.12.14)
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
31
6aaa1723e277 [MSVC] enable Cairo compilation (and bump version to 1.12.14)
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
32 # Configure script to detect float word endianness fails on MSVC.
6aaa1723e277 [MSVC] enable Cairo compilation (and bump version to 1.12.14)
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
33 ifeq ($(MXE_SYSTEM),msvc)
6aaa1723e277 [MSVC] enable Cairo compilation (and bump version to 1.12.14)
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
34 $(PKG)_EXTRA_CONFIGURE_OPTIONS += ax_cv_c_float_words_bigendian=no
6aaa1723e277 [MSVC] enable Cairo compilation (and bump version to 1.12.14)
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
35 endif
6aaa1723e277 [MSVC] enable Cairo compilation (and bump version to 1.12.14)
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
36
260
51a5ca86e401 new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
37 define $(PKG)_BUILD
51a5ca86e401 new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
38 cd '$(1)' && ./configure \
3013
bcc26ffe9a0f use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
39 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
2855
47558e958113 Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents: 2841
diff changeset
40 $(ENABLE_SHARED_OR_STATIC) \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2855
diff changeset
41 --prefix='$(HOST_PREFIX)' \
261
779eb35575ed corrected library dependencies and disabled dangling DLL stuff in packages atk, cairo, fontconfig, glib, gtk and pango
Volker Grabsch <vog@notjusthosting.com>
parents: 260
diff changeset
42 --disable-gtk-doc \
779eb35575ed corrected library dependencies and disabled dangling DLL stuff in packages atk, cairo, fontconfig, glib, gtk and pango
Volker Grabsch <vog@notjusthosting.com>
parents: 260
diff changeset
43 --disable-test-surfaces \
779eb35575ed corrected library dependencies and disabled dangling DLL stuff in packages atk, cairo, fontconfig, glib, gtk and pango
Volker Grabsch <vog@notjusthosting.com>
parents: 260
diff changeset
44 --disable-gcov \
779eb35575ed corrected library dependencies and disabled dangling DLL stuff in packages atk, cairo, fontconfig, glib, gtk and pango
Volker Grabsch <vog@notjusthosting.com>
parents: 260
diff changeset
45 --disable-xlib \
779eb35575ed corrected library dependencies and disabled dangling DLL stuff in packages atk, cairo, fontconfig, glib, gtk and pango
Volker Grabsch <vog@notjusthosting.com>
parents: 260
diff changeset
46 --disable-xlib-xrender \
779eb35575ed corrected library dependencies and disabled dangling DLL stuff in packages atk, cairo, fontconfig, glib, gtk and pango
Volker Grabsch <vog@notjusthosting.com>
parents: 260
diff changeset
47 --disable-xcb \
779eb35575ed corrected library dependencies and disabled dangling DLL stuff in packages atk, cairo, fontconfig, glib, gtk and pango
Volker Grabsch <vog@notjusthosting.com>
parents: 260
diff changeset
48 --disable-quartz \
779eb35575ed corrected library dependencies and disabled dangling DLL stuff in packages atk, cairo, fontconfig, glib, gtk and pango
Volker Grabsch <vog@notjusthosting.com>
parents: 260
diff changeset
49 --disable-quartz-font \
779eb35575ed corrected library dependencies and disabled dangling DLL stuff in packages atk, cairo, fontconfig, glib, gtk and pango
Volker Grabsch <vog@notjusthosting.com>
parents: 260
diff changeset
50 --disable-quartz-image \
779eb35575ed corrected library dependencies and disabled dangling DLL stuff in packages atk, cairo, fontconfig, glib, gtk and pango
Volker Grabsch <vog@notjusthosting.com>
parents: 260
diff changeset
51 --disable-os2 \
779eb35575ed corrected library dependencies and disabled dangling DLL stuff in packages atk, cairo, fontconfig, glib, gtk and pango
Volker Grabsch <vog@notjusthosting.com>
parents: 260
diff changeset
52 --disable-beos \
779eb35575ed corrected library dependencies and disabled dangling DLL stuff in packages atk, cairo, fontconfig, glib, gtk and pango
Volker Grabsch <vog@notjusthosting.com>
parents: 260
diff changeset
53 --disable-directfb \
779eb35575ed corrected library dependencies and disabled dangling DLL stuff in packages atk, cairo, fontconfig, glib, gtk and pango
Volker Grabsch <vog@notjusthosting.com>
parents: 260
diff changeset
54 --enable-win32 \
779eb35575ed corrected library dependencies and disabled dangling DLL stuff in packages atk, cairo, fontconfig, glib, gtk and pango
Volker Grabsch <vog@notjusthosting.com>
parents: 260
diff changeset
55 --enable-win32-font \
779eb35575ed corrected library dependencies and disabled dangling DLL stuff in packages atk, cairo, fontconfig, glib, gtk and pango
Volker Grabsch <vog@notjusthosting.com>
parents: 260
diff changeset
56 --enable-png \
779eb35575ed corrected library dependencies and disabled dangling DLL stuff in packages atk, cairo, fontconfig, glib, gtk and pango
Volker Grabsch <vog@notjusthosting.com>
parents: 260
diff changeset
57 --enable-ft \
779eb35575ed corrected library dependencies and disabled dangling DLL stuff in packages atk, cairo, fontconfig, glib, gtk and pango
Volker Grabsch <vog@notjusthosting.com>
parents: 260
diff changeset
58 --enable-ps \
779eb35575ed corrected library dependencies and disabled dangling DLL stuff in packages atk, cairo, fontconfig, glib, gtk and pango
Volker Grabsch <vog@notjusthosting.com>
parents: 260
diff changeset
59 --enable-pdf \
779eb35575ed corrected library dependencies and disabled dangling DLL stuff in packages atk, cairo, fontconfig, glib, gtk and pango
Volker Grabsch <vog@notjusthosting.com>
parents: 260
diff changeset
60 --enable-svg \
4293
7fa4425df344 * src/cairo.mk: update to v1.1.4.8
John D
parents: 3480
diff changeset
61 --disable-directfb \
270
92713cb9be20 disable threading in package cairo, because it conflicts with glib's threading
Volker Grabsch <vog@notjusthosting.com>
parents: 269
diff changeset
62 --disable-pthread \
3167
6aaa1723e277 [MSVC] enable Cairo compilation (and bump version to 1.12.14)
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
63 $($(PKG)_EXTRA_CONFIGURE_OPTIONS) \
6aaa1723e277 [MSVC] enable Cairo compilation (and bump version to 1.12.14)
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
64 PKG_CONFIG='$(MXE_PKG_CONFIG)' \
4293
7fa4425df344 * src/cairo.mk: update to v1.1.4.8
John D
parents: 3480
diff changeset
65 PKG_CONFIG_PATH='$(PKG_CONFIG_PATH)' \
3167
6aaa1723e277 [MSVC] enable Cairo compilation (and bump version to 1.12.14)
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
66 && $(CONFIGURE_POST_HOOK)
4295
7ee013a55cf6 cairo: split make/install
John D
parents: 4293
diff changeset
67 $(MAKE) -C '$(1)' -j '$(JOBS)' noinst_PROGRAMS=
7ee013a55cf6 cairo: split make/install
John D
parents: 4293
diff changeset
68 $(MAKE) -C '$(1)' -j 1 install noinst_PROGRAMS= DESTDIR='$(3)'
4301
b6819fef128f Dont install gtk-docs
John D
parents: 4295
diff changeset
69 if [ "$(ENABLE_DEP_DOCS)" == "no" ]; then \
b6819fef128f Dont install gtk-docs
John D
parents: 4295
diff changeset
70 rm -rf "$(3)$(HOST_PREFIX)/share/gtk-doc"; \
b6819fef128f Dont install gtk-docs
John D
parents: 4295
diff changeset
71 fi
260
51a5ca86e401 new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
72 endef