diff options
| -rw-r--r-- | meta-oe/licenses/wxWidgets | 54 | ||||
| -rw-r--r-- | meta-oe/recipes-extended/wxwidgets/wxwidgets/fix-libdir-for-multilib.patch | 10 | ||||
| -rw-r--r-- | meta-oe/recipes-extended/wxwidgets/wxwidgets/not-append-system-name-to-lib-name.patch | 28 | ||||
| -rw-r--r-- | meta-oe/recipes-extended/wxwidgets/wxwidgets_3.1.5.bb (renamed from meta-oe/recipes-extended/wxwidgets/wxwidgets_git.bb) | 15 |
4 files changed, 43 insertions, 64 deletions
diff --git a/meta-oe/licenses/wxWidgets b/meta-oe/licenses/wxWidgets deleted file mode 100644 index 0f6b9d6a8b..0000000000 --- a/meta-oe/licenses/wxWidgets +++ /dev/null | |||
| @@ -1,54 +0,0 @@ | |||
| 1 | wxWindows Library Licence, Version 3.1 | ||
| 2 | ====================================== | ||
| 3 | |||
| 4 | Copyright (c) 1998-2005 Julian Smart, Robert Roebling et al | ||
| 5 | |||
| 6 | Everyone is permitted to copy and distribute verbatim copies | ||
| 7 | of this licence document, but changing it is not allowed. | ||
| 8 | |||
| 9 | WXWINDOWS LIBRARY LICENCE | ||
| 10 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION | ||
| 11 | |||
| 12 | This library is free software; you can redistribute it and/or modify it | ||
| 13 | under the terms of the GNU Library General Public Licence as published by | ||
| 14 | the Free Software Foundation; either version 2 of the Licence, or (at | ||
| 15 | your option) any later version. | ||
| 16 | |||
| 17 | This library is distributed in the hope that it will be useful, but | ||
| 18 | WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 19 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library | ||
| 20 | General Public Licence for more details. | ||
| 21 | |||
| 22 | You should have received a copy of the GNU Library General Public Licence | ||
| 23 | along with this software, usually in a file named COPYING.LIB. If not, | ||
| 24 | write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
| 25 | Boston, MA 02110-1301 USA. | ||
| 26 | |||
| 27 | EXCEPTION NOTICE | ||
| 28 | |||
| 29 | 1. As a special exception, the copyright holders of this library give | ||
| 30 | permission for additional uses of the text contained in this release of | ||
| 31 | the library as licenced under the wxWindows Library Licence, applying | ||
| 32 | either version 3.1 of the Licence, or (at your option) any later version of | ||
| 33 | the Licence as published by the copyright holders of version | ||
| 34 | 3.1 of the Licence document. | ||
| 35 | |||
| 36 | 2. The exception is that you may use, copy, link, modify and distribute | ||
| 37 | under your own terms, binary object code versions of works based | ||
| 38 | on the Library. | ||
| 39 | |||
| 40 | 3. If you copy code from files distributed under the terms of the GNU | ||
| 41 | General Public Licence or the GNU Library General Public Licence into a | ||
| 42 | copy of this library, as this licence permits, the exception does not | ||
| 43 | apply to the code that you add in this way. To avoid misleading anyone as | ||
| 44 | to the status of such modified files, you must delete this exception | ||
| 45 | notice from such code and/or adjust the licensing conditions notice | ||
| 46 | accordingly. | ||
| 47 | |||
| 48 | 4. If you write modifications of your own for this library, it is your | ||
| 49 | choice whether to permit this exception to apply to your modifications. | ||
| 50 | If you do not wish that, you must delete the exception notice from such | ||
| 51 | code and/or adjust the licensing conditions notice accordingly. | ||
| 52 | |||
| 53 | |||
| 54 | |||
diff --git a/meta-oe/recipes-extended/wxwidgets/wxwidgets/fix-libdir-for-multilib.patch b/meta-oe/recipes-extended/wxwidgets/wxwidgets/fix-libdir-for-multilib.patch index 637e54b2b8..555ed47ad6 100644 --- a/meta-oe/recipes-extended/wxwidgets/wxwidgets/fix-libdir-for-multilib.patch +++ b/meta-oe/recipes-extended/wxwidgets/wxwidgets/fix-libdir-for-multilib.patch | |||
| @@ -12,10 +12,10 @@ Signed-off-by: Kai Kang <kai.kang@windriver.com> | |||
| 12 | 4 files changed, 8 insertions(+), 8 deletions(-) | 12 | 4 files changed, 8 insertions(+), 8 deletions(-) |
| 13 | 13 | ||
| 14 | diff --git a/CMakeLists.txt b/CMakeLists.txt | 14 | diff --git a/CMakeLists.txt b/CMakeLists.txt |
| 15 | index e30d3db934..8f93c57108 100644 | 15 | index 4063020552..253d415210 100644 |
| 16 | --- a/CMakeLists.txt | 16 | --- a/CMakeLists.txt |
| 17 | +++ b/CMakeLists.txt | 17 | +++ b/CMakeLists.txt |
| 18 | @@ -37,7 +37,7 @@ include(build/cmake/policies.cmake NO_POLICY_SCOPE) | 18 | @@ -43,7 +43,7 @@ include(build/cmake/policies.cmake NO_POLICY_SCOPE) |
| 19 | # Initialize variables for quick access to wx root dir in sub dirs | 19 | # Initialize variables for quick access to wx root dir in sub dirs |
| 20 | set(wxSOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}) | 20 | set(wxSOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}) |
| 21 | set(wxBINARY_DIR ${CMAKE_BINARY_DIR}) | 21 | set(wxBINARY_DIR ${CMAKE_BINARY_DIR}) |
| @@ -25,10 +25,10 @@ index e30d3db934..8f93c57108 100644 | |||
| 25 | # parse the version number from wx/version.h and include in wxMAJOR_VERSION and wxMINOR_VERSION | 25 | # parse the version number from wx/version.h and include in wxMAJOR_VERSION and wxMINOR_VERSION |
| 26 | file(READ include/wx/version.h WX_VERSION_H_CONTENTS) | 26 | file(READ include/wx/version.h WX_VERSION_H_CONTENTS) |
| 27 | diff --git a/build/cmake/config.cmake b/build/cmake/config.cmake | 27 | diff --git a/build/cmake/config.cmake b/build/cmake/config.cmake |
| 28 | index 6978cc2725..ed16ee5635 100644 | 28 | index 91d11acba2..f361d50a27 100644 |
| 29 | --- a/build/cmake/config.cmake | 29 | --- a/build/cmake/config.cmake |
| 30 | +++ b/build/cmake/config.cmake | 30 | +++ b/build/cmake/config.cmake |
| 31 | @@ -52,7 +52,7 @@ function(wx_write_config_inplace) | 31 | @@ -57,7 +57,7 @@ function(wx_write_config_inplace) |
| 32 | execute_process( | 32 | execute_process( |
| 33 | COMMAND | 33 | COMMAND |
| 34 | ${CMAKE_COMMAND} -E create_symlink | 34 | ${CMAKE_COMMAND} -E create_symlink |
| @@ -53,7 +53,7 @@ index c33dd3946c..51e47e05b3 100644 | |||
| 53 | + RUNTIME_OUTPUT_DIRECTORY "${wxOUTPUT_DIR}" | 53 | + RUNTIME_OUTPUT_DIRECTORY "${wxOUTPUT_DIR}" |
| 54 | ) | 54 | ) |
| 55 | 55 | ||
| 56 | if(MSVC) | 56 | if(wxBUILD_PIC) |
| 57 | diff --git a/build/cmake/install.cmake b/build/cmake/install.cmake | 57 | diff --git a/build/cmake/install.cmake b/build/cmake/install.cmake |
| 58 | index 968dff859e..c850c51844 100644 | 58 | index 968dff859e..c850c51844 100644 |
| 59 | --- a/build/cmake/install.cmake | 59 | --- a/build/cmake/install.cmake |
diff --git a/meta-oe/recipes-extended/wxwidgets/wxwidgets/not-append-system-name-to-lib-name.patch b/meta-oe/recipes-extended/wxwidgets/wxwidgets/not-append-system-name-to-lib-name.patch new file mode 100644 index 0000000000..ef6963375f --- /dev/null +++ b/meta-oe/recipes-extended/wxwidgets/wxwidgets/not-append-system-name-to-lib-name.patch | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | It appends system name to library names for cross compile. For example, the | ||
| 2 | library name is libwx_baseu-3.1-Linux.so rather than libwx_baseu-3.1.so. It is | ||
| 3 | not appropriate for oe. | ||
| 4 | |||
| 5 | Upsteam-Status: Pending [oe specific] | ||
| 6 | |||
| 7 | Signed-off-by: Kai Kang <kai.kang@windriver.com> | ||
| 8 | --- | ||
| 9 | build/cmake/functions.cmake | 6 +++--- | ||
| 10 | 1 file changed, 3 insertions(+), 3 deletions(-) | ||
| 11 | |||
| 12 | diff --git a/build/cmake/functions.cmake b/build/cmake/functions.cmake | ||
| 13 | index 53cd6a1ace..95efa17fe4 100644 | ||
| 14 | --- a/build/cmake/functions.cmake | ||
| 15 | +++ b/build/cmake/functions.cmake | ||
| 16 | @@ -211,9 +211,9 @@ function(wx_set_target_properties target_name is_base) | ||
| 17 | endif() | ||
| 18 | else() | ||
| 19 | set(cross_target "") | ||
| 20 | - if (CMAKE_CROSSCOMPILING) | ||
| 21 | - set(cross_target "-${CMAKE_SYSTEM_NAME}") | ||
| 22 | - endif () | ||
| 23 | + #if (CMAKE_CROSSCOMPILING) | ||
| 24 | + # set(cross_target "-${CMAKE_SYSTEM_NAME}") | ||
| 25 | + #endif () | ||
| 26 | |||
| 27 | set_target_properties(${target_name} | ||
| 28 | PROPERTIES | ||
diff --git a/meta-oe/recipes-extended/wxwidgets/wxwidgets_git.bb b/meta-oe/recipes-extended/wxwidgets/wxwidgets_3.1.5.bb index b4420a18ea..f9349b02ab 100644 --- a/meta-oe/recipes-extended/wxwidgets/wxwidgets_git.bb +++ b/meta-oe/recipes-extended/wxwidgets/wxwidgets_3.1.5.bb | |||
| @@ -3,10 +3,10 @@ DESCRIPTION = "wxWidgets is a free and open source cross-platform C++ framework | |||
| 3 | HOMEPAGE = "https://www.wxwidgets.org/" | 3 | HOMEPAGE = "https://www.wxwidgets.org/" |
| 4 | BUGTRACKER = "https://trac.wxwidgets.org/" | 4 | BUGTRACKER = "https://trac.wxwidgets.org/" |
| 5 | 5 | ||
| 6 | # wxWidgets licence is a modified version of LGPL explicitly allowing not | 6 | # WXwindows licence is a modified version of LGPL explicitly allowing not |
| 7 | # distributing the sources of an application using the library even in the | 7 | # distributing the sources of an application using the library even in the |
| 8 | # case of static linking. | 8 | # case of static linking. |
| 9 | LICENSE = "wxWidgets" | 9 | LICENSE = "WXwindows" |
| 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)} |
| @@ -26,15 +26,16 @@ SRC_URI = " \ | |||
| 26 | file://0001-wx-config.in-Disable-cross-magic-it-does-not-work-fo.patch \ | 26 | file://0001-wx-config.in-Disable-cross-magic-it-does-not-work-fo.patch \ |
| 27 | file://fix-libdir-for-multilib.patch \ | 27 | file://fix-libdir-for-multilib.patch \ |
| 28 | file://respect-DESTDIR-when-create-link.patch \ | 28 | file://respect-DESTDIR-when-create-link.patch \ |
| 29 | file://not-append-system-name-to-lib-name.patch \ | ||
| 29 | " | 30 | " |
| 30 | PV = "3.1.4" | 31 | SRCREV= "9c0a8be1dc32063d91ed1901fd5fcd54f4f955a1" |
| 31 | SRCREV= "6cdaedd42ba59331b3dc4ead50e0bac76ae14c19" | ||
| 32 | S = "${WORKDIR}/git" | 32 | S = "${WORKDIR}/git" |
| 33 | 33 | ||
| 34 | # These can be either 'builtin' or 'sys' and builtin means cloned soures are | 34 | # These can be either 'builtin' or 'sys' and builtin means cloned soures are |
| 35 | # build. So these cannot be PACKAGECONFIGs and let's use libs where we can (see | 35 | # build. So these cannot be PACKAGECONFIGs and let's use libs where we can (see |
| 36 | # DEPENDS) | 36 | # DEPENDS) |
| 37 | EXTRA_OECMAKE += " \ | 37 | EXTRA_OECMAKE += " \ |
| 38 | -DwxUSE_GLCANVAS_EGL=OFF \ | ||
| 38 | -DwxUSE_LIBJPEG=sys \ | 39 | -DwxUSE_LIBJPEG=sys \ |
| 39 | -DwxUSE_LIBPNG=sys \ | 40 | -DwxUSE_LIBPNG=sys \ |
| 40 | -DwxUSE_LIBTIFF=sys \ | 41 | -DwxUSE_LIBTIFF=sys \ |
| @@ -46,6 +47,7 @@ EXTRA_OECMAKE:append:libc-musl = " \ | |||
| 46 | " | 47 | " |
| 47 | 48 | ||
| 48 | PACKAGECONFIG ?= "gtk ${@bb.utils.filter('DISTRO_FEATURES', 'opengl', d)}" | 49 | PACKAGECONFIG ?= "gtk ${@bb.utils.filter('DISTRO_FEATURES', 'opengl', d)}" |
| 50 | PACKAGECONFIG:remove:class-native = "opengl" | ||
| 49 | 51 | ||
| 50 | # Note on toolkit-PACKAGECONFIGs: select exactly one of 'no_gui' / 'gtk' / 'qt' | 52 | # Note on toolkit-PACKAGECONFIGs: select exactly one of 'no_gui' / 'gtk' / 'qt' |
| 51 | PACKAGECONFIG[no_gui] = "-DwxUSE_GUI=OFF,,,,,qt gtk opengl" | 53 | PACKAGECONFIG[no_gui] = "-DwxUSE_GUI=OFF,,,,,qt gtk opengl" |
| @@ -69,9 +71,10 @@ PACKAGECONFIG[gstreamer] = "-DwxUSE_MEDIACTRL=ON,-DwxUSE_MEDIACTRL=OFF,gstreamer | |||
| 69 | PACKAGECONFIG[libsecret] = "-DwxUSE_SECRETSTORE=ON,-DwxUSE_SECRETSTORE=OFF,libsecret,,,no_gui" | 71 | PACKAGECONFIG[libsecret] = "-DwxUSE_SECRETSTORE=ON,-DwxUSE_SECRETSTORE=OFF,libsecret,,,no_gui" |
| 70 | PACKAGECONFIG[lzma] = "-DwxUSE_LIBLZMA=ON,-DwxUSE_LIBLZMA=OFF,xz" | 72 | PACKAGECONFIG[lzma] = "-DwxUSE_LIBLZMA=ON,-DwxUSE_LIBLZMA=OFF,xz" |
| 71 | PACKAGECONFIG[mspack] = "-DwxUSE_LIBMSPACK=ON,-DwxUSE_LIBMSPACK=OFF,libmspack" | 73 | PACKAGECONFIG[mspack] = "-DwxUSE_LIBMSPACK=ON,-DwxUSE_LIBMSPACK=OFF,libmspack" |
| 72 | PACKAGECONFIG[opengl] = ",,libglu" | 74 | PACKAGECONFIG[opengl] = "-DwxUSE_OPENGL=ON,-DwxUSE_OPENGL=OFF,libglu" |
| 73 | PACKAGECONFIG[sdl_audio] = "-DwxUSE_LIBSDL=ON,-DwxUSE_LIBSDL=OFF,libsdl2" | 75 | PACKAGECONFIG[sdl_audio] = "-DwxUSE_LIBSDL=ON,-DwxUSE_LIBSDL=OFF,libsdl2" |
| 74 | PACKAGECONFIG[webkit] = "-DwxUSE_WEBVIEW_WEBKIT=ON,-DwxUSE_WEBVIEW_WEBKIT=OFF,webkitgtk,,,no_gui" | 76 | PACKAGECONFIG[webkit] = "-DwxUSE_WEBVIEW_WEBKIT=ON,-DwxUSE_WEBVIEW_WEBKIT=OFF,webkitgtk,,,no_gui" |
| 77 | PACKAGECONFIG[curl] = "-DwxUSE_WEBREQUEST_CURL=ON,-DwxUSE_WEBREQUEST_CURL=OFF,curl" | ||
| 75 | 78 | ||
| 76 | do_compile:append() { | 79 | do_compile:append() { |
| 77 | # if not at re-compile | 80 | # if not at re-compile |
| @@ -108,3 +111,5 @@ FILES:${PN}-dev += " \ | |||
| 108 | ${libdir}/wx/include/ \ | 111 | ${libdir}/wx/include/ \ |
| 109 | ${libdir}/wx/config/ \ | 112 | ${libdir}/wx/config/ \ |
| 110 | " | 113 | " |
| 114 | |||
| 115 | BBCLASSEXTEND = "native" | ||
