mk/image.mk: Ship /init in initramfs
[openadk.git] / package / meson / Makefile
blob8799b54638510981be6f42b17af19cb8371ce3ac
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR)/rules.mk
6 PKG_NAME:= meson
7 PKG_VERSION:= 0.55.3
8 PKG_RELEASE:= 1
9 PKG_HASH:= 2b276df50c5b13ccdbfb14d3333141e9e7985aca31b60400b3f3e0be2ee6897e
10 PKG_DESCR:= build utility
11 PKG_SECTION:= dev/tools
12 HOST_BUILDDEP:= python3-host ninja-host
13 PKG_URL:= http://www.mesonbuild.com/
14 PKG_SITES:= https://github.com/mesonbuild/meson/archive/
16 DISTFILES:= ${PKG_VERSION}.tar.gz
18 PKG_CFLINE_MESON:= depends on ADK_HOST_ONLY
20 include $(ADK_TOPDIR)/mk/host.mk
21 include $(ADK_TOPDIR)/mk/package.mk
23 $(eval $(call HOST_template,MESON,meson,$(PKG_VERSION)-${PKG_RELEASE}))
25 HOST_STYLE:= manual
27 host-configure:
29 host-build:
31 meson-hostinstall:
32 (cd $(WRKBUILD); PATH='$(HOST_PATH)' python3 ./setup.py install)
33 $(INSTALL_DIR) $(STAGING_HOST_DIR)/etc/meson
34 sed -e "s%@TARGET_CROSS@%$(TARGET_CROSS)%g" \
35 -e "s%@TARGET_ARCH@%$(ADK_TARGET_ARCH)%g" \
36 -e "s%@TARGET_CPU@%$(ADK_TARGET_CPU_ARCH)%g" \
37 -e "s%@TARGET_ENDIAN@%$(ADK_TARGET_ENDIAN)%g" \
38 -e "s%@TARGET_CFLAGS@%`printf '"%s", ' $(TARGET_CFLAGS)`%g" \
39 -e "s%@TARGET_LDFLAGS@%`printf '"%s", ' $(TARGET_LDFLAGS)`%g" \
40 -e "s%@TARGET_CXXFLAGS@%`printf '"%s", ' $(TARGET_CXXFLAGS)`%g" \
41 -e "s%@STAGING_HOST_DIR@%$(STAGING_HOST_DIR)%g" \
42 $(WRKBUILD)/cross-compilation.conf.in \
43 > $(STAGING_HOST_DIR)/etc/meson/cross-compilation.conf
44 sed -i "s/\"/'/g" $(STAGING_HOST_DIR)/etc/meson/cross-compilation.conf
46 include ${ADK_TOPDIR}/mk/host-bottom.mk
47 include ${ADK_TOPDIR}/mk/pkg-bottom.mk