1 |
commit: c635eec3da5b371e9a218503e5d132a0a01d8950 |
2 |
Author: Jaco Kroon <jaco <AT> uls <DOT> co <DOT> za> |
3 |
AuthorDate: Wed Jun 1 09:04:47 2016 +0000 |
4 |
Commit: Tony Vroon <chainsaw <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jun 30 10:30:47 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c635eec3 |
7 |
|
8 |
asterisk pjsip (pjprotect) support. |
9 |
|
10 |
net-libs/pjproject/Manifest | 1 + |
11 |
net-libs/pjproject/metadata.xml | 24 +++++++ |
12 |
net-libs/pjproject/pjproject-2.5.1.ebuild | 102 ++++++++++++++++++++++++++++++ |
13 |
net-misc/asterisk/asterisk-13.8.2.ebuild | 6 +- |
14 |
net-misc/asterisk/metadata.xml | 1 + |
15 |
5 files changed, 132 insertions(+), 2 deletions(-) |
16 |
|
17 |
diff --git a/net-libs/pjproject/Manifest b/net-libs/pjproject/Manifest |
18 |
new file mode 100644 |
19 |
index 0000000..53dd3f2 |
20 |
--- /dev/null |
21 |
+++ b/net-libs/pjproject/Manifest |
22 |
@@ -0,0 +1 @@ |
23 |
+DIST pjproject-2.5.1.tar.bz2 4180967 SHA256 c5a63bed7a0832ff53ddcd69612cf43148019d0f320b22beb5ca2223bc857dcb SHA512 7722980e5afa4b541614c4117462b0df3fff2bfec45ca5da18a7c3fce2a5dd6c628ed0bb2412da6086abd59c5ba2844bea9466f49737dbc9ca85d32ef67a2628 WHIRLPOOL 5b7845a31a3da765358f0a1b28805e39dadae06b01f94fb84809f01bddec8e5d3bfa3c0ef19be6a5dbb7519e3f5948c4bf1c73eebf3efeb609c6a3bf4598585f |
24 |
|
25 |
diff --git a/net-libs/pjproject/metadata.xml b/net-libs/pjproject/metadata.xml |
26 |
new file mode 100644 |
27 |
index 0000000..42ac90f |
28 |
--- /dev/null |
29 |
+++ b/net-libs/pjproject/metadata.xml |
30 |
@@ -0,0 +1,24 @@ |
31 |
+<?xml version="1.0" encoding="UTF-8"?> |
32 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
33 |
+<pkgmetadata> |
34 |
+ <maintainer type="person"> |
35 |
+ <email>chainsaw@g.o</email> |
36 |
+ <name>Tony Vroon</name> |
37 |
+ </maintainer> |
38 |
+ <use> |
39 |
+ <flag name="amr">Inlcude AMR codec in the build</flag> |
40 |
+ <flag name="v4l2">Include Video4Linux v2 support in the build</flag> |
41 |
+ <flag name="epoll">Use /dev/epoll ioqueue on Linux (experimental)</flag> |
42 |
+ <flag name="g711">Include G.711 codecs in the build</flag> |
43 |
+ <flag name="g722">Include G.722 codec in the build</flag> |
44 |
+ <flag name="g7221">Include G.722.1 codec in the build</flag> |
45 |
+ <flag name="ilbc">Include iLBC codec in the build</flag> |
46 |
+ <flag name="l16">Include Linear/L16 codec family in the build</flag> |
47 |
+ <flag name="libyuv">Include libyuv in the build</flag> |
48 |
+ <flag name="openh264">Include Open H.264 support in the build</flag> |
49 |
+ <flag name="opus">Include OPUS support in the build</flag> |
50 |
+ <flag name="resample">Include resampling implementations in the build</flag> |
51 |
+ <flag name="silk">Include SILK support in the build</flag> |
52 |
+ <flag name="webrtc">Enable WebRTC support</flag> |
53 |
+ </use> |
54 |
+</pkgmetadata> |
55 |
|
56 |
diff --git a/net-libs/pjproject/pjproject-2.5.1.ebuild b/net-libs/pjproject/pjproject-2.5.1.ebuild |
57 |
new file mode 100644 |
58 |
index 0000000..80c52cd |
59 |
--- /dev/null |
60 |
+++ b/net-libs/pjproject/pjproject-2.5.1.ebuild |
61 |
@@ -0,0 +1,102 @@ |
62 |
+# Copyright 1999-2016 Gentoo Foundation |
63 |
+# Distributed under the terms of the GNU General Public License v2 |
64 |
+# $Id$ |
65 |
+ |
66 |
+EAPI=6 |
67 |
+ |
68 |
+inherit flag-o-matic |
69 |
+ |
70 |
+DESCRIPTION="Open source SIP, Media, and NAT Traversal Library" |
71 |
+HOMEPAGE="http://www.pjsip.org/" |
72 |
+SRC_URI="http://www.pjsip.org/release/${PV}/${P}.tar.bz2" |
73 |
+KEYWORDS="~amd64 ~x86" |
74 |
+ |
75 |
+LICENSE="GPL-2" |
76 |
+SLOT="0" |
77 |
+CODEC_FLAGS="g711 g722 g7221 gsm ilbc speex l16" |
78 |
+VIDEO_FLAGS="sdl ffmpeg v4l2 openh264 libyuv" |
79 |
+SOUND_FLAGS="alsa oss portaudio" |
80 |
+IUSE="amr debug doc epoll examples ipv6 opus resample silk ssl static-libs webrtc ${CODEC_FLAGS} ${VIDEO_FLAGS} ${SOUND_FLAGS}" |
81 |
+ |
82 |
+RDEPEND="alsa? ( media-libs/alsa-lib ) |
83 |
+ oss? ( media-libs/portaudio[oss] ) |
84 |
+ portaudio? ( media-libs/portaudio ) |
85 |
+ |
86 |
+ amr? ( media-libs/opencore-amr ) |
87 |
+ gsm? ( media-sound/gsm ) |
88 |
+ ilbc? ( dev-libs/ilbc-rfc3951 ) |
89 |
+ opus? ( media-libs/opus ) |
90 |
+ speex? ( media-libs/speex ) |
91 |
+ |
92 |
+ ffmpeg? ( virtual/ffmpeg:= ) |
93 |
+ sdl? ( media-libs/libsdl ) |
94 |
+ openh264? ( media-libs/openh264 ) |
95 |
+ resample? ( media-libs/libsamplerate ) |
96 |
+ |
97 |
+ ssl? ( dev-libs/openssl:= ) |
98 |
+ |
99 |
+ net-libs/libsrtp" |
100 |
+DEPEND="${RDEPEND} |
101 |
+ virtual/pkgconfig" |
102 |
+ |
103 |
+REQUIRED_USE="?? ( ${SOUND_FLAGS} )" |
104 |
+ |
105 |
+src_configure() { |
106 |
+ local myconf=() |
107 |
+ local videnable="--disable-video" |
108 |
+ local t |
109 |
+ |
110 |
+ use ipv6 && append-flags -DPJ_HAS_IPV6=1 |
111 |
+ use debug || append-flags -DNDEBUG=1 |
112 |
+ |
113 |
+ for t in ${CODEC_FLAGS}; do |
114 |
+ myconf+=( $(use_enable ${t} ${t}-codec) ) |
115 |
+ done |
116 |
+ |
117 |
+ for t in ${VIDEO_FLAGS}; do |
118 |
+ myconf+=( $(use_enable ${t}) ) |
119 |
+ use "${t}" && videnable="--enable-video" |
120 |
+ done |
121 |
+ |
122 |
+ econf \ |
123 |
+ --enable-shared \ |
124 |
+ --with-external-srtp \ |
125 |
+ ${videnable} \ |
126 |
+ $(use_enable epoll) \ |
127 |
+ $(use_with gsm external-gsm) \ |
128 |
+ $(use_with speex external-speex) \ |
129 |
+ $(use_enable speex speex-aec) \ |
130 |
+ $(use_enable resample) \ |
131 |
+ $(use_enable resample libsamplerate) \ |
132 |
+ $(use_enable resample resample-dll) \ |
133 |
+ $(use_enable alsa sound) \ |
134 |
+ $(use_enable oss) \ |
135 |
+ $(use_with portaudio external-pa) \ |
136 |
+ $(use_enable portaudio ext-sound) \ |
137 |
+ $(use_enable amr opencore-amr) \ |
138 |
+ $(use_enable silk) \ |
139 |
+ $(use_enable opus) \ |
140 |
+ $(use_enable ssl) \ |
141 |
+ $(use_enable webrtc) \ |
142 |
+ "${myconf[@]}" |
143 |
+} |
144 |
+ |
145 |
+src_compile() { |
146 |
+ emake dep |
147 |
+ emake |
148 |
+} |
149 |
+ |
150 |
+src_install() { |
151 |
+ emake DESTDIR="${D}" install |
152 |
+ |
153 |
+ if use doc; then |
154 |
+ dodoc README.txt README-RTEMS |
155 |
+ fi |
156 |
+ |
157 |
+ if use examples; then |
158 |
+ insinto "/usr/share/doc/${PF}/examples" |
159 |
+ doins -r pjsip-apps/src/samples |
160 |
+ fi |
161 |
+ |
162 |
+ use static-libs || rm "${D}/usr/$(get_libdir)/*.a" |
163 |
+} |
164 |
|
165 |
diff --git a/net-misc/asterisk/asterisk-13.8.2.ebuild b/net-misc/asterisk/asterisk-13.8.2.ebuild |
166 |
index fb4ea81..cd1ea67 100644 |
167 |
--- a/net-misc/asterisk/asterisk-13.8.2.ebuild |
168 |
+++ b/net-misc/asterisk/asterisk-13.8.2.ebuild |
169 |
@@ -20,7 +20,7 @@ IUSE_VOICEMAIL_STORAGE=" |
170 |
voicemail_storage_odbc |
171 |
voicemail_storage_imap |
172 |
" |
173 |
-IUSE="${IUSE_VOICEMAIL_STORAGE} alsa bluetooth calendar +caps cluster curl dahdi debug doc freetds gtalk http iconv ilbc xmpp ldap libedit libressl lua mysql newt +samples odbc osplookup oss portaudio postgres radius selinux snmp span speex srtp static syslog vorbis" |
174 |
+IUSE="${IUSE_VOICEMAIL_STORAGE} alsa bluetooth calendar +caps cluster curl dahdi debug doc freetds gtalk http iconv ilbc xmpp ldap libedit libressl lua mysql newt +samples odbc osplookup oss pjproject portaudio postgres radius selinux snmp span speex srtp static syslog vorbis" |
175 |
IUSE_EXPAND="VOICEMAIL_STORAGE" |
176 |
REQUIRED_USE="gtalk? ( xmpp ) |
177 |
^^ ( ${IUSE_VOICEMAIL_STORAGE/+/} ) |
178 |
@@ -75,6 +75,7 @@ DEPEND="${CDEPEND} |
179 |
!net-libs/pjsip |
180 |
voicemail_storage_imap? ( virtual/imap-c-client ) |
181 |
virtual/pkgconfig |
182 |
+ pjproject? ( net-libs/pjproject[srtp,ext-sound] ) |
183 |
" |
184 |
|
185 |
RDEPEND="${CDEPEND} |
186 |
@@ -119,7 +120,8 @@ src_configure() { |
187 |
$(use_with caps cap) \ |
188 |
$(use_with http gmime) \ |
189 |
$(use_with newt) \ |
190 |
- $(use_with portaudio) |
191 |
+ $(use_with portaudio) \ |
192 |
+ $(use_with pjproject) |
193 |
|
194 |
# Blank out sounds/sounds.xml file to prevent |
195 |
# asterisk from installing sounds files (we pull them in via |
196 |
|
197 |
diff --git a/net-misc/asterisk/metadata.xml b/net-misc/asterisk/metadata.xml |
198 |
index 706fd13..4617312 100644 |
199 |
--- a/net-misc/asterisk/metadata.xml |
200 |
+++ b/net-misc/asterisk/metadata.xml |
201 |
@@ -16,5 +16,6 @@ |
202 |
<flag name="http">Enable embedded web server</flag> |
203 |
<flag name="cluster">Enable high-availability support through the Corosync Cluster Engine</flag> |
204 |
<flag name="ilbc">Enable the Internet Low Bitrate Codec (iLBC)</flag> |
205 |
+ <flag name="pjproject">Enable support for pjproject (pjsip)</flag> |
206 |
</use> |
207 |
</pkgmetadata> |