diff options
Diffstat (limited to 'meta/classes/e.bbclass')
-rw-r--r-- | meta/classes/e.bbclass | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/meta/classes/e.bbclass b/meta/classes/e.bbclass new file mode 100644 index 0000000000..afd9b6d2b3 --- /dev/null +++ b/meta/classes/e.bbclass | |||
@@ -0,0 +1,37 @@ | |||
1 | MAINTAINER = "Justin Patrin <papercrane@reversefold.com>" | ||
2 | HOMEPAGE = "http://www.enlightenment.org" | ||
3 | SECTION = "e/apps" | ||
4 | |||
5 | inherit autotools pkgconfig binconfig | ||
6 | |||
7 | do_prepsources () { | ||
8 | make clean distclean || true | ||
9 | } | ||
10 | addtask prepsources after do_fetch before do_unpack | ||
11 | |||
12 | def binconfig_suffix(d): | ||
13 | import bb | ||
14 | return ["","-native"][bb.data.inherits_class('native', d)] | ||
15 | |||
16 | export CURL_CONFIG = "${STAGING_BINDIR}/curl-config${@binconfig_suffix(d)}" | ||
17 | export EDB_CONFIG = "${STAGING_BINDIR}/edb-config${@binconfig_suffix(d)}" | ||
18 | export EET_CONFIG = "${STAGING_BINDIR}/eet-config${@binconfig_suffix(d)}" | ||
19 | export EVAS_CONFIG = "${STAGING_BINDIR}/evas-config${@binconfig_suffix(d)}" | ||
20 | export ECORE_CONFIG = "${STAGING_BINDIR}/ecore-config${@binconfig_suffix(d)}" | ||
21 | export EMBRYO_CONFIG = "${STAGING_BINDIR}/embryo-config${@binconfig_suffix(d)}" | ||
22 | export ENGRAVE_CONFIG = "${STAGING_BINDIR}/engrave-config${@binconfig_suffix(d)}" | ||
23 | export ENLIGHTENMENT_CONFIG = "${STAGING_BINDIR}/enlightenment-config${@binconfig_suffix(d)}" | ||
24 | export EPSILON_CONFIG = "${STAGING_BINDIR}/epsilon-config${@binconfig_suffix(d)}" | ||
25 | export EPEG_CONFIG = "${STAGING_BINDIR}/epeg-config${@binconfig_suffix(d)}" | ||
26 | export ESMART_CONFIG = "${STAGING_BINDIR}/esmart-config${@binconfig_suffix(d)}" | ||
27 | export FREETYPE_CONFIG = "${STAGING_BINDIR}/freetype-config${@binconfig_suffix(d)}" | ||
28 | export IMLIB2_CONFIG = "${STAGING_BINDIR}/imlib2-config${@binconfig_suffix(d)}" | ||
29 | |||
30 | do_compile_prepend() { | ||
31 | find ${S} -name Makefile | xargs sed -i 's:/usr/include:${STAGING_INCDIR}:' | ||
32 | find ${S} -name Makefile | xargs sed -i 's:/usr/X11R6/include:${STAGING_INCDIR}:' | ||
33 | } | ||
34 | |||
35 | PACKAGES = "${PN} ${PN}-themes" | ||
36 | FILES_${PN} = "${libdir}/lib*.so*" | ||
37 | FILES_${PN}-themes = "${datadir}/${PN}/themes ${datadir}/${PN}/data ${datadir}/${PN}/fonts ${datadir}/${PN}/pointers ${datadir}/${PN}/images ${datadir}/${PN}/users ${datadir}/${PN}/images ${datadir}/${PN}/styles" | ||