summaryrefslogtreecommitdiffstats
path: root/rules/libwpe.make
blob: edc921cfe3d6e82d7b77b93211ef91a68e409f6e (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
# -*-makefile-*-
#
# Copyright (C) 2018 by Steffen Trumtrar <s.trumtrar@pengutronix.de>
#
# For further information about the PTXdist project and license conditions
# see the README file.
#

#
# We provide this package
#
PACKAGES-$(PTXCONF_LIBWPE) += libwpe

#
# Paths and names
#
LIBWPE_VERSION		:= 1.14.2
LIBWPE_LIBRARY_VERSION	:= 1.0
LIBWPE_MD5		:= 61840e24ba0a0f5828194dff28db92ee
LIBWPE			:= libwpe-$(LIBWPE_VERSION)
LIBWPE_SUFFIX		:= tar.xz
LIBWPE_URL		:= https://wpewebkit.org/releases/$(LIBWPE).$(LIBWPE_SUFFIX)
LIBWPE_SOURCE		:= $(SRCDIR)/$(LIBWPE).$(LIBWPE_SUFFIX)
LIBWPE_DIR		:= $(BUILDDIR)/$(LIBWPE)
LIBWPE_LICENSE		:= BSD-2-Clause
LIBWPE_LICENSE_FILES	:= file://COPYING;md5=371a616eb4903c6cb79e9893a5f615cc

# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------

#
# cmake
#
LIBWPE_CONF_TOOL	:= meson
LIBWPE_CONF_OPT	:= \
	$(CROSS_MESON_USR) \
	-Dbuild-docs=false \
	-Ddefault-backend= \
	-Denable-xkb=true

# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------

$(STATEDIR)/libwpe.targetinstall:
	@$(call targetinfo)

	@$(call install_init, libwpe)
	@$(call install_fixup, libwpe,PRIORITY,optional)
	@$(call install_fixup, libwpe,SECTION,base)
	@$(call install_fixup, libwpe,AUTHOR,"Steffen Trumtrar <s.trumtrar@pengutronix.de>")
	@$(call install_fixup, libwpe,DESCRIPTION,missing)

	@$(call install_lib, libwpe, 0, 0, 0644, libwpe-$(LIBWPE_LIBRARY_VERSION))

	@$(call install_finish, libwpe)

	@$(call touch)

# vim: syntax=make