diff options
Diffstat (limited to 'meta-oe/recipes-extended/wxwidgets/wxwidgets_git.bb')
| -rw-r--r-- | meta-oe/recipes-extended/wxwidgets/wxwidgets_git.bb | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/meta-oe/recipes-extended/wxwidgets/wxwidgets_git.bb b/meta-oe/recipes-extended/wxwidgets/wxwidgets_git.bb index 95a6e85276..555399f749 100644 --- a/meta-oe/recipes-extended/wxwidgets/wxwidgets_git.bb +++ b/meta-oe/recipes-extended/wxwidgets/wxwidgets_git.bb | |||
| @@ -10,7 +10,7 @@ LICENSE = "wxWidgets" | |||
| 10 | LIC_FILES_CHKSUM = "file://docs/licence.txt;md5=981f50a934828620b08f44d75db557c6" | 10 | LIC_FILES_CHKSUM = "file://docs/licence.txt;md5=981f50a934828620b08f44d75db557c6" |
| 11 | 11 | ||
| 12 | inherit ${@bb.utils.contains('PACKAGECONFIG', 'qt', 'cmake_qt5', 'cmake', d)} | 12 | inherit ${@bb.utils.contains('PACKAGECONFIG', 'qt', 'cmake_qt5', 'cmake', d)} |
| 13 | inherit features_check lib_package | 13 | inherit features_check lib_package binconfig |
| 14 | 14 | ||
| 15 | # All toolkit-configs except 'no_gui' require x11 explicitly (see toolkit.cmake) | 15 | # All toolkit-configs except 'no_gui' require x11 explicitly (see toolkit.cmake) |
| 16 | REQUIRED_DISTRO_FEATURES = "${@bb.utils.contains('PACKAGECONFIG', 'no_gui', '', 'x11', d)}" | 16 | REQUIRED_DISTRO_FEATURES = "${@bb.utils.contains('PACKAGECONFIG', 'no_gui', '', 'x11', d)}" |
| @@ -21,7 +21,10 @@ DEPENDS += " \ | |||
| 21 | tiff \ | 21 | tiff \ |
| 22 | " | 22 | " |
| 23 | 23 | ||
| 24 | SRC_URI = "git://github.com/wxWidgets/wxWidgets.git" | 24 | SRC_URI = " \ |
| 25 | git://github.com/wxWidgets/wxWidgets.git \ | ||
| 26 | file://0001-wx-config.in-Disable-cross-magic-it-does-not-work-fo.patch \ | ||
| 27 | " | ||
| 25 | PV = "3.1.3" | 28 | PV = "3.1.3" |
| 26 | SRCREV= "8a40d23b27ed1c80b5a2ca9f7e8461df4fbc1a31" | 29 | SRCREV= "8a40d23b27ed1c80b5a2ca9f7e8461df4fbc1a31" |
| 27 | S = "${WORKDIR}/git" | 30 | S = "${WORKDIR}/git" |
| @@ -67,6 +70,24 @@ PACKAGECONFIG[opengl] = ",,libglu" | |||
| 67 | PACKAGECONFIG[sdl_audio] = "-DwxUSE_LIBSDL=ON,-DwxUSE_LIBSDL=OFF,libsdl2" | 70 | PACKAGECONFIG[sdl_audio] = "-DwxUSE_LIBSDL=ON,-DwxUSE_LIBSDL=OFF,libsdl2" |
| 68 | PACKAGECONFIG[webkit] = "-DwxUSE_WEBVIEW_WEBKIT=ON,-DwxUSE_WEBVIEW_WEBKIT=OFF,webkitgtk,,,no_gui" | 71 | PACKAGECONFIG[webkit] = "-DwxUSE_WEBVIEW_WEBKIT=ON,-DwxUSE_WEBVIEW_WEBKIT=OFF,webkitgtk,,,no_gui" |
| 69 | 72 | ||
| 73 | do_compile_append() { | ||
| 74 | # if not at re-compile | ||
| 75 | if [ -L ${B}/wx-config ]; then | ||
| 76 | # ${B}/wx-config is a symlink for build and not needed after compile | ||
| 77 | # So for our purposes do: | ||
| 78 | # 1. make a file out of wx-config so that binconfig.bbclass detects it | ||
| 79 | # 2. make sure we do not move the file used for compiling into sysroot | ||
| 80 | cp --remove-destination `readlink ${B}/wx-config | sed 's:inplace-::'` ${B}/wx-config | ||
| 81 | fi | ||
| 82 | # 3. Set full sysroot paths so sstate can translate them when setting | ||
| 83 | # up wxwidgets's consumer sysroots | ||
| 84 | sed -i \ | ||
| 85 | -e 's,^includedir=.*,includedir="${STAGING_INCDIR}",g' \ | ||
| 86 | -e 's,^libdir=.*",libdir="${STAGING_LIBDIR}",g' \ | ||
| 87 | -e 's,^bindir=.*",bindir="${STAGING_BINDIR}",g' \ | ||
| 88 | ${B}/wx-config | ||
| 89 | } | ||
| 90 | |||
| 70 | do_install_append() { | 91 | do_install_append() { |
| 71 | # do not ship bindir if empty | 92 | # do not ship bindir if empty |
| 72 | rmdir --ignore-fail-on-non-empty ${D}${bindir} | 93 | rmdir --ignore-fail-on-non-empty ${D}${bindir} |
