mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
- generate cross-file per package, needed since https://github.com/mesonbuild/meson/pull/1807 to use changed build-flags
45 lines
1.7 KiB
Makefile
45 lines
1.7 KiB
Makefile
################################################################################
|
|
# This file is part of LibreELEC - https://libreelec.tv
|
|
# Copyright (C) 2016-present Team LibreELEC
|
|
#
|
|
# LibreELEC is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation, either version 2 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# LibreELEC is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with LibreELEC. If not, see <http://www.gnu.org/licenses/>.
|
|
################################################################################
|
|
|
|
PKG_NAME="meson"
|
|
PKG_VERSION="0.45.0"
|
|
PKG_SHA256="3455abbc30a3fbd9cc8abb6d5fcdc42ce618665b95ac2c3ad7792a4a6ba47ce4"
|
|
PKG_ARCH="any"
|
|
PKG_LICENSE="Apache"
|
|
PKG_SITE="http://mesonbuild.com"
|
|
PKG_URL="https://github.com/mesonbuild/meson/releases/download/$PKG_VERSION/$PKG_NAME-$PKG_VERSION.tar.gz"
|
|
PKG_DEPENDS_HOST="Python3:host pathlib:host"
|
|
PKG_SECTION="toolchain/devel"
|
|
PKG_SHORTDESC="High productivity build system"
|
|
PKG_LONGDESC="High productivity build system"
|
|
PKG_TOOLCHAIN="manual"
|
|
|
|
make_host() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
makeinstall_host() {
|
|
python3 setup.py install --prefix=$TOOLCHAIN --skip-build
|
|
|
|
# Avoid using full path to python3 that may exceed 128 byte limit.
|
|
# Instead use PATH as we know our toolchain is first.
|
|
for f in meson mesonconf mesontest mesonintrospect wraptool; do
|
|
sed -i '1 s/^#!.*$/#!\/usr\/bin\/env python3/' $TOOLCHAIN/bin/$f
|
|
done
|
|
}
|