summaryrefslogtreecommitdiffstats
path: root/meta/classes/efl.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/efl.bbclass')
-rw-r--r--meta/classes/efl.bbclass49
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 @@
1inherit e
2
3SECTION = "e/libs"
4
5SRCNAME = "${@bb.data.getVar('PN', d, 1).replace('-native', '')}"
6SRC_URI = "${E_URI}/${SRCNAME}-${PV}.tar.gz"
7S = "${WORKDIR}/${SRCNAME}-${PV}"
8
9INHIBIT_AUTO_STAGE_INCLUDES = "1"
10INHIBIT_NATIVE_STAGE_INSTALL = "1"
11
12libdirectory = "src/lib"
13libraries = "lib${SRCNAME}"
14headers = "${@bb.data.getVar('SRCNAME',d,1).capitalize()}.h"
15
16do_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
46PACKAGES = "${PN} ${PN}-themes ${PN}-dev ${PN}-examples"
47FILES_${PN}-dev = "${bindir}/${PN}-config ${libdir}/pkgconfig ${libdir}/lib*.?a ${libdir}/lib*.a"
48FILES_${PN}-examples = "${bindir} ${datadir}"
49