# Copyright 1999-2018 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=5 inherit autotools eutils git-r3 flag-o-matic multilib-minimal toolchain-funcs DESCRIPTION="GStreamer plugin for ICE (RFC 5245) support" HOMEPAGE="https://nice.freedesktop.org/wiki/" MY_P=libnice-${PV} #SRC_URI="https://nice.freedesktop.org/releases/${MY_P}.tar.gz" SRC_URI="" EGIT_REPO_URI="https://gitlab.freedesktop.org/libnice/libnice.git" EGIT_BRANCH="master" #EGIT_REPO_URI="https://github.com/tieto/libnice.git" #EGIT_BRANCH="debian-jessie" LICENSE="|| ( MPL-1.1 LGPL-2.1 )" SLOT="1.0" KEYWORDS="" IUSE="" RDEPEND=" net-libs/libnice[${MULTILIB_USEDEP}] media-libs/gstreamer:${SLOT}[${MULTILIB_USEDEP}] media-libs/gst-plugins-base:${SLOT}[${MULTILIB_USEDEP}] " DEPEND="${RDEPEND} >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] " #S=${WORKDIR}/${MY_P} src_prepare() { sed -e 's:$(top_builddir)/nice/libnice.la:$(NICE_LIBS):' \ -i gst/Makefile.am || die "sed failed" eautoreconf } multilib_src_configure() { append-cppflags "-U_FORTIFY_SOURCE" # gupnp is not used in the gst plugin ECONF_SOURCE=${S} \ econf \ --disable-static \ --disable-compile-warnings \ --disable-static-plugins \ --without-gstreamer-0.10 \ --with-gstreamer \ --disable-introspection \ --enable-introspection \ --disable-gupnp } multilib_src_compile() { emake -C gst \ NICE_LIBS="$($(tc-getPKG_CONFIG) --libs-only-l nice)" } multilib_src_test() { : } multilib_src_install() { emake -C gst DESTDIR="${D}" install } multilib_src_install_all() { prune_libtool_files --modules }