From c58cc7d3796dcee6e93885c835ed04cb566abeb2 Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Thu, 17 Mar 2011 21:41:22 +0100 Subject: move layer into meta-oe in preparation for future splits As per TSC decision Signed-off-by: Koen Kooi --- meta-oe/recipes-graphics/cairo/cairo-fpu.inc | 6 ++++++ meta-oe/recipes-graphics/cairo/cairo.inc | 20 ++++++++++++++++++++ meta-oe/recipes-graphics/cairo/cairo_1.10.0.bb | 12 ++++++++++++ 3 files changed, 38 insertions(+) create mode 100644 meta-oe/recipes-graphics/cairo/cairo-fpu.inc create mode 100644 meta-oe/recipes-graphics/cairo/cairo.inc create mode 100644 meta-oe/recipes-graphics/cairo/cairo_1.10.0.bb (limited to 'meta-oe/recipes-graphics/cairo') diff --git a/meta-oe/recipes-graphics/cairo/cairo-fpu.inc b/meta-oe/recipes-graphics/cairo/cairo-fpu.inc new file mode 100644 index 000000000..bdaf78979 --- /dev/null +++ b/meta-oe/recipes-graphics/cairo/cairo-fpu.inc @@ -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/meta-oe/recipes-graphics/cairo/cairo.inc b/meta-oe/recipes-graphics/cairo/cairo.inc new file mode 100644 index 000000000..42774e05b --- /dev/null +++ b/meta-oe/recipes-graphics/cairo/cairo.inc @@ -0,0 +1,20 @@ +SECTION = "libs" +PRIORITY = "optional" +DEPENDS = "virtual/libx11 pixman libsm libpng fontconfig libxrender glib-2.0" +DESCRIPTION = "Cairo graphics library" +LICENSE = "MPL LGPL" + +#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 + +BBCLASSEXTEND = "native" + +PACKAGES =+ "cairo-trace cairo-trace-dev libcairo-script-interpreter libcairo-gobject" +FILES_libcairo-gobject = "${libdir}/libcairo-gobject.so.*" +FILES_libcairo-script-interpreter = "${libdir}/libcairo-script-interpreter.so.*" +FILES_cairo-trace = "${bindir}/*trace ${libdir}/cairo/libcairo-trace.so.*" +FILES_cairo-trace-dev = "${libdir}/cairo/*" + diff --git a/meta-oe/recipes-graphics/cairo/cairo_1.10.0.bb b/meta-oe/recipes-graphics/cairo/cairo_1.10.0.bb new file mode 100644 index 000000000..dccb726ed --- /dev/null +++ b/meta-oe/recipes-graphics/cairo/cairo_1.10.0.bb @@ -0,0 +1,12 @@ +require cairo.inc + +LIC_FILES_CHKSUM = "file://COPYING;md5=e73e999e0c72b5ac9012424fa157ad77" + +PR = "r1" + +SRC_URI = "http://cairographics.org/releases/cairo-${PV}.tar.gz;name=cairo \ +" + +SRC_URI[cairo.md5sum] = "70a2ece66cf473d976e2db0f75bf199e" +SRC_URI[cairo.sha256sum] = "0f2ce4cc4615594088d74eb8b5360bad7c3cc3c3da9b61af9bfd979ed1ed94b2" + -- cgit v1.2.3-54-g00ecf