diff options
Diffstat (limited to 'package/meson')
| -rw-r--r-- | package/meson/Makefile | 16 | ||||
| -rw-r--r-- | package/meson/src/cross-compilation.conf.in | 11 | ||||
| -rw-r--r-- | package/meson/src/host-compilation.conf.in | 12 | 
3 files changed, 33 insertions, 6 deletions
| diff --git a/package/meson/Makefile b/package/meson/Makefile index d16d450e0..510b75b1c 100644 --- a/package/meson/Makefile +++ b/package/meson/Makefile @@ -4,12 +4,12 @@  include $(ADK_TOPDIR)/rules.mk  PKG_NAME:=		meson -PKG_VERSION:=		0.44.0 +PKG_VERSION:=		1.7.0  PKG_RELEASE:=		1 -PKG_HASH:=		5cdbc68c63b5b4a8ee862ab3b6393a2633487ebc9b3e1c3da1091b9c912d1d95 +PKG_HASH:=		a6ca46e2a11a0278bb6492ecd4e0520ff441b164ebfdef1e012b11beb848d26e  PKG_DESCR:=		build utility  PKG_SECTION:=		dev/tools -HOST_BUILDDEP:=		python3-host ninja-host +HOST_BUILDDEP:=		python3-host python3-setuptools-host ninja-host  PKG_URL:=		http://www.mesonbuild.com/  PKG_SITES:=		https://github.com/mesonbuild/meson/archive/ @@ -35,12 +35,20 @@ meson-hostinstall:  	    -e "s%@TARGET_ARCH@%$(ADK_TARGET_ARCH)%g" \  	    -e "s%@TARGET_CPU@%$(ADK_TARGET_CPU_ARCH)%g" \  	    -e "s%@TARGET_ENDIAN@%$(ADK_TARGET_ENDIAN)%g" \ -	    -e "s%@TARGET_CFLAGS@%`printf '"%s", ' $(TARGET_CFLAGS)`%g" \ +            -e "s%@TARGET_CFLAGS@%`printf '"%s", ' $(TARGET_CFLAGS)`%g" \  	    -e "s%@TARGET_LDFLAGS@%`printf '"%s", ' $(TARGET_LDFLAGS)`%g" \  	    -e "s%@TARGET_CXXFLAGS@%`printf '"%s", ' $(TARGET_CXXFLAGS)`%g" \  	    -e "s%@STAGING_HOST_DIR@%$(STAGING_HOST_DIR)%g" \  		$(WRKBUILD)/cross-compilation.conf.in \  		> $(STAGING_HOST_DIR)/etc/meson/cross-compilation.conf +	sed -i "s/\"/'/g" $(STAGING_HOST_DIR)/etc/meson/cross-compilation.conf +	sed -e "s%@HOST_CFLAGS@%`printf '"%s", ' $(HOST_CFLAGS)`%g" \ +	    -e "s%@HOST_LDFLAGS@%`printf '"%s", ' $(HOST_LDFLAGS)`%g" \ +	    -e "s%@HOST_CXXFLAGS@%`printf '"%s", ' $(HOST_CXXFLAGS)`%g" \ +	    -e "s%@STAGING_HOST_DIR@%$(STAGING_HOST_DIR)%g" \ +		$(WRKBUILD)/host-compilation.conf.in \ +		> $(STAGING_HOST_DIR)/etc/meson/host-compilation.conf +	sed -i "s/\"/'/g" $(STAGING_HOST_DIR)/etc/meson/host-compilation.conf  include ${ADK_TOPDIR}/mk/host-bottom.mk  include ${ADK_TOPDIR}/mk/pkg-bottom.mk diff --git a/package/meson/src/cross-compilation.conf.in b/package/meson/src/cross-compilation.conf.in index a636ca329..b24c71cd8 100644 --- a/package/meson/src/cross-compilation.conf.in +++ b/package/meson/src/cross-compilation.conf.in @@ -8,12 +8,19 @@ c = '@TARGET_CROSS@gcc'  cpp = '@TARGET_CROSS@g++'                                                      ar = '@TARGET_CROSS@ar'                                                        strip = '@TARGET_CROSS@strip'                                                 -pkgconfig = '@STAGING_HOST_DIR@/usr/bin/pkg-config' -[properties]                                                                  +pkg-config = '@STAGING_HOST_DIR@/usr/bin/pkg-config' +glib-compile-resources = '@STAGING_HOST_DIR@/usr/bin/glib-compile-resources' +glib-compile-schemas = '@STAGING_HOST_DIR@/usr/bin/glib-compile-schemas' +gdbus-codegen = '@STAGING_HOST_DIR@/usr/bin/gdbus-codegen' + +[built-in options]  c_args = [@TARGET_CFLAGS@]                                                     c_link_args = [@TARGET_LDFLAGS@]                                               cpp_args = [@TARGET_CXXFLAGS@]                                                 cpp_link_args = [@TARGET_LDFLAGS@]                                            + +[properties]                                                                  +needs_exe_wrapper = true  [host_machine]                                                                 system = 'linux'                                                              diff --git a/package/meson/src/host-compilation.conf.in b/package/meson/src/host-compilation.conf.in new file mode 100644 index 000000000..c67cec76e --- /dev/null +++ b/package/meson/src/host-compilation.conf.in @@ -0,0 +1,12 @@ +# Note: OpenADK's and Meson's terminologies differ about the meaning        +# of 'build', 'host' and 'target':                                            +# - OpenADK's 'host' is Meson's 'build'                                     +# - OpenADK's 'target' is Meson's 'host'                                    +                                                                              +[binaries]                                                                    +pkgconfig = '@STAGING_HOST_DIR@/usr/bin/pkg-config' +[properties]                                                                  +c_args = [@HOST_CFLAGS@]                                                    +c_link_args = [@HOST_LDFLAGS@]                                              +cpp_args = [@HOST_CXXFLAGS@]                                                +cpp_link_args = [@HOST_LDFLAGS@]                                            | 
