# -*- 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'] 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()