1
0

Makefile 958 B

1234567891011121314151617181920212223242526272829303132333435
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=meson
  3. PKG_VERSION:=0.61.5
  4. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  5. PKG_SOURCE_URL:=https://github.com/mesonbuild/meson/releases/download/$(PKG_VERSION)
  6. PKG_HASH:=5e9a0d65c1a51936362b9686d1c5e9e184a6fd245d57e7269750ce50c20f5d9a
  7. PKG_MAINTAINER:=Andre Heider <a.heider@gmail.com>
  8. PKG_LICENSE:=Apache-2.0
  9. PKG_LICENSE_FILES:=COPYING
  10. include $(INCLUDE_DIR)/host-build.mk
  11. define Host/Configure
  12. endef
  13. define Host/Compile
  14. endef
  15. define Host/Install
  16. $(INSTALL_DIR) $(STAGING_DIR_HOST)/bin
  17. $(HOST_BUILD_DIR)/packaging/create_zipapp.py $(HOST_BUILD_DIR) --outfile $(STAGING_DIR_HOST)/bin/meson.py
  18. $(INSTALL_DIR) $(STAGING_DIR_HOST)/lib/meson
  19. $(INSTALL_CONF) files/librecmc-cross.txt.in $(STAGING_DIR_HOST)/lib/meson/
  20. $(INSTALL_CONF) files/librecmc-native.txt.in $(STAGING_DIR_HOST)/lib/meson/
  21. endef
  22. define Host/Clean
  23. $(call Host/Clean/Default)
  24. rm -rf $(STAGING_DIR_HOST)/lib/meson
  25. endef
  26. $(eval $(call HostBuild))