diff options
author | Johan Hovold <johan.hovold@lundinova.se> | 2009-12-17 05:18:14 +0000 |
---|---|---|
committer | Marco Cavallini <m.cavallini@koansoftware.com> | 2010-01-20 14:00:17 +0100 |
commit | 0eaeda31b9f8d286a8a58d787637b4c4d0516b2d (patch) | |
tree | 9f00d3bf1956a0eebd5b55ba428ced873328131e /recipes/wxwidgets/wxwidgets-2.9.0.inc | |
parent | c0002bd2f71a05d8bb125ba40f1c489a29436a9e (diff) | |
download | openembedded-0eaeda31b9f8d286a8a58d787637b4c4d0516b2d.tar.gz |
wxwidgets: add 2.9.0 and clean up recipes
- Add wxwidget-2.9.0 include with derived rather than hardcoded lib and
config script names (depends on debug and charset configure flags)
- Use regular expression for LEAD_SONAME rather than hardcoded name.
- Fix autoconf issue where configure could not find staging root.
- Use INC_PR.
- Add wxwidgets-2.9.0 (unicode)
- Add wxwidgets-ansi-2.9.0 (non-unicode)
- Add wxwidgets-opengl-2.9.0 (unicode, opengl)
Signed-off-by: Johan Hovold <johan.hovold@lundinova.se>
Signed-off-by: Marco Cavallini <m.cavallini@koansoftware.com>
Diffstat (limited to 'recipes/wxwidgets/wxwidgets-2.9.0.inc')
-rw-r--r-- | recipes/wxwidgets/wxwidgets-2.9.0.inc | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/recipes/wxwidgets/wxwidgets-2.9.0.inc b/recipes/wxwidgets/wxwidgets-2.9.0.inc new file mode 100644 index 0000000000..cb6a971e7a --- /dev/null +++ b/recipes/wxwidgets/wxwidgets-2.9.0.inc @@ -0,0 +1,44 @@ +require wxwidgets.inc + +INC_PR = "r0" + +PROVIDES += "wxwidgets" + +TOOLKIT ?= "gtk2" +UNICODE ?= "${@base_contains('EXTRA_OECONF', '--disable-unicode', 'ansi', 'unicode', d)}" +DEBUG ?= "${@base_contains('EXTRA_OECONF', '--enable-debug', 'debug', 'release', d)}" +RELEASE ?= "${@bb.data.getVar('PV',d,1).rsplit('.', 1)[0]}" + +WXCONFIG ?= "${TOOLKIT}-${UNICODE}-${DEBUG}-${RELEASE}" + +LEAD_SONAME = "libwx_.*_core-.*\.so" + +# Patch and regenerate configure script so that it finds staging root. +FILESDIR = "${FILE_DIRNAME}/wxwidgets-${PV}" +SRC_URI += "file://configure-cross_root.patch;patch=1" + +do_configure_prepend() { + ./autogen.sh +} + +do_stage() { + install -d ${STAGING_INCDIR}/wx-${RELEASE}/wx + cp -pR include/wx ${STAGING_INCDIR}/wx-${RELEASE} + cp -pR lib/libwx* ${STAGING_LIBDIR} + cp -pR lib/wx ${STAGING_LIBDIR} + cp -pR build/bakefiles/wxpresets/presets ${STAGING_DATADIR}/bakefile + cp -p wxwin.m4 ${STAGING_DATADIR}/aclocal + ln -sf ${STAGING_LIBDIR}/wx/config/${TARGET_PREFIX}${WXCONFIG} \ + ${STAGING_BINDIR_CROSS}/wx-config + sed -e s,'wxconfdir=".*"','wxconfigdir="${STAGING_LIBDIR}/wx/config"', \ + -e s,'bindir=".*"','bindir="${STAGING_BINDIR}"', \ + -e s,'libdir=".*"','libdir="${STAGING_LIBDIR}"', \ + -e s,'includedir=".*"','includedir="${STAGING_INCDIR}"', \ + -i ${STAGING_LIBDIR}/wx/config/${TARGET_PREFIX}${WXCONFIG} +} + +do_install() { + oe_runmake 'DESTDIR=${D}' install + ln -sf ${libdir}/wx/config/${TARGET_PREFIX}${WXCONFIG} \ + ${D}${bindir}/wx-config +} |