blob: 41dd6d897404befa39db6f2860346180bd49afcc (
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
|
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python
class Recipe(recipe.Recipe):
name = 'libnice'
version = '0.1.13'
stype = SourceType.TARBALL
url = 'http://nice.freedesktop.org/releases/%(name)s-%(version)s.tar.gz'
licenses = [License.LGPLv2_1Plus, License.MPLv1_1]
configure_options = ' --enable-static --enable-shared --with-gstreamer \
--without-gstreamer-0.10 --enable-compile-warnings=maximum \
--disable-gtk-doc'
deps = ['glib', 'gtk-doc-lite', 'gstreamer-1.0']
patches = [
"libnice/0001-nicesrc-spin-the-agent-mainloop-in-a-separate-thread.patch"
]
files_bins = ['stunbdc', 'stund']
files_libs = ['libnice']
files_devel = [
'include/nice',
'include/stun',
'lib/pkgconfig/nice.pc',
]
files_plugins_net = ['lib/gstreamer-1.0/libgstnice%(mext)s']
# FIXME - if_arp.h? (iOS)
def configure(self):
# Only build the shared gst plugin in this recipe.
# We do need the static libnice.a library, though,
# so we don't use --disable-static
shell.replace(os.path.join(self.build_dir, 'gst', 'Makefile.am'),
{'-module': '-shared -module'})
super(Recipe, self).configure()
|