Mercurial > mxe-octave
annotate src/cairo.mk @ 3754:8657bb199f09
zeromq: update to v4.0.5
* src/zermq.mk: update checksum, version
* src/zeromq-1.patch: removed.
* dist-files.mk: removed zeromq-1.patch.
author | John Donoghue |
---|---|
date | Wed, 03 Dec 2014 15:10:44 -0500 |
parents | 13be64f9f16d |
children | 7fa4425df344 |
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 := |
3480
13be64f9f16d
move version info from index.html to src/*.mk files
John W. Eaton <jwe@octave.org>
parents:
3168
diff
changeset
|
6 $(PKG)_VERSION := 1.12.14 |
3167
6aaa1723e277
[MSVC] enable Cairo compilation (and bump version to 1.12.14)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
7 $(PKG)_CHECKSUM := 9106ab09b2e7b9f90521b18dd4a7e9577eba6c15 |
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) |
3167
6aaa1723e277
[MSVC] enable Cairo compilation (and bump version to 1.12.14)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
11 $(PKG)_DEPS := zlib libpng fontconfig freetype pixman glib |
260
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
12 |
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
13 define $(PKG)_UPDATE |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2365
diff
changeset
|
14 $(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
|
15 $(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
|
16 head -1 |
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
17 endef |
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
18 |
3167
6aaa1723e277
[MSVC] enable Cairo compilation (and bump version to 1.12.14)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
19 $(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
|
20 # 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
|
21 #$(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
|
22 # 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
|
23 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
|
24 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
|
25 $(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
|
26 endif |
6aaa1723e277
[MSVC] enable Cairo compilation (and bump version to 1.12.14)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
27 endif |
6aaa1723e277
[MSVC] enable Cairo compilation (and bump version to 1.12.14)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
28 |
6aaa1723e277
[MSVC] enable Cairo compilation (and bump version to 1.12.14)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
29 # 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
|
30 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
|
31 $(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
|
32 endif |
6aaa1723e277
[MSVC] enable Cairo compilation (and bump version to 1.12.14)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
33 |
260
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
34 define $(PKG)_BUILD |
759
bf4bcb3370fa
changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
753
diff
changeset
|
35 $(SED) -i 's,libpng12,libpng,g' '$(1)/configure' |
bf4bcb3370fa
changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
753
diff
changeset
|
36 $(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
|
37 cd '$(1)' && ./configure \ |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
38 $(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
|
39 $(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
|
40 --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
|
41 --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
|
42 --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
|
43 --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
|
44 --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
|
45 --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
|
46 --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
|
47 --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
|
48 --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
|
49 --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
|
50 --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
|
51 --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
|
52 --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
|
53 --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
|
54 --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
|
55 --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
|
56 --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
|
57 --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
|
58 --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
|
59 --enable-svg \ |
270
92713cb9be20
disable threading in package cairo, because it conflicts with glib's threading
Volker Grabsch <vog@notjusthosting.com>
parents:
269
diff
changeset
|
60 --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
|
61 $($(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
|
62 PKG_CONFIG='$(MXE_PKG_CONFIG)' \ |
6aaa1723e277
[MSVC] enable Cairo compilation (and bump version to 1.12.14)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
63 PKG_CONFIG_PATH='$(HOST_LIBDIR)/pkgconfig' \ |
6aaa1723e277
[MSVC] enable Cairo compilation (and bump version to 1.12.14)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
64 && $(CONFIGURE_POST_HOOK) |
6aaa1723e277
[MSVC] enable Cairo compilation (and bump version to 1.12.14)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
65 $(MAKE) -C '$(1)' -j '$(JOBS)' install noinst_PROGRAMS= |
260
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
66 endef |