summaryrefslogtreecommitdiffstats
path: root/rules/cog.make
blob: 876909cc505dd73ad83dc9f224d0fe75dc6de9b6 (plain)
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
# -*-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.8.0
COG_MD5			:= f7aa8a425927cab247563411fc67c5a3
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 \
	-DCOG_APPID= \
	-DCOG_BUILD_PROGRAMS=ON \
	-DCOG_DBUS_OWN_USER= \
	-DCOG_DBUS_SYSTEM_BUS=OFF \
	-DCOG_HOME_URI=https://ptxdist.org/ \
	-DCOG_PLATFORM_DRM=OFF \
	-DCOG_PLATFORM_FDO=ON \
	-DCOG_USE_WEBKITGTK=OFF \
	-DCOG_WESTON_DIRECT_DISPLAY=OFF \
	-DINSTALL_MAN_PAGES=OFF \
	-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, libcogplatform-fdo)
	@$(call install_lib, cog, 0, 0, 0644, libcogcore)

	@$(call install_finish, cog)

	@$(call touch)

# vim: syntax=make