mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
meson: add new package
This adds a host as well as a target package.
meson.mk is provided to build packages using meson.
Signed-off-by: Andre Heider <a.heider@gmail.com>
(cherry picked from commit d83cba79c1)
This commit is contained in:
committed by
Josef Schlehofer
parent
fd5ef39e83
commit
c61579b564
@@ -0,0 +1,56 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=meson
|
||||
PKG_VERSION:=0.52.0
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://github.com/mesonbuild/meson/releases/download/$(PKG_VERSION)/
|
||||
PKG_HASH:=d60f75f0dedcc4fd249dbc7519d6f3ce6df490033d276ef1cf27453ef4938d32
|
||||
|
||||
PKG_MAINTAINER:=Andre Heider <a.heider@gmail.com>
|
||||
PKG_LICENSE:=Apache-2.0
|
||||
PKG_LICENSE_FILES:=COPYING
|
||||
|
||||
HOST_BUILD_DEPENDS:=ninja/host
|
||||
|
||||
include $(INCLUDE_DIR)/host-build.mk
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
include ../../lang/python/python3-package.mk
|
||||
|
||||
define Host/Configure
|
||||
endef
|
||||
|
||||
define Host/Compile
|
||||
endef
|
||||
|
||||
define Host/Install
|
||||
$(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/lib/meson
|
||||
$(CP) $(HOST_BUILD_DIR)/* $(STAGING_DIR_HOSTPKG)/lib/meson/
|
||||
endef
|
||||
|
||||
define Host/Clean
|
||||
$(call Host/Clean/Default)
|
||||
rm -rf $(STAGING_DIR_HOSTPKG)/lib/meson
|
||||
endef
|
||||
|
||||
define Package/meson
|
||||
SECTION:=devel
|
||||
CATEGORY:=Development
|
||||
TITLE:=meson
|
||||
URL:=https://mesonbuild.com/
|
||||
DEPENDS:=+ninja +python3-pkg-resources
|
||||
VARIANT:=python3
|
||||
endef
|
||||
|
||||
define Package/meson/description
|
||||
Meson is an open source build system meant to be both extremely fast, and, even more importantly, as user friendly as possible.
|
||||
endef
|
||||
|
||||
define Package/meson/install
|
||||
endef
|
||||
|
||||
$(eval $(call HostBuild))
|
||||
$(eval $(call Py3Package,meson))
|
||||
$(eval $(call BuildPackage,meson))
|
||||
$(eval $(call BuildPackage,meson-src))
|
||||
Reference in New Issue
Block a user