diff options
| author | Rosen Penev <rosenp@gmail.com> | 2021-10-04 18:48:30 -0700 |
|---|---|---|
| committer | Paul Spooren <mail@aparcar.org> | 2021-10-07 14:09:40 -1000 |
| commit | c2222f74c8eff592032473ab2d29d5e8febace63 (patch) | |
| tree | f15fb0d9c14946785d6731d1c80bf8680d56d913 | |
| parent | e4e410733f3b0cad09d3a235eec0b04f4068c331 (diff) | |
| download | upstream-c2222f74c8eff592032473ab2d29d5e8febace63.tar.gz upstream-c2222f74c8eff592032473ab2d29d5e8febace63.tar.bz2 upstream-c2222f74c8eff592032473ab2d29d5e8febace63.zip | |
tools/meson: update to 0.59.2
Update install procedure based on upstream feedback. Normally, meson is
to be installed with pip. But as pip is not mandated by the build
system, it cannot be used. Upstream provides a nice script to pack meson
automatically.
Moved src/ to files/. No need to copy to BUILD_DIR.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
| -rw-r--r-- | include/meson.mk | 3 | ||||
| -rw-r--r-- | tools/meson/Makefile | 9 | ||||
| -rw-r--r-- | tools/meson/files/openwrt-cross.txt.in (renamed from tools/meson/src/openwrt-cross.txt.in) | 0 | ||||
| -rw-r--r-- | tools/meson/files/openwrt-native.txt.in (renamed from tools/meson/src/openwrt-native.txt.in) | 0 |
4 files changed, 7 insertions, 5 deletions
diff --git a/include/meson.mk b/include/meson.mk index 01d0ce02807..9862f0e662b 100644 --- a/include/meson.mk +++ b/include/meson.mk @@ -19,7 +19,6 @@ # # Host packages are built in the same fashion, just use these vars instead: # -# HOST_BUILD_DEPENDS:=meson/host # MESON_HOST_ARGS+=-Dfoo -Dbar=baz # MESON_HOST_VARS+=FOO=bar @@ -57,7 +56,7 @@ MESON_CPU:="$(CPU_TYPE)$(if $(CPU_SUBTYPE),+$(CPU_SUBTYPE))" endif define Meson - $(2) $(STAGING_DIR_HOST)/bin/$(PYTHON) $(MESON_DIR)/meson.py $(1) + $(2) $(STAGING_DIR_HOST)/bin/meson $(1) endef define Meson/CreateNativeFile diff --git a/tools/meson/Makefile b/tools/meson/Makefile index bae89654a50..0cf0efba472 100644 --- a/tools/meson/Makefile +++ b/tools/meson/Makefile @@ -1,11 +1,11 @@ include $(TOPDIR)/rules.mk PKG_NAME:=meson -PKG_VERSION:=0.59.1 +PKG_VERSION:=0.59.2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://github.com/mesonbuild/meson/releases/download/$(PKG_VERSION) -PKG_HASH:=db586a451650d46bbe10984a87b79d9bcdc1caebf38d8e189f8848f8d502356d +PKG_HASH:=13dee549a7ba758b7e33ce7719f28d1d337a98d10d378a4779ccc996f5a2fc49 PKG_MAINTAINER:=Andre Heider <a.heider@gmail.com> PKG_LICENSE:=Apache-2.0 @@ -20,8 +20,11 @@ define Host/Compile endef define Host/Install + $(INSTALL_DIR) $(STAGING_DIR_HOST)/bin + $(HOST_BUILD_DIR)/packaging/create_zipapp.py $(HOST_BUILD_DIR) --interpreter $(STAGING_DIR_HOST)/bin/$(PYTHON) --outfile $(STAGING_DIR_HOST)/bin/meson $(INSTALL_DIR) $(STAGING_DIR_HOST)/lib/meson - $(CP) $(HOST_BUILD_DIR)/* $(STAGING_DIR_HOST)/lib/meson/ + $(INSTALL_CONF) files/openwrt-cross.txt.in $(STAGING_DIR_HOST)/lib/meson/ + $(INSTALL_CONF) files/openwrt-native.txt.in $(STAGING_DIR_HOST)/lib/meson/ endef define Host/Clean diff --git a/tools/meson/src/openwrt-cross.txt.in b/tools/meson/files/openwrt-cross.txt.in index 30b4c116c41..30b4c116c41 100644 --- a/tools/meson/src/openwrt-cross.txt.in +++ b/tools/meson/files/openwrt-cross.txt.in diff --git a/tools/meson/src/openwrt-native.txt.in b/tools/meson/files/openwrt-native.txt.in index 50308ec8e43..50308ec8e43 100644 --- a/tools/meson/src/openwrt-native.txt.in +++ b/tools/meson/files/openwrt-native.txt.in |
