diff options
| author | Tomas Frydrych <tomas@sleepfive.com> | 2013-05-17 12:25:37 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-05-21 09:30:15 +0100 |
| commit | 525771c46aa8540a395138f7dd2417cf305dad51 (patch) | |
| tree | 06bfef3d29c031b48de04ca68a2bc1113ca1ca75 | |
| parent | 6271ac326d08fb3e9b4c2008b796233ee11a83e4 (diff) | |
| download | poky-525771c46aa8540a395138f7dd2417cf305dad51.tar.gz | |
clutter.bbclass: helper class for clutter and friends
(From OE-Core rev: 19b7e58b71d31071361f19fd82666d40653569c4)
Signed-off-by: Tomas Frydrych <tomas@sleepfive.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/classes/clutter.bbclass | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/meta/classes/clutter.bbclass b/meta/classes/clutter.bbclass new file mode 100644 index 0000000000..184fb44777 --- /dev/null +++ b/meta/classes/clutter.bbclass | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | |||
| 2 | def get_minor_dir(v): | ||
| 3 | import re | ||
| 4 | m = re.match("^([0-9]+)\.([0-9]+)", v) | ||
| 5 | return "%s.%s" % (m.group(1), m.group(2)) | ||
| 6 | |||
| 7 | def get_real_name(n): | ||
| 8 | import re | ||
| 9 | m = re.match("^([a-z]+(-[a-z]+)?)(-[0-9]+\.[0-9]+)?", n) | ||
| 10 | return "%s" % (m.group(1)) | ||
| 11 | |||
| 12 | VERMINOR = "${@get_minor_dir("${PV}")}" | ||
| 13 | REALNAME = "${@get_real_name("${BPN}")}" | ||
| 14 | FILESPATH = "${@base_set_filespath(["${FILE_DIRNAME}/${REALNAME}-${PV}", "${FILE_DIRNAME}/${REALNAME}-${VERMINOR}", "${FILE_DIRNAME}/${REALNAME}", "${FILE_DIRNAME}/files"], d)}" | ||
| 15 | |||
| 16 | def get_fpu_setting(bb, d): | ||
| 17 | if d.getVar('TARGET_FPU', True) in [ 'soft' ]: | ||
| 18 | return "--without-fpu" | ||
| 19 | return "" | ||
| 20 | |||
| 21 | CLUTTER_SRC_FTP = "${GNOME_MIRROR}/${REALNAME}/${VERMINOR}/${REALNAME}-${PV}.tar.xz;name=archive" | ||
| 22 | |||
| 23 | CLUTTER_SRC_GIT = "git://git.gnome.org/${REALNAME};protocol=git" | ||
| 24 | |||
| 25 | SRC_URI = "${CLUTTER_SRC_FTP}" | ||
| 26 | S = "${WORKDIR}/${REALNAME}-${PV}" | ||
| 27 | |||
| 28 | inherit autotools pkgconfig gtk-doc gettext | ||
