Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/terminology: convert to the meson-package infrastructure
@ 2018-12-28 15:07 Thomas Petazzoni
  2018-12-28 18:26 ` Romain Naour
  2018-12-30 15:57 ` Thomas Petazzoni
  0 siblings, 2 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2018-12-28 15:07 UTC (permalink / raw)
  To: buildroot

This conversion reduces the complexity of the .mk file, but also
allows to prepare terminology for per-package meson
cross-compilation.conf, where the cross-compilation.conf file will not
be located in $(HOST_DIR)/etc/meson/cross-compilation.conf.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
---
 package/terminology/terminology.mk | 28 +++++-----------------------
 1 file changed, 5 insertions(+), 23 deletions(-)

diff --git a/package/terminology/terminology.mk b/package/terminology/terminology.mk
index af37187d90..3d144f8655 100644
--- a/package/terminology/terminology.mk
+++ b/package/terminology/terminology.mk
@@ -10,31 +10,13 @@ TERMINOLOGY_SITE = https://download.enlightenment.org/rel/apps/terminology
 TERMINOLOGY_LICENSE = BSD-2-Clause
 TERMINOLOGY_LICENSE_FILES = COPYING
 
-TERMINOLOGY_DEPENDENCIES = $(TARGET_NLS_DEPENDENCIES) efl host-meson host-pkgconf
-TERMINOLOGY_MESON_OPTS = \
-	--prefix=/usr \
-	--buildtype=$(if $(BR2_ENABLE_DEBUG),debug,release) \
-	--cross-file=$(HOST_DIR)/etc/meson/cross-compilation.conf \
-	-Dedje-cc=$(HOST_DIR)/bin/edje_cc
+TERMINOLOGY_DEPENDENCIES = $(TARGET_NLS_DEPENDENCIES) efl host-pkgconf
+TERMINOLOGY_CONF_OPTS = -Dedje-cc=$(HOST_DIR)/bin/edje_cc
 
 ifeq ($(BR2_SYSTEM_ENABLE_NLS),y)
-TERMINOLOGY_MESON_OPTS += -Dnls=true
+TERMINOLOGY_CONF_OPTS += -Dnls=true
 else
-TERMINOLOGY_MESON_OPTS += -Dnls=false
+TERMINOLOGY_CONF_OPTS += -Dnls=false
 endif
 
-define TERMINOLOGY_CONFIGURE_CMDS
-	rm -rf $(@D)/build
-	mkdir -p $(@D)/build
-	$(TARGET_MAKE_ENV) meson $(TERMINOLOGY_MESON_OPTS) $(@D) $(@D)/build
-endef
-
-define TERMINOLOGY_BUILD_CMDS
-	$(TARGET_MAKE_ENV) ninja -C $(@D)/build
-endef
-
-define TERMINOLOGY_INSTALL_TARGET_CMDS
-	$(TARGET_MAKE_ENV) DESTDIR=$(TARGET_DIR) ninja -C $(@D)/build install
-endef
-
-$(eval $(generic-package))
+$(eval $(meson-package))
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH] package/terminology: convert to the meson-package infrastructure
  2018-12-28 15:07 [Buildroot] [PATCH] package/terminology: convert to the meson-package infrastructure Thomas Petazzoni
@ 2018-12-28 18:26 ` Romain Naour
  2018-12-30 15:57 ` Thomas Petazzoni
  1 sibling, 0 replies; 3+ messages in thread
From: Romain Naour @ 2018-12-28 18:26 UTC (permalink / raw)
  To: buildroot

Hi Thomas,

Le 28/12/2018 ? 16:07, Thomas Petazzoni a ?crit?:
> This conversion reduces the complexity of the .mk file, but also
> allows to prepare terminology for per-package meson
> cross-compilation.conf, where the cross-compilation.conf file will not
> be located in $(HOST_DIR)/etc/meson/cross-compilation.conf.
> 
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>

Reviewed-by: Romain Naour <romain.naour@gmail.com>

Best regards,
Romain


> ---
>  package/terminology/terminology.mk | 28 +++++-----------------------
>  1 file changed, 5 insertions(+), 23 deletions(-)
> 
> diff --git a/package/terminology/terminology.mk b/package/terminology/terminology.mk
> index af37187d90..3d144f8655 100644
> --- a/package/terminology/terminology.mk
> +++ b/package/terminology/terminology.mk
> @@ -10,31 +10,13 @@ TERMINOLOGY_SITE = https://download.enlightenment.org/rel/apps/terminology
>  TERMINOLOGY_LICENSE = BSD-2-Clause
>  TERMINOLOGY_LICENSE_FILES = COPYING
>  
> -TERMINOLOGY_DEPENDENCIES = $(TARGET_NLS_DEPENDENCIES) efl host-meson host-pkgconf
> -TERMINOLOGY_MESON_OPTS = \
> -	--prefix=/usr \
> -	--buildtype=$(if $(BR2_ENABLE_DEBUG),debug,release) \
> -	--cross-file=$(HOST_DIR)/etc/meson/cross-compilation.conf \
> -	-Dedje-cc=$(HOST_DIR)/bin/edje_cc
> +TERMINOLOGY_DEPENDENCIES = $(TARGET_NLS_DEPENDENCIES) efl host-pkgconf
> +TERMINOLOGY_CONF_OPTS = -Dedje-cc=$(HOST_DIR)/bin/edje_cc
>  
>  ifeq ($(BR2_SYSTEM_ENABLE_NLS),y)
> -TERMINOLOGY_MESON_OPTS += -Dnls=true
> +TERMINOLOGY_CONF_OPTS += -Dnls=true
>  else
> -TERMINOLOGY_MESON_OPTS += -Dnls=false
> +TERMINOLOGY_CONF_OPTS += -Dnls=false
>  endif
>  
> -define TERMINOLOGY_CONFIGURE_CMDS
> -	rm -rf $(@D)/build
> -	mkdir -p $(@D)/build
> -	$(TARGET_MAKE_ENV) meson $(TERMINOLOGY_MESON_OPTS) $(@D) $(@D)/build
> -endef
> -
> -define TERMINOLOGY_BUILD_CMDS
> -	$(TARGET_MAKE_ENV) ninja -C $(@D)/build
> -endef
> -
> -define TERMINOLOGY_INSTALL_TARGET_CMDS
> -	$(TARGET_MAKE_ENV) DESTDIR=$(TARGET_DIR) ninja -C $(@D)/build install
> -endef
> -
> -$(eval $(generic-package))
> +$(eval $(meson-package))
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH] package/terminology: convert to the meson-package infrastructure
  2018-12-28 15:07 [Buildroot] [PATCH] package/terminology: convert to the meson-package infrastructure Thomas Petazzoni
  2018-12-28 18:26 ` Romain Naour
@ 2018-12-30 15:57 ` Thomas Petazzoni
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2018-12-30 15:57 UTC (permalink / raw)
  To: buildroot

Hello,

On Fri, 28 Dec 2018 16:07:47 +0100, Thomas Petazzoni wrote:
> This conversion reduces the complexity of the .mk file, but also
> allows to prepare terminology for per-package meson
> cross-compilation.conf, where the cross-compilation.conf file will not
> be located in $(HOST_DIR)/etc/meson/cross-compilation.conf.
> 
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
> ---
>  package/terminology/terminology.mk | 28 +++++-----------------------
>  1 file changed, 5 insertions(+), 23 deletions(-)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-12-30 15:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-28 15:07 [Buildroot] [PATCH] package/terminology: convert to the meson-package infrastructure Thomas Petazzoni
2018-12-28 18:26 ` Romain Naour
2018-12-30 15:57 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox