package/terminology: convert to the meson-package infrastructure

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>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Thomas Petazzoni 2018-12-28 16:07:47 +01:00
parent 14cbcbe2d4
commit 8c818885de

View File

@ -10,31 +10,13 @@ TERMINOLOGY_SITE = https://download.enlightenment.org/rel/apps/terminology
TERMINOLOGY_LICENSE = BSD-2-Clause TERMINOLOGY_LICENSE = BSD-2-Clause
TERMINOLOGY_LICENSE_FILES = COPYING TERMINOLOGY_LICENSE_FILES = COPYING
TERMINOLOGY_DEPENDENCIES = $(TARGET_NLS_DEPENDENCIES) efl host-meson host-pkgconf TERMINOLOGY_DEPENDENCIES = $(TARGET_NLS_DEPENDENCIES) efl host-pkgconf
TERMINOLOGY_MESON_OPTS = \ TERMINOLOGY_CONF_OPTS = -Dedje-cc=$(HOST_DIR)/bin/edje_cc
--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
ifeq ($(BR2_SYSTEM_ENABLE_NLS),y) ifeq ($(BR2_SYSTEM_ENABLE_NLS),y)
TERMINOLOGY_MESON_OPTS += -Dnls=true TERMINOLOGY_CONF_OPTS += -Dnls=true
else else
TERMINOLOGY_MESON_OPTS += -Dnls=false TERMINOLOGY_CONF_OPTS += -Dnls=false
endif endif
define TERMINOLOGY_CONFIGURE_CMDS $(eval $(meson-package))
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))