meta-openembedded/meta-efl/classes/efl.bbclass
Martin Jansa dcf924eb24 efl.bbclass: don't remove STAGING_LIBDIR STAGING_INCDIR from efl pkgconfig files
* but replace those with ${libdir} and ${includedir}
* it was breaking edbus:
  Cflags: -I${includedir}/e_dbus-1 -I/OE/shr-core/tmp-eglibc/sysroots/qemuarm/usr/include/dbus-1.0 -I/OE/shr-core/tmp-eglibc/sysroots/qemuarm/usr/lib/dbus-1.0/include
  after make install:
  Cflags: -I${includedir}/e_dbus-1 /dbus-1.0 -I/OE/shr-core/tmp-eglibc/sysroots/qemuarm/usr/lib/dbus-1.0/include
* and notice that dbus-1 is using -I{libdir} here, so replace it too

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-12-01 09:19:26 +01:00

64 lines
2.0 KiB
Plaintext

SECTION = "e/libs"
LICENSE = "MIT BSD"
DEPENDS += "pkgconfig-native"
# revision 0d93ec84b30bc1bee2caaee72d667f87bc468a70 made SRCDATE and hence PV go backwards, so we need to up PE to unbreak builds and feeds :(
PE = "2"
inherit e-base autotools
# evas-native looks at this var, so keep it
do_configure_prepend() {
autopoint || touch config.rpath
}
do_install_prepend () {
for i in `find ${S}/ -name "*.pc" -type f` ; do \
sed -i -e 's:-L${STAGING_LIBDIR}:-L\$\{libdir\}:g' -e 's:-I${STAGING_LIBDIR}:-I\$\{libdir\}:g' -e 's:-I${STAGING_INCDIR}:-I\$\{includedir\}:g' $i
done
}
PACKAGES =+ "${PN}-themes"
PACKAGES += "${PN}-tests"
FILES_${PN} = "${libdir}/*.so.* \
${libdir}/edje/modules/${PN}/*/module.so \
${libdir}/${PN}/plugins/*.so \
${datadir}/dbus-1/services/* \
"
FILES_${PN}-themes = "${datadir}/${PN}/themes \
${datadir}/${PN}/data \
${libdir}/${PN}/plugins/data/*.edj \
${datadir}/${PN}/fonts \
${datadir}/${PN}/pointers \
${datadir}/${PN}/images \
${datadir}/${PN}/users \
${datadir}/${PN}/images \
${datadir}/${PN}/styles"
FILES_${PN}-dev += "${bindir}/${PN}-config \
${libdir}/pkgconfig/* \
${libdir}/lib*.la \
${libdir}/*.so \
${libdir}/${PN}/*.la \
${libdir}/${PN}/*/*.la \
${datadir}/${PN}/edje_externals \
${libdir}/edje/modules/${PN}/*/module.la \
"
FILES_${PN}-static += "${libdir}/${PN}/*.a \
${libdir}/${PN}/*/*.a \
"
FILES_${PN}-dbg += "${libdir}/${PN}/.debug \
${libdir}/${PN}/*/.debug \
${libdir}/edje/modules/${PN}/*/.debug/module.so \
"
FILES_${PN}-tests = "${bindir}/${PN} \
${bindir}/*_* \
${datadir}"