2022-02-05 14:23:32 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
# Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
|
|
|
|
PKG_NAME="meson"
|
2023-02-26 17:22:46 +00:00
|
|
|
PKG_VERSION="1.0.1"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_LICENSE="Apache"
|
|
|
|
PKG_SITE="http://mesonbuild.com"
|
2022-02-27 23:34:12 +00:00
|
|
|
PKG_URL="https://github.com/mesonbuild/meson/releases/download/${PKG_VERSION}/${PKG_NAME}-${PKG_VERSION}.tar.gz"
|
2022-12-06 22:00:30 +00:00
|
|
|
PKG_DEPENDS_HOST="Python3:host setuptools:host"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_LONGDESC="High productivity build system"
|
|
|
|
PKG_TOOLCHAIN="manual"
|
|
|
|
|
|
|
|
make_host() {
|
|
|
|
python3 setup.py build
|
|
|
|
}
|
|
|
|
|
|
|
|
makeinstall_host() {
|
2022-02-27 23:34:12 +00:00
|
|
|
exec_thread_safe python3 setup.py install --prefix=${TOOLCHAIN} --skip-build
|
2022-02-05 14:23:32 +00:00
|
|
|
|
|
|
|
# Avoid using full path to python3 that may exceed 128 byte limit.
|
|
|
|
# Instead use PATH as we know our toolchain is first.
|
2022-02-27 23:34:12 +00:00
|
|
|
sed -e '1 s/^#!.*$/#!\/usr\/bin\/env python3/' -i ${TOOLCHAIN}/bin/meson
|
2022-02-05 14:23:32 +00:00
|
|
|
}
|