2019-02-05 21:41:52 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# cog
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2024-05-29 11:13:47 +02:00
|
|
|
COG_VERSION = 0.18.4
|
2019-09-20 23:38:26 +02:00
|
|
|
COG_SITE = https://wpewebkit.org/releases
|
2019-07-04 11:01:48 +02:00
|
|
|
COG_SOURCE = cog-$(COG_VERSION).tar.xz
|
2019-05-15 20:47:04 +02:00
|
|
|
COG_INSTALL_STAGING = YES
|
2020-04-06 19:42:05 +02:00
|
|
|
COG_DEPENDENCIES = dbus wpewebkit wpebackend-fdo wayland
|
2019-02-05 21:41:52 +01:00
|
|
|
COG_LICENSE = MIT
|
|
|
|
COG_LICENSE_FILES = COPYING
|
|
|
|
COG_CONF_OPTS = \
|
2022-10-06 11:58:33 +02:00
|
|
|
-Ddocumentation=false \
|
|
|
|
-Dmanpages=false \
|
|
|
|
-Dprograms=true \
|
2023-09-08 21:27:14 +02:00
|
|
|
-Dwpe_api=2.0 \
|
2022-10-06 11:58:33 +02:00
|
|
|
-Dcog_home_uri='$(call qstrip,$(BR2_PACKAGE_COG_PROGRAMS_HOME_URI))' \
|
|
|
|
-Dplatforms='$(subst $(space),$(comma),$(strip $(COG_PLATFORMS_LIST)))'
|
|
|
|
|
|
|
|
COG_PLATFORMS_LIST = headless
|
2019-02-05 21:41:52 +01:00
|
|
|
|
2022-09-09 07:08:00 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_WESTON),y)
|
2022-10-06 11:58:33 +02:00
|
|
|
COG_CONF_OPTS += -Dwayland_weston_direct_display=true
|
2022-09-09 07:08:00 +02:00
|
|
|
COG_DEPENDENCIES += weston
|
|
|
|
else
|
2022-10-06 11:58:33 +02:00
|
|
|
COG_CONF_OPTS += -Dwayland_weston_direct_display=false
|
2022-09-09 07:08:00 +02:00
|
|
|
endif
|
|
|
|
|
2020-04-06 19:42:05 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_COG_PLATFORM_FDO),y)
|
2022-10-06 11:58:33 +02:00
|
|
|
COG_PLATFORMS_LIST += wayland
|
2020-04-06 19:42:05 +02:00
|
|
|
COG_DEPENDENCIES += libxkbcommon wayland-protocols
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_COG_PLATFORM_DRM),y)
|
2022-10-06 11:58:33 +02:00
|
|
|
COG_PLATFORMS_LIST += drm
|
2022-07-27 10:19:52 +02:00
|
|
|
COG_DEPENDENCIES += libdrm libinput libgbm libegl udev
|
2020-04-06 19:42:05 +02:00
|
|
|
endif
|
|
|
|
|
2021-03-16 10:47:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_COG_USE_SYSTEM_DBUS),y)
|
2022-10-06 11:58:33 +02:00
|
|
|
COG_CONF_OPTS += -Dcog_dbus_control=system
|
2021-03-16 10:47:27 +01:00
|
|
|
else
|
2022-10-06 11:58:33 +02:00
|
|
|
COG_CONF_OPTS += -Dcog_dbus_control=user
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBMANETTE),y)
|
|
|
|
COG_DEPENDENCIES += libmanette
|
2021-03-16 10:47:27 +01:00
|
|
|
endif
|
|
|
|
|
2022-10-06 11:58:33 +02:00
|
|
|
$(eval $(meson-package))
|