# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 inherit meson ninja-utils multilib-minimal xdg DESCRIPTION="An implementation of the Interactice Connectivity Establishment standard (ICE)" HOMEPAGE="https://nice.freedesktop.org/wiki/" if [[ ${PV} != 9999 ]]; then SRC_URI="https://nice.freedesktop.org/releases/${P}.tar.gz" else inherit git-r3 EGIT_BRANCH="master" EGIT_REPO_URI="https://gitlab.freedesktop.org/libnice/libnice.git" fi LICENSE="|| ( MPL-1.1 LGPL-2.1 )" SLOT="1.0" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" IUSE="+gnutls +introspection" 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}] " multilib_src_configure() { # gstreamer plugin split off into media-plugins/gst-plugins-libnice local emesonargs=( -Dgstreamer=enabled -Dignored-network-interface-prefix="" -Dcrypto-library=$(usex gnutls gnutls openssl) -Dexamples=disabled -Dgtk_doc=disabled -Dtests=disabled -Dintrospection=disabled -Dgupnp=disabled ) meson_src_configure } multilib_src_compile() { #LIBS="$($(tc-getPKG_CONFIG) --libs-only-l nice)" meson_src_compile gst/libgstnice.so #builds against the included libnice meson_src_compile gst/libgstnice.so } multilib_src_install_all() { BUILD_DIR="${OLDPWD}" #if multilib_is_native_abi; then plug_dir=$($(tc-getPKG_CONFIG) gstreamer-1.0 --variable=pluginsdir) insinto "${plug_dir}" newins "${BUILD_DIR}"/gst/libgstnice.so libgstnice.so fperms a+x "${plug_dir}"/libgstnice.so #fi } multilib_src_test() { : }