2022-09-04 21:43:37 +00:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
# Copyright (C) 2020-present Fewtarius
|
|
|
|
|
|
|
|
PKG_NAME="wxwidgets"
|
2022-11-08 15:09:42 +00:00
|
|
|
PKG_VERSION="97e99707c5d2271a70cb686720b48dbf34ced496"
|
2022-09-04 21:43:37 +00:00
|
|
|
PKG_LICENSE="wxWindows Library Licence"
|
|
|
|
PKG_SITE="https://github.com/wxWidgets/wxWidgets"
|
|
|
|
PKG_URL="${PKG_SITE}.git"
|
2022-11-08 15:09:42 +00:00
|
|
|
PKG_GIT_CLONE_BRANCH="3.2"
|
2022-09-11 21:10:06 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain zlib libpng libjpeg-turbo gdk-pixbuf gtk3 libaio"
|
2022-09-04 21:43:37 +00:00
|
|
|
PKG_LONGDESC="wxWidgets is a free and open source cross-platform C++ framework for writing advanced GUI applications using native controls."
|
|
|
|
PKG_BUILD_FLAGS="+pic"
|
|
|
|
|
|
|
|
pre_configure_target() {
|
|
|
|
LDFLAGS="${LDFLAGS} -fPIC"
|
|
|
|
CXXFLAGS="${CXXFLAGS} -fPIC"
|
|
|
|
}
|
|
|
|
|
|
|
|
post_install() {
|
2022-11-08 15:09:42 +00:00
|
|
|
cp ${PKG_BUILD}/.${TARGET_NAME}/lib/wx/config/gtk3-unicode-3.2 ${SYSROOT_PREFIX}/usr/bin/wx-config
|
2022-09-04 21:43:37 +00:00
|
|
|
sed -i 's#^prefix=.*#prefix='${SYSROOT_PREFIX}/usr'#' ${SYSROOT_PREFIX}/usr/bin/wx-config
|
|
|
|
sed -i 's#^exec_prefix=.*#exec_prefix='${SYSROOT_PREFIX}/usr'#' ${SYSROOT_PREFIX}/usr/bin/wx-config
|
|
|
|
}
|