diff options
Diffstat (limited to 'openembedded/classes/efl.bbclass')
| -rw-r--r-- | openembedded/classes/efl.bbclass | 40 |
1 files changed, 4 insertions, 36 deletions
diff --git a/openembedded/classes/efl.bbclass b/openembedded/classes/efl.bbclass index e5968b9aec..9c490284c2 100644 --- a/openembedded/classes/efl.bbclass +++ b/openembedded/classes/efl.bbclass | |||
| @@ -1,18 +1,11 @@ | |||
| 1 | MAINTAINER = "Justin Patrin <papercrane@reversefold.com>" | 1 | inherit e |
| 2 | HOMEPAGE = "http://www.enlightenment.org" | 2 | |
| 3 | SECTION = "e/libs" | 3 | SECTION = "e/libs" |
| 4 | 4 | ||
| 5 | SRCNAME = "${@bb.data.getVar('PN', d, 1).replace('-native', '')}" | 5 | SRCNAME = "${@bb.data.getVar('PN', d, 1).replace('-native', '')}" |
| 6 | SRC_URI = "http://enlightenment.freedesktop.org/files/${SRCNAME}-${PV}.tar.gz" | 6 | SRC_URI = "${E_URI}/${SRCNAME}-${PV}.tar.gz" |
| 7 | S = "${WORKDIR}/${SRCNAME}-${PV}" | 7 | S = "${WORKDIR}/${SRCNAME}-${PV}" |
| 8 | 8 | ||
| 9 | inherit autotools pkgconfig binconfig | ||
| 10 | |||
| 11 | do_prepsources () { | ||
| 12 | make clean distclean || true | ||
| 13 | } | ||
| 14 | addtask prepsources after do_fetch before do_unpack | ||
| 15 | |||
| 16 | INHIBIT_AUTO_STAGE_INCLUDES = "1" | 9 | INHIBIT_AUTO_STAGE_INCLUDES = "1" |
| 17 | INHIBIT_NATIVE_STAGE_INSTALL = "1" | 10 | INHIBIT_NATIVE_STAGE_INSTALL = "1" |
| 18 | 11 | ||
| @@ -20,29 +13,6 @@ libdirectory = "src/lib" | |||
| 20 | libraries = "lib${SRCNAME}" | 13 | libraries = "lib${SRCNAME}" |
| 21 | headers = "${@bb.data.getVar('SRCNAME',d,1).capitalize()}.h" | 14 | headers = "${@bb.data.getVar('SRCNAME',d,1).capitalize()}.h" |
| 22 | 15 | ||
| 23 | def binconfig_suffix(d): | ||
| 24 | import bb | ||
| 25 | return ["","-native"][bb.data.inherits_class('native', d)] | ||
| 26 | |||
| 27 | export CURL_CONFIG = "${STAGING_BINDIR}/curl-config${@binconfig_suffix(d)}" | ||
| 28 | export EDB_CONFIG = "${STAGING_BINDIR}/edb-config${@binconfig_suffix(d)}" | ||
| 29 | export EET_CONFIG = "${STAGING_BINDIR}/eet-config${@binconfig_suffix(d)}" | ||
| 30 | export EVAS_CONFIG = "${STAGING_BINDIR}/evas-config${@binconfig_suffix(d)}" | ||
| 31 | export ECORE_CONFIG = "${STAGING_BINDIR}/ecore-config${@binconfig_suffix(d)}" | ||
| 32 | export EMBRYO_CONFIG = "${STAGING_BINDIR}/embryo-config${@binconfig_suffix(d)}" | ||
| 33 | export ENGRAVE_CONFIG = "${STAGING_BINDIR}/engrave-config${@binconfig_suffix(d)}" | ||
| 34 | export ENLIGHTENMENT_CONFIG = "${STAGING_BINDIR}/enlightenment-config${@binconfig_suffix(d)}" | ||
| 35 | export EPSILON_CONFIG = "${STAGING_BINDIR}/epsilon-config${@binconfig_suffix(d)}" | ||
| 36 | export EPEG_CONFIG = "${STAGING_BINDIR}/epeg-config${@binconfig_suffix(d)}" | ||
| 37 | export ESMART_CONFIG = "${STAGING_BINDIR}/esmart-config${@binconfig_suffix(d)}" | ||
| 38 | export FREETYPE_CONFIG = "${STAGING_BINDIR}/freetype-config${@binconfig_suffix(d)}" | ||
| 39 | export IMLIB2_CONFIG = "${STAGING_BINDIR}/imlib2-config${@binconfig_suffix(d)}" | ||
| 40 | |||
| 41 | do_compile_prepend() { | ||
| 42 | find ${S} -name Makefile | xargs sed -i 's:/usr/include:${STAGING_INCDIR}:' | ||
| 43 | find ${S} -name Makefile | xargs sed -i 's:/usr/X11R6/include:${STAGING_INCDIR}:' | ||
| 44 | } | ||
| 45 | |||
| 46 | do_stage_append () { | 16 | do_stage_append () { |
| 47 | for i in ${libraries} | 17 | for i in ${libraries} |
| 48 | do | 18 | do |
| @@ -73,9 +43,7 @@ do_stage_append () { | |||
| 73 | fi | 43 | fi |
| 74 | } | 44 | } |
| 75 | 45 | ||
| 76 | PACKAGES = "${PN} ${PN}-themes ${PN}-dev ${PN}-examples " | 46 | PACKAGES = "${PN} ${PN}-themes ${PN}-dev ${PN}-examples" |
| 77 | FILES_${PN} = "${libdir}/lib*.so*" | ||
| 78 | 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" | ||
| 79 | FILES_${PN}-dev = "${bindir}/${PN}-config ${libdir}/pkgconfig ${libdir}/lib*.?a ${libdir}/lib*.a" | 47 | FILES_${PN}-dev = "${bindir}/${PN}-config ${libdir}/pkgconfig ${libdir}/lib*.?a ${libdir}/lib*.a" |
| 80 | FILES_${PN}-examples = "${bindir} ${datadir}" | 48 | FILES_${PN}-examples = "${bindir} ${datadir}" |
| 81 | 49 | ||
