summaryrefslogtreecommitdiffstats
path: root/rules/libnice.make
blob: a8e2f1d8d04b876f37a157b3e737954fddd88558 (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
# -*-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.15
LIBNICE_MD5	:= 5f58f305d23158651ab509b25420d353
LIBNICE		:= libnice-$(LIBNICE_VERSION)
LIBNICE_SUFFIX	:= tar.gz
LIBNICE_URL	:= https://nice.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
# ----------------------------------------------------------------------------

#
# autoconf
#
LIBNICE_CONF_TOOL	:= autoconf
LIBNICE_CONF_OPT	:= \
	$(CROSS_AUTOCONF_USR) \
	--enable-assert \
	--enable-compile-warnings=yes \
	--disable-gupnp \
	--disable-coverage \
	--disable-static-plugins \
	--disable-gtk-doc \
	--disable-gtk-doc-html \
	--disable-gtk-doc-pdf \
	--disable-introspection \
	--with-crypto-library=openssl \
	--with-gstreamer \
	--without-gstreamer-0.10

# ----------------------------------------------------------------------------
# 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