Mercurial > mxe-octave
annotate src/cairo.mk @ 2829:9b7d60e4a19f
update package cairo
author | Mark Brand <mabrand@mabrand.nl> |
---|---|
date | Mon, 22 Oct 2012 15:22:47 +0200 |
parents | e8df1076784f |
children | 3ff647d285f6 |
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 := |
2829 | 6 $(PKG)_CHECKSUM := a383c6cb4495e18848ea43e1031c294aa9417a43 |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
270
diff
changeset
|
7 $(PKG)_SUBDIR := cairo-$($(PKG)_VERSION) |
2613 | 8 $(PKG)_FILE := cairo-$($(PKG)_VERSION).tar.xz |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
270
diff
changeset
|
9 $(PKG)_URL := http://cairographics.org/releases/$($(PKG)_FILE) |
753
0dc1c1dadcd3
fixed several dependencies and *.pc scripts
Volker Grabsch <vog@notjusthosting.com>
parents:
747
diff
changeset
|
10 $(PKG)_DEPS := gcc zlib libpng fontconfig freetype pixman |
260
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
11 |
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
12 define $(PKG)_UPDATE |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2365
diff
changeset
|
13 $(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
|
14 $(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
|
15 head -1 |
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
16 endef |
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
17 |
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
18 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
|
19 $(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
|
20 $(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
|
21 cd '$(1)' && ./configure \ |
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
22 --host='$(TARGET)' \ |
2621
a28543c4a2d1
package cairo: use config.guess
Mark Brand <mabrand@mabrand.nl>
parents:
2613
diff
changeset
|
23 --build="`config.guess`" \ |
260
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
24 --disable-shared \ |
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
25 --prefix='$(PREFIX)/$(TARGET)' \ |
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
|
26 --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
|
27 --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
|
28 --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
|
29 --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
|
30 --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
|
31 --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
|
32 --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
|
33 --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
|
34 --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
|
35 --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
|
36 --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
|
37 --disable-directfb \ |
1187
26fbdea21f7e
upgrade packages: cairo cairomm
Mark Brand <mabrand@mabrand.nl>
parents:
797
diff
changeset
|
38 --disable-atomic \ |
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
|
39 --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
|
40 --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
|
41 --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
|
42 --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
|
43 --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
|
44 --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
|
45 --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
|
46 --disable-pthread \ |
2613 | 47 CFLAGS="$(CFLAGS) -DCAIRO_WIN32_STATIC_BUILD" \ |
635
f8d5fde6a0ae
corrected dependency library flags for packages cairo and gtk (by Zdenek Hutyra)
Volker Grabsch <vog@notjusthosting.com>
parents:
634
diff
changeset
|
48 LIBS="-lmsimg32 -lgdi32 `$(TARGET)-pkg-config pixman-1 --libs`" |
260
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
49 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= |
51a5ca86e401
new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
50 endef |