1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
# -*-makefile-*-
#
# Copyright (C) 2019 by Philippe Normand <philn@igalia.com>
#
# For further information about the PTXdist project and license conditions
# see the README file.
#
#
# We provide this package
#
PACKAGES-$(PTXCONF_COG) += cog
#
# Paths and names
#
COG_VERSION := 0.14.1
COG_MD5 := 69d72ac046a0fc485ea7b61b96e7e7fc
COG := cog-$(COG_VERSION)
COG_SUFFIX := tar.xz
COG_URL := https://wpewebkit.org/releases/$(COG).$(COG_SUFFIX)
COG_SOURCE := $(SRCDIR)/$(COG).$(COG_SUFFIX)
COG_DIR := $(BUILDDIR)/$(COG)
COG_LICENSE := MIT
COG_LICENSE_FILES := file://COPYING;md5=bf1229cd7425b302d60cdb641b0ce5fb
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
#
# cmake
#
COG_CONF_TOOL := cmake
COG_CONF_OPT := \
$(CROSS_CMAKE_USR) \
-G Ninja \
-DBUILD_DOCS=OFF \
-DCOG_APPID= \
-DCOG_BUILD_PROGRAMS=ON \
-DCOG_DBUS_OWN_USER= \
-DCOG_DBUS_SYSTEM_BUS=$(call ptx/onoff,PTXCONF_COG_REMOTE_DBUS_SYSTEM_BUS) \
-DCOG_HOME_URI=https://ptxdist.org/ \
-DCOG_MODULEDIR=/usr/lib/cog/modules \
-DCOG_PLATFORM_DRM=OFF \
-DCOG_PLATFORM_GTK4=OFF \
-DCOG_PLATFORM_HEADLESS=OFF \
-DCOG_PLATFORM_WL=ON \
-DCOG_PLATFORM_X11=OFF \
-DCOG_WESTON_DIRECT_DISPLAY=OFF \
-DINSTALL_MAN_PAGES=OFF \
-DUSE_SOUP2=ON \
-DWAYLAND_PROTOCOLS=$(PTXDIST_SYSROOT_TARGET)/usr/share/wayland-protocols
# ----------------------------------------------------------------------------
# Target-Install
# -----------------------------------------------------------------------------
$(STATEDIR)/cog.targetinstall:
@$(call targetinfo)
@$(call install_init, cog)
@$(call install_fixup, cog,PRIORITY,optional)
@$(call install_fixup, cog,SECTION,base)
@$(call install_fixup, cog,AUTHOR,"Philippe Normand <philn@igalia.com>")
@$(call install_fixup, cog,DESCRIPTION,"WPE launcher and webapp container")
@$(call install_copy, cog, 0, 0, 0755, -, /usr/bin/cog)
@$(call install_lib, cog, 0, 0, 0644, cog/modules/libcogplatform-wl)
@$(call install_lib, cog, 0, 0, 0644, libcogcore)
ifdef PTXCONF_COG_REMOTE_DBUS_SYSTEM_BUS
@$(call install_copy, cog, 0, 0, 0644, -, \
/usr/share/dbus-1/system.d/com.igalia.Cog.conf)
endif
ifdef PTXCONF_COG_COGCTL
@$(call install_copy, cog, 0, 0, 0755, -, /usr/bin/cogctl)
endif
@$(call install_finish, cog)
@$(call touch)
# vim: syntax=make
|