annotate src/cairo.mk @ 306:85ffa9259036

validate downloads using SHA-1 checksums
author Volker Grabsch <vog@notjusthosting.com>
date Sun, 05 Apr 2009 14:00:17 +0200
parents 92713cb9be20
children 69129f67d7a0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
260
51a5ca86e401 new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
1 # cairo
51a5ca86e401 new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
2
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 270
diff changeset
3 PKG := cairo
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 270
diff changeset
4 $(PKG)_VERSION := 1.8.6
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 270
diff changeset
5 $(PKG)_CHECKSUM := d1e5479d4eeb7b1a3589672e3ef8f4899e7c5eba
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 270
diff changeset
6 $(PKG)_SUBDIR := cairo-$($(PKG)_VERSION)
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 270
diff changeset
7 $(PKG)_FILE := cairo-$($(PKG)_VERSION).tar.gz
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 270
diff changeset
8 $(PKG)_WEBSITE := http://cairographics.org/
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)
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 270
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
51a5ca86e401 new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
13 wget -q -O- 'http://cairographics.org/releases/' | \
51a5ca86e401 new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
14 grep 'LATEST-cairo-' | \
266
b94424e6c37f improved the regexes for package version recognition
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
15 $(SED) -n 's,.*"LATEST-cairo-\([0-9][^"]*\)".*,\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
51a5ca86e401 new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 define $(PKG)_BUILD
269
16a7b5bac4b5 bugfix in several build rules: use "$(SED)" instead of "sed"
Volker Grabsch <vog@notjusthosting.com>
parents: 266
diff changeset
20 $(SED) 's,^\(Libs:.*\),\1 @CAIRO_NONPKGCONFIG_LIBS@,' -i '$(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)' \
51a5ca86e401 new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
23 --disable-shared \
51a5ca86e401 new packages: jasper, pixman, cairo, pango, atk and gtk
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
24 --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
25 --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
26 --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
27 --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
28 --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
29 --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
30 --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
31 --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
32 --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
33 --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
34 --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
35 --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
36 --disable-glitz \
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 \
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
38 --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
39 --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
40 --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
41 --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
42 --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
43 --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
44 --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
45 --disable-pthread \
92713cb9be20 disable threading in package cairo, because it conflicts with glib's threading
Volker Grabsch <vog@notjusthosting.com>
parents: 269
diff changeset
46 LIBS="-lmsimg32 `$(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
47 $(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
48 endef