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
9 PKG_HASH
:= 683082fb3c5cddf203b21d29bdf4c227e2f7964da5324a15e1a5f7db94322b4b
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}))
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
45 sed
-e
"s%@HOST_CFLAGS@%`printf '"%s
", ' $(HOST_CFLAGS)`%g" \
46 -e
"s%@HOST_LDFLAGS@%`printf '"%s
", ' $(HOST_LDFLAGS)`%g" \
47 -e
"s%@HOST_CXXFLAGS@%`printf '"%s
", ' $(HOST_CXXFLAGS)`%g" \
48 -e
"s%@STAGING_HOST_DIR@%$(STAGING_HOST_DIR)%g" \
49 $(WRKBUILD
)/host-compilation.conf.in \
50 > $(STAGING_HOST_DIR
)/etc
/meson
/host-compilation.conf
51 sed
-i
"s/\"/'/g" $(STAGING_HOST_DIR
)/etc
/meson
/host-compilation.conf
53 include ${ADK_TOPDIR}/mk
/host-bottom.mk
54 include ${ADK_TOPDIR}/mk
/pkg-bottom.mk