Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/pjproject/
Date: Tue, 06 Oct 2020 21:45:26
Message-Id: 1602020685.3c982cebe3bcb93eb4f7787d77e23efbe3b7e029.sam@gentoo
1 commit: 3c982cebe3bcb93eb4f7787d77e23efbe3b7e029
2 Author: Jaco Kroon <jaco <AT> uls <DOT> co <DOT> za>
3 AuthorDate: Fri Sep 25 21:30:16 2020 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Tue Oct 6 21:44:45 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3c982ceb
7
8 net-libs/pjproject: version bump to 2.10
9
10 Closes: https://bugs.gentoo.org/744613
11 Signed-off-by: Jaco Kroon <jaco <AT> uls.co.za>
12 Closes: https://github.com/gentoo/gentoo/pull/17667
13 Signed-off-by: Sam James <sam <AT> gentoo.org>
14
15 net-libs/pjproject/Manifest | 1 +
16 net-libs/pjproject/metadata.xml | 1 +
17 net-libs/pjproject/pjproject-2.10.ebuild | 123 +++++++++++++++++++++++++++++++
18 3 files changed, 125 insertions(+)
19
20 diff --git a/net-libs/pjproject/Manifest b/net-libs/pjproject/Manifest
21 index 3131fb359e1..3f48fc752d5 100644
22 --- a/net-libs/pjproject/Manifest
23 +++ b/net-libs/pjproject/Manifest
24 @@ -1,3 +1,4 @@
25 +DIST pjproject-2.10.tar.gz 8768705 BLAKE2B 42d70867e2e0474313426f1e188586d203d6165c28a133a62dedacd2deb2899215212824d9402a48fcc66bb08a17b796d3625e1d51a8aedc9aa4b3a3bf1cb8fa SHA512 a67f083df175b536b4e6a7b7fe39e07d3ee805d6917ec64a50694542a7455c33a100889191044ab3fa679b6656774a6be045621aa53510b5f04cdde9ddd59893
26 DIST pjproject-2.7.1.tar.bz2 4880007 BLAKE2B 33fca89f07abc0b9662b1070c96b903c236a60149734755286dad3111411dbeef5779077a77d21112be6db2957cb7e18c5c833b3c5fd32c26be44d4550fb215e SHA512 cd15afee2a02659668ff228b2652d2bd179393e3b5031afae1c326354fb9676babc08eb689e466165536abc360684299b4fdb41dbb1148aed89afe1ce7e5d979
27 DIST pjproject-2.7.2.tar.bz2 4994233 BLAKE2B 44ecaf0997d5dd9b18e0b811cead7c9104e63894fa06fb1d64e79b60fa4210968fd90ef47e5f5be3629675363c8756ce3bc1834caa9700654ab4c53efe676ee7 SHA512 3d355ffcbbeed62cfc711e574a987dc06043ccf4f2625820adffa89167022b8306fcee3fada71d3d45e7b902fc9c65ac8221de101cbafed25362a3921f702afd
28 DIST pjproject-2.9.tar.bz2 5009546 BLAKE2B 853f86e57c0f58943e977856bebc7dc20684ac4a6a16a55f3fe4ddf58ca58187bdc1011c5df2bc72de690f1695484012b582e56dd0e88a624ef319a5f3623772 SHA512 a65823a86ad0cd76890cf7dd2485f7547fd90aea2ef631c5420c009b35f39eda3b78551a42fc2816c2470de9eb728c26497774a8494824472ecaa1d2889cc20b
29
30 diff --git a/net-libs/pjproject/metadata.xml b/net-libs/pjproject/metadata.xml
31 index 6d51c770dce..ebb6d87617b 100644
32 --- a/net-libs/pjproject/metadata.xml
33 +++ b/net-libs/pjproject/metadata.xml
34 @@ -23,6 +23,7 @@
35 <flag name="resample">Include resampling implementations in the build</flag>
36 <flag name="silk">Include SILK support in the build</flag>
37 <flag name="v4l2">Include Video4Linux v2 support in the build</flag>
38 + <flag name="vpx">Include VP8 and VP9 codec support in the build</flag>
39 <flag name="webrtc">Enable WebRTC support</flag>
40 </use>
41 </pkgmetadata>
42
43 diff --git a/net-libs/pjproject/pjproject-2.10.ebuild b/net-libs/pjproject/pjproject-2.10.ebuild
44 new file mode 100644
45 index 00000000000..ffbd5925409
46 --- /dev/null
47 +++ b/net-libs/pjproject/pjproject-2.10.ebuild
48 @@ -0,0 +1,123 @@
49 +# Copyright 1999-2020 Gentoo Authors
50 +# Distributed under the terms of the GNU General Public License v2
51 +
52 +EAPI=7
53 +
54 +inherit autotools flag-o-matic
55 +
56 +DESCRIPTION="Open source SIP, Media, and NAT Traversal Library"
57 +HOMEPAGE="https://www.pjsip.org/"
58 +SRC_URI="https://github.com/pjsip/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
59 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
60 +
61 +LICENSE="GPL-2"
62 +SLOT="0"
63 +
64 +# g729 not included due to special bcg729 handling.
65 +CODEC_FLAGS="g711 g722 g7221 gsm ilbc speex l16"
66 +VIDEO_FLAGS="sdl ffmpeg v4l2 openh264 libyuv vpx"
67 +SOUND_FLAGS="alsa portaudio"
68 +IUSE="amr debug epoll examples ipv6 libressl opus resample silk ssl static-libs webrtc
69 + ${CODEC_FLAGS} g729
70 + ${VIDEO_FLAGS}
71 + ${SOUND_FLAGS}"
72 +
73 +PATCHES=(
74 + "${FILESDIR}/pjproject-2.9-ssl-enable.patch"
75 +)
76 +
77 +RDEPEND="net-libs/libsrtp:=
78 +
79 + alsa? ( media-libs/alsa-lib )
80 + amr? ( media-libs/opencore-amr )
81 + ffmpeg? ( media-video/ffmpeg:= )
82 + g729? ( media-libs/bcg729 )
83 + gsm? ( media-sound/gsm )
84 + ilbc? ( media-libs/libilbc )
85 + openh264? ( media-libs/openh264 )
86 + opus? ( media-libs/opus )
87 + portaudio? ( media-libs/portaudio )
88 + resample? ( media-libs/libsamplerate )
89 + sdl? ( media-libs/libsdl )
90 + speex? (
91 + media-libs/speex
92 + media-libs/speexdsp
93 + )
94 + ssl? (
95 + !libressl? ( dev-libs/openssl:0= )
96 + libressl? ( dev-libs/libressl:0= )
97 + )
98 +"
99 +DEPEND="${RDEPEND}"
100 +BDEPEND="virtual/pkgconfig"
101 +
102 +src_prepare() {
103 + default
104 + rm configure || die "Unable to remove unwanted wrapper"
105 + mv aconfigure.ac configure.ac || die "Unable to rename configure script source"
106 + eautoreconf
107 +
108 + cp "${FILESDIR}/pjproject-2.9-config_site.h" "${S}/pjlib/include/pj/config_site.h" || die "Unable to create config_site.h"
109 +}
110 +
111 +src_configure() {
112 + local myconf=()
113 + local videnable="--disable-video"
114 + local t
115 +
116 + use debug || append-cflags -DNDEBUG=1
117 + use ipv6 && append-cflags -DPJ_HAS_IPV6=1
118 + append-cflags -DPJMEDIA_HAS_SRTP=1
119 +
120 + for t in ${CODEC_FLAGS}; do
121 + myconf+=( $(use_enable ${t} ${t}-codec) )
122 + done
123 + myconf+=( $(use_enable g729 bcg729) )
124 +
125 + for t in ${VIDEO_FLAGS}; do
126 + myconf+=( $(use_enable ${t}) )
127 + use "${t}" && videnable="--enable-video"
128 + done
129 +
130 + [ "${videnable}" = "--enable-video" ] && append-cflags -DPJMEDIA_HAS_VIDEO=1
131 +
132 + LD="$(tc-getCC)" econf \
133 + --enable-shared \
134 + --with-external-srtp \
135 + ${videnable} \
136 + $(use_enable alsa sound) \
137 + $(use_enable amr opencore-amr) \
138 + $(use_enable epoll) \
139 + $(use_enable opus) \
140 + $(use_enable portaudio ext-sound) \
141 + $(use_enable resample libsamplerate) \
142 + $(use_enable resample resample-dll) \
143 + $(use_enable resample) \
144 + $(use_enable silk) \
145 + $(use_enable speex speex-aec) \
146 + $(use_enable ssl) \
147 + $(use_with gsm external-gsm) \
148 + $(use_with portaudio external-pa) \
149 + $(use_with speex external-speex) \
150 + $(usex webrtc '' --disable-libwebrtc) \
151 + "${myconf[@]}"
152 +}
153 +
154 +src_compile() {
155 + emake dep LD="$(tc-getCC)"
156 + emake LD="$(tc-getCC)"
157 +}
158 +
159 +src_install() {
160 + default
161 +
162 + newbin pjsip-apps/bin/pjsua-${CHOST} pjsua
163 + newbin pjsip-apps/bin/pjsystest-${CHOST} pjsystest
164 +
165 + if use examples; then
166 + insinto "/usr/share/doc/${PF}/examples"
167 + doins -r pjsip-apps/src/samples
168 + fi
169 +
170 + use static-libs || rm "${ED}/usr/$(get_libdir)"/*.a || die "Error removing static archives"
171 +}