summaryrefslogtreecommitdiffstats
path: root/rules/libnice.make
blob: c98ca4bfb69ea44f13dc3ae34fc7f320ba9771d6 (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
# -*-makefile-*-
#
# Copyright (C) 2019 by Michael Olbrich <m.olbrich@pengutronix.de>
#
# For further information about the PTXdist project and license conditions
# see the README file.
#

#
# We provide this package
#
PACKAGES-$(PTXCONF_LIBNICE) += libnice

#
# Paths and names
#
LIBNICE_VERSION	:= 0.1.21
LIBNICE_MD5	:= fe43ff9ed4db2ecbb2d480c670bee855
LIBNICE		:= libnice-$(LIBNICE_VERSION)
LIBNICE_SUFFIX	:= tar.gz
LIBNICE_URL	:= https://libnice.freedesktop.org/releases/$(LIBNICE).$(LIBNICE_SUFFIX)
LIBNICE_SOURCE	:= $(SRCDIR)/$(LIBNICE).$(LIBNICE_SUFFIX)
LIBNICE_DIR	:= $(BUILDDIR)/$(LIBNICE)
LIBNICE_LICENSE	:= MPL-1.1 OR LGPL-2.1-only

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

#
# meson
#
LIBNICE_CONF_TOOL	:= meson
LIBNICE_CONF_OPT	:= \
	$(CROSS_MESON_USR) \
	-Dcrypto-library=openssl \
	-Dexamples=disabled \
	-Dgstreamer=enabled \
	-Dgtk_doc=disabled \
	-Dgupnp=disabled \
	-Dintrospection=disabled \
	-Dtests=disabled

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

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

	@$(call install_init, libnice)
	@$(call install_fixup, libnice,PRIORITY,optional)
	@$(call install_fixup, libnice,SECTION,base)
	@$(call install_fixup, libnice,AUTHOR,"Michael Olbrich <m.olbrich@pengutronix.de>")
	@$(call install_fixup, libnice,DESCRIPTION,missing)

	@$(call install_lib, libnice, 0, 0, 0644, libnice)
	@$(call install_lib, libnice, 0, 0, 0644, gstreamer-1.0/libgstnice)

	@$(call install_finish, libnice)

	@$(call touch)

# vim: syntax=make