Mercurial > mxe-octave
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 |
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 | 6 $(PKG)_VERSION := 1.14.8 |
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 | 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 | 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 | 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 | 67 $(MAKE) -C '$(1)' -j '$(JOBS)' noinst_PROGRAMS= |
68 $(MAKE) -C '$(1)' -j 1 install noinst_PROGRAMS= DESTDIR='$(3)' | |
4301 | 69 if [ "$(ENABLE_DEP_DOCS)" == "no" ]; then \ |
70 rm -rf "$(3)$(HOST_PREFIX)/share/gtk-doc"; \ | |
71 fi | |
260
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
72 endef |