summaryrefslogtreecommitdiffstats
path: root/meta/classes/e.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/e.bbclass')
-rw-r--r--meta/classes/e.bbclass37
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 @@
1MAINTAINER = "Justin Patrin <papercrane@reversefold.com>"
2HOMEPAGE = "http://www.enlightenment.org"
3SECTION = "e/apps"
4
5inherit autotools pkgconfig binconfig
6
7do_prepsources () {
8 make clean distclean || true
9}
10addtask prepsources after do_fetch before do_unpack
11
12def binconfig_suffix(d):
13 import bb
14 return ["","-native"][bb.data.inherits_class('native', d)]
15
16export CURL_CONFIG = "${STAGING_BINDIR}/curl-config${@binconfig_suffix(d)}"
17export EDB_CONFIG = "${STAGING_BINDIR}/edb-config${@binconfig_suffix(d)}"
18export EET_CONFIG = "${STAGING_BINDIR}/eet-config${@binconfig_suffix(d)}"
19export EVAS_CONFIG = "${STAGING_BINDIR}/evas-config${@binconfig_suffix(d)}"
20export ECORE_CONFIG = "${STAGING_BINDIR}/ecore-config${@binconfig_suffix(d)}"
21export EMBRYO_CONFIG = "${STAGING_BINDIR}/embryo-config${@binconfig_suffix(d)}"
22export ENGRAVE_CONFIG = "${STAGING_BINDIR}/engrave-config${@binconfig_suffix(d)}"
23export ENLIGHTENMENT_CONFIG = "${STAGING_BINDIR}/enlightenment-config${@binconfig_suffix(d)}"
24export EPSILON_CONFIG = "${STAGING_BINDIR}/epsilon-config${@binconfig_suffix(d)}"
25export EPEG_CONFIG = "${STAGING_BINDIR}/epeg-config${@binconfig_suffix(d)}"
26export ESMART_CONFIG = "${STAGING_BINDIR}/esmart-config${@binconfig_suffix(d)}"
27export FREETYPE_CONFIG = "${STAGING_BINDIR}/freetype-config${@binconfig_suffix(d)}"
28export IMLIB2_CONFIG = "${STAGING_BINDIR}/imlib2-config${@binconfig_suffix(d)}"
29
30do_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
35PACKAGES = "${PN} ${PN}-themes"
36FILES_${PN} = "${libdir}/lib*.so*"
37FILES_${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"