annotate src/cairo.mk @ 5574:ca159200cead

* src/cairo.mk: in windows, add -fstack-protector flag rather than -lssp
author John Donoghue <john.donoghue@ieee.org>
date Fri, 30 Oct 2020 14:15:13 -0400
parents 22c56c4712b6
children 3c05fc63c6dd
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 :=
4998
a7ff8e192f64 * src/cairo.mk: update to v1.16.0
John Donoghue
parents: 4803
diff changeset
6 $(PKG)_VERSION := 1.16.0
a7ff8e192f64 * src/cairo.mk: update to v1.16.0
John Donoghue
parents: 4803
diff changeset
7 $(PKG)_CHECKSUM := 00e81842ae5e81bb0343108884eb5205be0eac14
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"
5574
ca159200cead * src/cairo.mk: in windows, add -fstack-protector flag rather than -lssp
John Donoghue <john.donoghue@ieee.org>
parents: 5434
diff changeset
29 else
ca159200cead * src/cairo.mk: in windows, add -fstack-protector flag rather than -lssp
John Donoghue <john.donoghue@ieee.org>
parents: 5434
diff changeset
30 $(PKG)_EXTRA_CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS) -fstack-protector"
3167
6aaa1723e277 [MSVC] enable Cairo compilation (and bump version to 1.12.14)
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
31 endif
5574
ca159200cead * src/cairo.mk: in windows, add -fstack-protector flag rather than -lssp
John Donoghue <john.donoghue@ieee.org>
parents: 5434
diff changeset
32 $(PKG)_EXTRA_CONFIGURE_OPTIONS += LIBS="-lmsimg32 -lgdi32"
3167
6aaa1723e277 [MSVC] enable Cairo compilation (and bump version to 1.12.14)
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
33 endif
6aaa1723e277 [MSVC] enable Cairo compilation (and bump version to 1.12.14)
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
34
6aaa1723e277 [MSVC] enable Cairo compilation (and bump version to 1.12.14)
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
35 # 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
36 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
37 $(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
38 endif
6aaa1723e277 [MSVC] enable Cairo compilation (and bump version to 1.12.14)
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
39
260
51a5ca86e401 new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
40 define $(PKG)_BUILD
5434
22c56c4712b6 * src/cairo.mk: include explicit LIBS
John Donoghue <john.donoghue@ieee.org>
parents: 4998
diff changeset
41 $(SED) -i 's,^\(Libs:.*\),\1 @CAIRO_NONPKGCONFIG_LIBS@,' '$(1)/src/cairo.pc.in'
260
51a5ca86e401 new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
42 cd '$(1)' && ./configure \
3013
bcc26ffe9a0f use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
43 $(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
44 $(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
45 --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
46 --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
47 --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
48 --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
49 --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
50 --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
51 --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
52 --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
53 --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
54 --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
55 --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
56 --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
57 --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
58 --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
59 --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
60 --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
61 --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
62 --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
63 --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
64 --enable-svg \
4293
7fa4425df344 * src/cairo.mk: update to v1.1.4.8
John D
parents: 3480
diff changeset
65 --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
66 --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
67 $($(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
68 PKG_CONFIG='$(MXE_PKG_CONFIG)' \
4293
7fa4425df344 * src/cairo.mk: update to v1.1.4.8
John D
parents: 3480
diff changeset
69 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
70 && $(CONFIGURE_POST_HOOK)
4295
7ee013a55cf6 cairo: split make/install
John D
parents: 4293
diff changeset
71 $(MAKE) -C '$(1)' -j '$(JOBS)' noinst_PROGRAMS=
7ee013a55cf6 cairo: split make/install
John D
parents: 4293
diff changeset
72 $(MAKE) -C '$(1)' -j 1 install noinst_PROGRAMS= DESTDIR='$(3)'
4301
b6819fef128f Dont install gtk-docs
John D
parents: 4295
diff changeset
73 if [ "$(ENABLE_DEP_DOCS)" == "no" ]; then \
b6819fef128f Dont install gtk-docs
John D
parents: 4295
diff changeset
74 rm -rf "$(3)$(HOST_PREFIX)/share/gtk-doc"; \
b6819fef128f Dont install gtk-docs
John D
parents: 4295
diff changeset
75 fi
260
51a5ca86e401 new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
76 endef