2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-12-24 12:24:24 +01:00
|
|
|
#
|
|
|
|
# enlightenment
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-12-24 12:24:24 +01:00
|
|
|
|
2018-03-24 17:24:25 +01:00
|
|
|
ENLIGHTENMENT_VERSION = 0.22.3
|
2015-12-15 23:40:26 +01:00
|
|
|
ENLIGHTENMENT_SOURCE = enlightenment-$(ENLIGHTENMENT_VERSION).tar.xz
|
|
|
|
ENLIGHTENMENT_SITE = http://download.enlightenment.org/rel/apps/enlightenment
|
2017-03-30 15:43:39 +02:00
|
|
|
ENLIGHTENMENT_LICENSE = BSD-2-Clause
|
2012-12-24 12:24:24 +01:00
|
|
|
ENLIGHTENMENT_LICENSE_FILES = COPYING
|
|
|
|
|
2015-12-15 23:40:26 +01:00
|
|
|
ENLIGHTENMENT_DEPENDENCIES = \
|
|
|
|
host-pkgconf \
|
2015-12-19 17:39:16 +01:00
|
|
|
host-efl \
|
2018-01-05 17:32:23 +01:00
|
|
|
host-meson \
|
2015-12-19 17:39:16 +01:00
|
|
|
efl \
|
2012-12-24 12:24:24 +01:00
|
|
|
xcb-util-keysyms
|
|
|
|
|
2018-01-05 17:32:23 +01:00
|
|
|
ENLIGHTENMENT_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 \
|
2018-03-15 23:50:08 +01:00
|
|
|
-Deet=$(HOST_DIR)/bin/eet \
|
|
|
|
-Deldbus-codegen=$(HOST_DIR)/bin/eldbus-codegen \
|
|
|
|
-Dpam=false
|
2016-07-23 00:23:18 +02:00
|
|
|
|
2018-03-15 23:50:12 +01:00
|
|
|
# enlightenment.pc and /usr/lib/enlightenment/modules/*.so
|
|
|
|
ENLIGHTENMENT_INSTALL_STAGING = YES
|
|
|
|
|
2016-07-23 00:23:18 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
|
2018-01-05 17:32:23 +01:00
|
|
|
ENLIGHTENMENT_MESON_OPTS += -Dsystemd=true
|
2016-07-23 00:23:18 +02:00
|
|
|
ENLIGHTENMENT_DEPENDENCIES += systemd
|
|
|
|
else
|
2018-01-05 17:32:23 +01:00
|
|
|
ENLIGHTENMENT_MESON_OPTS += -Dsystemd=false
|
2016-07-23 00:23:18 +02:00
|
|
|
endif
|
2012-12-24 12:24:24 +01:00
|
|
|
|
2013-02-25 15:53:01 +01:00
|
|
|
# alsa backend needs mixer support
|
|
|
|
ifeq ($(BR2_PACKAGE_ALSA_LIB)$(BR2_PACKAGE_ALSA_LIB_MIXER),yy)
|
2018-01-05 17:32:23 +01:00
|
|
|
ENLIGHTENMENT_MESON_OPTS += -Dmixer=true
|
2013-02-25 15:53:01 +01:00
|
|
|
ENLIGHTENMENT_DEPENDENCIES += alsa-lib
|
|
|
|
else
|
2018-01-05 17:32:23 +01:00
|
|
|
ENLIGHTENMENT_MESON_OPTS += -Dmixer=false
|
2013-02-25 15:53:01 +01:00
|
|
|
endif
|
|
|
|
|
2018-03-15 23:50:11 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_XKEYBOARD_CONFIG),y)
|
|
|
|
ENLIGHTENMENT_DEPENDENCIES += xkeyboard-config
|
|
|
|
endif
|
|
|
|
|
2018-01-05 17:32:23 +01:00
|
|
|
define ENLIGHTENMENT_CONFIGURE_CMDS
|
|
|
|
rm -rf $(@D)/build
|
|
|
|
mkdir -p $(@D)/build
|
|
|
|
$(TARGET_MAKE_ENV) meson $(ENLIGHTENMENT_MESON_OPTS) $(@D) $(@D)/build
|
|
|
|
endef
|
|
|
|
|
|
|
|
define ENLIGHTENMENT_BUILD_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) ninja -C $(@D)/build
|
|
|
|
endef
|
|
|
|
|
|
|
|
define ENLIGHTENMENT_INSTALL_TARGET_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) DESTDIR=$(TARGET_DIR) ninja -C $(@D)/build install
|
|
|
|
endef
|
|
|
|
|
2012-12-24 12:24:24 +01:00
|
|
|
define ENLIGHTENMENT_REMOVE_DOCUMENTATION
|
|
|
|
rm -rf $(TARGET_DIR)/usr/share/enlightenment/doc/
|
|
|
|
rm -f $(TARGET_DIR)/usr/share/enlightenment/COPYING
|
|
|
|
rm -f $(TARGET_DIR)/usr/share/enlightenment/AUTHORS
|
|
|
|
endef
|
|
|
|
ENLIGHTENMENT_POST_INSTALL_TARGET_HOOKS += ENLIGHTENMENT_REMOVE_DOCUMENTATION
|
|
|
|
|
2018-01-05 17:32:23 +01:00
|
|
|
$(eval $(generic-package))
|