summaryrefslogtreecommitdiff
path: root/classes/efl1.bbclass
diff options
context:
space:
mode:
authorMichael Lauer <mickey@vanille-media.de>2007-06-21 03:44:22 +0000
committerMichael Lauer <mickey@vanille-media.de>2007-06-21 03:44:22 +0000
commit9e92b09feb313bd682ebb47d801e0e6f657b9684 (patch)
tree6129bc28bc5adc8b8451a0b5a9231b812ceb92df /classes/efl1.bbclass
parent5ee4cd92f338ea11167845c50debc6b4c7e451f9 (diff)
classes: update efl1 and e for E revamp
Diffstat (limited to 'classes/efl1.bbclass')
-rw-r--r--classes/efl1.bbclass36
1 files changed, 36 insertions, 0 deletions
diff --git a/classes/efl1.bbclass b/classes/efl1.bbclass
new file mode 100644
index 0000000000..9fc5f2c44e
--- /dev/null
+++ b/classes/efl1.bbclass
@@ -0,0 +1,36 @@
+inherit autotools pkgconfig
+
+do_prepsources () {
+ make clean distclean || true
+}
+addtask prepsources after do_fetch before do_unpack
+
+SECTION = "e/libs"
+HOMEPAGE = "http://www.enlightenment.org"
+SRCNAME = "${@bb.data.getVar('PN', d, 1).replace('-native', '')}"
+SRC_URI = "http://download.enlightenment.org/snapshots/2007-06-17/${SRCNAME}-${PV}.tar.gz"
+S = "${WORKDIR}/${SRCNAME}-${PV}"
+
+libdirectory = "src/lib"
+libraries = "lib${SRCNAME}"
+headers = "${@bb.data.getVar('SRCNAME',d,1).capitalize()}.h"
+
+def efl_is_native(d):
+ import bb
+ return ["","-native"][bb.data.inherits_class('native', d)]
+
+do_stage() {
+ autotools_stage_all
+}
+
+efl_stage_bin() {
+ rm -rf ${STAGE_TEMP}
+ mkdir -p ${STAGE_TEMP}
+ make DESTDIR="${STAGE_TEMP}" install
+ cp -pPR ${STAGE_TEMP}/${bindir}/* ${STAGING_BINDIR_CROSS}
+ rm -rf ${STAGE_TEMP}
+}
+
+PACKAGES = "${PN}-dbg ${PN} ${PN}-themes ${PN}-dev ${PN}-examples"
+FILES_${PN}-dev += "${bindir}/${PN}-config ${libdir}/pkgconfig/* ${libdir}/lib*.?a ${libdir}/lib*.a"
+FILES_${PN}-examples = "${bindir} ${datadir}"