2019-02-05 21:41:52 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# cog
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2021-11-24 22:21:01 +01:00
|
|
|
COG_VERSION = 0.12.0
|
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 = \
|
|
|
|
-DCOG_BUILD_PROGRAMS=ON \
|
2021-09-12 11:28:55 +02:00
|
|
|
-DCOG_PLATFORM_HEADLESS=ON \
|
2020-03-31 19:53:25 +02:00
|
|
|
-DCOG_WESTON_DIRECT_DISPLAY=OFF \
|
|
|
|
-DINSTALL_MAN_PAGES=OFF \
|
2021-11-24 22:21:01 +01:00
|
|
|
-DCOG_HOME_URI='$(call qstrip,$(BR2_PACKAGE_COG_PROGRAMS_HOME_URI))' \
|
|
|
|
-DUSE_SOUP2=ON
|
2019-02-05 21:41:52 +01:00
|
|
|
|
2020-04-06 19:42:05 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_COG_PLATFORM_FDO),y)
|
2021-11-24 22:21:01 +01:00
|
|
|
COG_CONF_OPTS += -DCOG_PLATFORM_WL=ON
|
2020-04-06 19:42:05 +02:00
|
|
|
COG_DEPENDENCIES += libxkbcommon wayland-protocols
|
|
|
|
else
|
2021-11-24 22:21:01 +01:00
|
|
|
COG_CONF_OPTS += -DCOG_PLATFORM_WL=OFF
|
2020-04-06 19:42:05 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_COG_PLATFORM_DRM),y)
|
|
|
|
COG_CONF_OPTS += -DCOG_PLATFORM_DRM=ON
|
|
|
|
COG_DEPENDENCIES += libdrm libinput
|
|
|
|
else
|
|
|
|
COG_CONF_OPTS += -DCOG_PLATFORM_DRM=OFF
|
|
|
|
endif
|
|
|
|
|
2021-03-16 10:47:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_COG_USE_SYSTEM_DBUS),y)
|
|
|
|
COG_CONF_OPTS += -DCOG_DBUS_SYSTEM_BUS=ON
|
|
|
|
else
|
|
|
|
COG_CONF_OPTS += -DCOG_DBUS_SYSTEM_BUS=OFF
|
|
|
|
endif
|
|
|
|
|
2019-02-05 21:41:52 +01:00
|
|
|
$(eval $(cmake-package))
|