cairo: update to the 1.3.6 snapshot and steal some magic from gcc to set option for...
authorKoen Kooi <koen@openembedded.org>
Thu, 7 Dec 2006 09:17:32 +0000 (09:17 +0000)
committerKoen Kooi <koen@openembedded.org>
Thu, 7 Dec 2006 09:17:32 +0000 (09:17 +0000)
packages/cairo/cairo-fpu.inc [new file with mode: 0644]
packages/cairo/cairo_1.3.6.bb [new file with mode: 0644]

diff --git a/packages/cairo/cairo-fpu.inc b/packages/cairo/cairo-fpu.inc
new file mode 100644 (file)
index 0000000..bdaf789
--- /dev/null
@@ -0,0 +1,6 @@
+
+def get_cairo_fpu_setting(bb, d):
+       if bb.data.getVar('TARGET_FPU', d, 1) in [ 'soft' ]:
+               return "--disable-some-floating-point"
+       return ""
+
diff --git a/packages/cairo/cairo_1.3.6.bb b/packages/cairo/cairo_1.3.6.bb
new file mode 100644 (file)
index 0000000..d9454fa
--- /dev/null
@@ -0,0 +1,20 @@
+#This is a development snapshot, so lets hint OE to use the releases
+DEFAULT_PREFERENCE = "-1"
+
+SECTION = "libs"
+PRIORITY = "optional"
+DEPENDS = "virtual/libx11 libsm libpng fontconfig libxrender"
+DESCRIPTION = "Cairo graphics library"
+LICENSE = "MPL LGPL"
+
+SRC_URI = "http://cairographics.org/snapshots/cairo-${PV}.tar.gz"
+
+#check for TARGET_FPU=soft and inform configure of the result so it can disable some floating points 
+require cairo-fpu.inc
+EXTRA_OECONF += "${@get_cairo_fpu_setting(bb, d)}"
+
+inherit autotools pkgconfig 
+
+do_stage () {
+       autotools_stage_all
+}