diff options
Diffstat (limited to 'meta/classes/efl.bbclass')
-rw-r--r-- | meta/classes/efl.bbclass | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/meta/classes/efl.bbclass b/meta/classes/efl.bbclass new file mode 100644 index 0000000000..9c490284c2 --- /dev/null +++ b/meta/classes/efl.bbclass | |||
@@ -0,0 +1,49 @@ | |||
1 | inherit e | ||
2 | |||
3 | SECTION = "e/libs" | ||
4 | |||
5 | SRCNAME = "${@bb.data.getVar('PN', d, 1).replace('-native', '')}" | ||
6 | SRC_URI = "${E_URI}/${SRCNAME}-${PV}.tar.gz" | ||
7 | S = "${WORKDIR}/${SRCNAME}-${PV}" | ||
8 | |||
9 | INHIBIT_AUTO_STAGE_INCLUDES = "1" | ||
10 | INHIBIT_NATIVE_STAGE_INSTALL = "1" | ||
11 | |||
12 | libdirectory = "src/lib" | ||
13 | libraries = "lib${SRCNAME}" | ||
14 | headers = "${@bb.data.getVar('SRCNAME',d,1).capitalize()}.h" | ||
15 | |||
16 | do_stage_append () { | ||
17 | for i in ${libraries} | ||
18 | do | ||
19 | oe_libinstall -C ${libdirectory} $i ${STAGING_LIBDIR} | ||
20 | done | ||
21 | for i in ${headers} | ||
22 | do | ||
23 | install -m 0644 ${libdirectory}/$i ${STAGING_INCDIR} | ||
24 | done | ||
25 | |||
26 | # Install binaries automatically for native builds | ||
27 | if [ "${@binconfig_suffix(d)}" = "-native" ] | ||
28 | then | ||
29 | |||
30 | # Most EFL binaries start with the package name | ||
31 | for i in src/bin/${SRCNAME}* | ||
32 | do | ||
33 | if [ -x $i -a -f $i ] | ||
34 | then | ||
35 | |||
36 | # Don't install anything with an extension (.so, etc) | ||
37 | if echo $i | grep -v \\. | ||
38 | then | ||
39 | ${HOST_SYS}-libtool --mode=install install -m 0755 $i ${STAGING_BINDIR} | ||
40 | fi | ||
41 | fi | ||
42 | done | ||
43 | fi | ||
44 | } | ||
45 | |||
46 | PACKAGES = "${PN} ${PN}-themes ${PN}-dev ${PN}-examples" | ||
47 | FILES_${PN}-dev = "${bindir}/${PN}-config ${libdir}/pkgconfig ${libdir}/lib*.?a ${libdir}/lib*.a" | ||
48 | FILES_${PN}-examples = "${bindir} ${datadir}" | ||
49 | |||