add jami
This commit is contained in:
3
net-libs/pjproject/Manifest
Normal file
3
net-libs/pjproject/Manifest
Normal file
@@ -0,0 +1,3 @@
|
||||
AUX sfl-pjproject-2.15.1.patch 485727 BLAKE2B 9c5d94ac9aefd625c6aad055bca90bf64eb3fcd89ba3c110d06c483195e680fc8e7c67c309412c742bfa956df99897a87551863a5282fb6fb024f5d1f2a1b9ff SHA512 27f40e057218096dd1a5ce345643b2f6746c51b173ff5c363515b52a167ae9458e4686e23b779cb3d8ec536c5ca8b4d33ccfef147e459a3e5f09ed6e83f87189
|
||||
DIST pjproject-2.15.1.tar.gz 10425868 BLAKE2B cb4fdeca8559460f5335ffa7723e58fea3cb3f81cb55170ab7694b7828e3179c39c0fc376bebed566a212ec2b102349fc78593e414cb03864e4b111cdbf8b77c SHA512 2f83ed32f16c27808d3b9cc8f3b364c68fe88caae9765012b385a0fea70ba8ef4dcfebe3b130156047546720351a527e17d6a1e967877d6a44a6ff3a1f695599
|
||||
EBUILD pjproject-2.15.1-r2.ebuild 4035 BLAKE2B af7acfa7c32ef22939ba3908f6f57f14e4b550eacc56912bc10dfc1c98c22a66a7f366f12d678c2c50546b55804b09955ed61d7cd1d342ef38b0b88233d6d3fc SHA512 34809afb773e7f949befd363cd4bcb9e2e78da54455dd15450b9523265d6e21640ba028a18d858f21ffefd907193f5c2d5ee6961747837d354629db0766783a8
|
||||
11990
net-libs/pjproject/files/sfl-pjproject-2.15.1.patch
Normal file
11990
net-libs/pjproject/files/sfl-pjproject-2.15.1.patch
Normal file
File diff suppressed because it is too large
Load Diff
145
net-libs/pjproject/pjproject-2.15.1-r2.ebuild
Normal file
145
net-libs/pjproject/pjproject-2.15.1-r2.ebuild
Normal file
@@ -0,0 +1,145 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# TODO: Figure out a way to disable SRTP from pjproject entirely.
|
||||
EAPI=8
|
||||
|
||||
inherit autotools flag-o-matic toolchain-funcs
|
||||
|
||||
DESCRIPTION="Open source SIP, Media, and NAT Traversal Library"
|
||||
HOMEPAGE="https://github.com/pjsip/pjproject https://www.pjsip.org/"
|
||||
SRC_URI="https://github.com/pjsip/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 x86"
|
||||
|
||||
# g729 not included due to special bcg729 handling.
|
||||
CODEC_FLAGS="g711 g722 g7221 gsm ilbc speex l16"
|
||||
VIDEO_FLAGS="sdl ffmpeg v4l2 openh264 libyuv vpx"
|
||||
SOUND_FLAGS="alsa portaudio"
|
||||
IUSE="amr debug epoll examples opus resample silk srtp ssl static-libs webrtc sfl
|
||||
${CODEC_FLAGS} g729
|
||||
${VIDEO_FLAGS}
|
||||
${SOUND_FLAGS}"
|
||||
|
||||
RDEPEND="
|
||||
sys-apps/util-linux
|
||||
alsa? ( media-libs/alsa-lib )
|
||||
amr? ( media-libs/opencore-amr )
|
||||
ffmpeg? ( media-video/ffmpeg:= )
|
||||
g729? ( media-libs/bcg729 )
|
||||
gsm? ( media-sound/gsm )
|
||||
ilbc? ( media-libs/libilbc )
|
||||
libyuv? ( media-libs/libyuv:= )
|
||||
openh264? ( media-libs/openh264 )
|
||||
opus? ( media-libs/opus )
|
||||
portaudio? ( media-libs/portaudio )
|
||||
resample? ( media-libs/libsamplerate )
|
||||
sdl? ( media-libs/libsdl2 )
|
||||
speex? (
|
||||
media-libs/speex
|
||||
media-libs/speexdsp
|
||||
)
|
||||
srtp? ( >=net-libs/libsrtp-2.3.0:= )
|
||||
ssl? ( dev-libs/openssl:0= )
|
||||
vpx? ( media-libs/libvpx:= )
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
if use sfl; then
|
||||
eapply "${FILESDIR}"/sfl-${P}.patch
|
||||
else
|
||||
rm configure || die "Unable to remove unwanted wrapper"
|
||||
mv aconfigure.ac configure.ac || die "Unable to rename configure script source"
|
||||
eautoreconf
|
||||
|
||||
cp "${FILESDIR}/pjproject-2.13.1-r1-config_site.h" "${S}/pjlib/include/pj/config_site.h" \
|
||||
|| die "Unable to create config_site.h"
|
||||
fi
|
||||
}
|
||||
|
||||
_pj_enable() {
|
||||
usex "$1" '' "--disable-${2:-$1}"
|
||||
}
|
||||
|
||||
_pj_get_define() {
|
||||
local r="$(sed -nre "s/^#define[[:space:]]+$1[[:space:]]+//p" "${S}/pjlib/include/pj/config_site.h")"
|
||||
[[ -z "${r}" ]] && die "Unable to fine #define $1 in config_site.h"
|
||||
echo "$r"
|
||||
}
|
||||
|
||||
_pj_set_define() {
|
||||
local c=$(_pj_get_define "$1")
|
||||
[[ "$c" = "$2" ]] && return 0
|
||||
sed -re "s/^#define[[:space:]]+$1[[:space:]].*/#define $1 $2/" -i "${S}/pjlib/include/pj/config_site.h" \
|
||||
|| die "sed failed updating $1 to $2."
|
||||
[[ "$(_pj_get_define "$1")" != "$2" ]] && die "sed failed to perform update for $1 to $2."
|
||||
}
|
||||
|
||||
_pj_use_set_define() {
|
||||
_pj_set_define "$2" $(usex "$1" 1 0)
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
if use sfl; then
|
||||
videnable="--enable-video"
|
||||
else
|
||||
local myconf=()
|
||||
local videnable="--disable-video"
|
||||
local t
|
||||
|
||||
use debug || append-cflags -DNDEBUG=1
|
||||
|
||||
for t in ${CODEC_FLAGS}; do
|
||||
myconf+=( $(_pj_enable ${t} ${t}-codec) )
|
||||
done
|
||||
myconf+=( $(_pj_enable g729 bcg729) )
|
||||
|
||||
for t in ${VIDEO_FLAGS}; do
|
||||
myconf+=( $(_pj_enable ${t}) )
|
||||
use "${t}" && videnable="--enable-video"
|
||||
done
|
||||
|
||||
[ "${videnable}" = "--enable-video" ] && _pj_set_define PJMEDIA_HAS_VIDEO 1 || _pj_set_define PJMEDIA_HAS_VIDEO 0
|
||||
fi
|
||||
|
||||
# bug 955077 and bug 955129
|
||||
use libyuv && myconf+=( --with-external-yuv )
|
||||
|
||||
LD="$(tc-getCXX)" econf \
|
||||
--enable-shared \
|
||||
${videnable} \
|
||||
$(_pj_enable alsa sound) \
|
||||
$(_pj_enable amr opencore-amr) \
|
||||
$(_pj_enable epoll) \
|
||||
$(_pj_enable opus) \
|
||||
$(_pj_enable portaudio ext-sound) \
|
||||
$(_pj_enable resample libsamplerate) \
|
||||
$(_pj_enable resample resample-dll) \
|
||||
$(_pj_enable resample) \
|
||||
$(_pj_enable silk) \
|
||||
$(_pj_enable speex speex-aec) \
|
||||
$(_pj_enable ssl) \
|
||||
$(_pj_enable webrtc libwebrtc) \
|
||||
$(use_with gsm external-gsm) \
|
||||
$(use_with portaudio external-pa) \
|
||||
$(use_with speex external-speex) \
|
||||
$(usex srtp --with-external-srtp --disable-libsrtp) \
|
||||
"${myconf[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
newbin pjsip-apps/bin/pjsua-${CHOST} pjsua
|
||||
newbin pjsip-apps/bin/pjsystest-${CHOST} pjsystest
|
||||
|
||||
if use examples; then
|
||||
insinto "/usr/share/doc/${PF}/examples"
|
||||
doins -r pjsip-apps/src/samples
|
||||
fi
|
||||
|
||||
use static-libs || rm "${ED}/usr/$(get_libdir)"/*.a || die "Error removing static archives"
|
||||
}
|
||||
Reference in New Issue
Block a user