Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 565472 | Differences between
and this patch

Collapse All | Expand All

(-)a/net-libs/pjproject/Manifest (+1 lines)
Line 0 Link Here
1
DIST pjproject-2.5.1.tar.bz2 4180967 SHA256 c5a63bed7a0832ff53ddcd69612cf43148019d0f320b22beb5ca2223bc857dcb SHA512 7722980e5afa4b541614c4117462b0df3fff2bfec45ca5da18a7c3fce2a5dd6c628ed0bb2412da6086abd59c5ba2844bea9466f49737dbc9ca85d32ef67a2628 WHIRLPOOL 5b7845a31a3da765358f0a1b28805e39dadae06b01f94fb84809f01bddec8e5d3bfa3c0ef19be6a5dbb7519e3f5948c4bf1c73eebf3efeb609c6a3bf4598585f
(-)a/net-libs/pjproject/metadata.xml (+24 lines)
Line 0 Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
3
<pkgmetadata>
4
  <maintainer type="person">
5
    <email>chainsaw@gentoo.org</email>
6
    <name>Tony Vroon</name>
7
  </maintainer>
8
  <use>
9
	<flag name="amr">Inlcude AMR codec in the build</flag>
10
	<flag name="v4l2">Include Video4Linux v2 support in the build</flag>
11
    <flag name="epoll">Use /dev/epoll ioqueue on Linux (experimental)</flag>
12
    <flag name="g711">Include G.711 codecs in the build</flag>
13
    <flag name="g722">Include G.722 codec in the build</flag>
14
    <flag name="g7221">Include G.722.1 codec in the build</flag>
15
    <flag name="ilbc">Include iLBC codec in the build</flag>
16
    <flag name="l16">Include Linear/L16 codec family in the build</flag>
17
    <flag name="libyuv">Include libyuv in the build</flag>
18
    <flag name="openh264">Include Open H.264 support in the build</flag>
19
    <flag name="opus">Include OPUS support in the build</flag>
20
    <flag name="resample">Include resampling implementations in the build</flag>
21
    <flag name="silk">Include SILK support in the build</flag>
22
    <flag name="webrtc">Enable WebRTC support</flag>
23
  </use>
24
</pkgmetadata>
(-)a/net-libs/pjproject/pjproject-2.5.1.ebuild (+102 lines)
Line 0 Link Here
1
# Copyright 1999-2016 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
3
# $Id$
4
5
EAPI=6
6
7
inherit flag-o-matic
8
9
DESCRIPTION="Open source SIP, Media, and NAT Traversal Library"
10
HOMEPAGE="http://www.pjsip.org/"
11
SRC_URI="http://www.pjsip.org/release/${PV}/${P}.tar.bz2"
12
KEYWORDS="~amd64 ~x86"
13
14
LICENSE="GPL-2"
15
SLOT="0"
16
CODEC_FLAGS="g711 g722 g7221 gsm ilbc speex l16"
17
VIDEO_FLAGS="sdl ffmpeg v4l2 openh264 libyuv"
18
SOUND_FLAGS="alsa oss portaudio"
19
IUSE="amr debug doc epoll examples ipv6 opus resample silk ssl static-libs webrtc ${CODEC_FLAGS} ${VIDEO_FLAGS} ${SOUND_FLAGS}"
20
21
RDEPEND="alsa? ( media-libs/alsa-lib )
22
	oss? ( media-libs/portaudio[oss] )
23
	portaudio? ( media-libs/portaudio )
24
25
	amr? ( media-libs/opencore-amr )
26
	gsm? ( media-sound/gsm )
27
	ilbc? ( dev-libs/ilbc-rfc3951 )
28
	opus? ( media-libs/opus )
29
	speex? ( media-libs/speex )
30
31
	ffmpeg? ( virtual/ffmpeg:= )
32
	sdl? ( media-libs/libsdl )
33
	openh264? ( media-libs/openh264 )
34
	resample? ( media-libs/libsamplerate )
35
36
	ssl? ( dev-libs/openssl:= )
37
38
	net-libs/libsrtp"
39
DEPEND="${RDEPEND}
40
	virtual/pkgconfig"
41
42
REQUIRED_USE="?? ( ${SOUND_FLAGS} )"
43
44
src_configure() {
45
	local myconf=()
46
	local videnable="--disable-video"
47
	local t
48
49
	use ipv6 && append-flags -DPJ_HAS_IPV6=1
50
	use debug || append-flags -DNDEBUG=1
51
52
	for t in ${CODEC_FLAGS}; do
53
		myconf+=( $(use_enable ${t} ${t}-codec) )
54
	done
55
56
	for t in ${VIDEO_FLAGS}; do
57
		myconf+=( $(use_enable ${t}) )
58
		use "${t}" && videnable="--enable-video"
59
	done
60
61
	econf \
62
		--enable-shared \
63
		--with-external-srtp \
64
		${videnable} \
65
		$(use_enable epoll) \
66
		$(use_with gsm external-gsm) \
67
		$(use_with speex external-speex) \
68
		$(use_enable speex speex-aec) \
69
		$(use_enable resample) \
70
		$(use_enable resample libsamplerate) \
71
		$(use_enable resample resample-dll) \
72
		$(use_enable alsa sound) \
73
		$(use_enable oss) \
74
		$(use_with portaudio external-pa) \
75
		$(use_enable portaudio ext-sound) \
76
		$(use_enable amr opencore-amr) \
77
		$(use_enable silk) \
78
		$(use_enable opus) \
79
		$(use_enable ssl) \
80
		$(use_enable webrtc) \
81
		"${myconf[@]}"
82
}
83
84
src_compile() {
85
	emake dep
86
	emake
87
}
88
89
src_install() {
90
	emake DESTDIR="${D}" install
91
92
	if use doc; then
93
		dodoc README.txt README-RTEMS
94
	fi
95
96
	if use examples; then
97
		insinto "/usr/share/doc/${PF}/examples"
98
		doins -r pjsip-apps/src/samples
99
	fi
100
101
	use static-libs || rm "${D}/usr/$(get_libdir)/*.a"
102
}
(-)a/net-misc/asterisk/asterisk-13.8.2.ebuild (-2 / +4 lines)
Lines 20-26 IUSE_VOICEMAIL_STORAGE=" Link Here
20
	voicemail_storage_odbc
20
	voicemail_storage_odbc
21
	voicemail_storage_imap
21
	voicemail_storage_imap
22
"
22
"
23
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"
23
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"
24
IUSE_EXPAND="VOICEMAIL_STORAGE"
24
IUSE_EXPAND="VOICEMAIL_STORAGE"
25
REQUIRED_USE="gtalk? ( xmpp )
25
REQUIRED_USE="gtalk? ( xmpp )
26
	^^ ( ${IUSE_VOICEMAIL_STORAGE/+/} )
26
	^^ ( ${IUSE_VOICEMAIL_STORAGE/+/} )
Lines 75-80 DEPEND="${CDEPEND} Link Here
75
	!net-libs/pjsip
75
	!net-libs/pjsip
76
	voicemail_storage_imap? ( virtual/imap-c-client )
76
	voicemail_storage_imap? ( virtual/imap-c-client )
77
	virtual/pkgconfig
77
	virtual/pkgconfig
78
	pjproject? ( net-libs/pjproject[srtp,ext-sound] )
78
"
79
"
79
80
80
RDEPEND="${CDEPEND}
81
RDEPEND="${CDEPEND}
Lines 119-125 src_configure() { Link Here
119
		$(use_with caps cap) \
120
		$(use_with caps cap) \
120
		$(use_with http gmime) \
121
		$(use_with http gmime) \
121
		$(use_with newt) \
122
		$(use_with newt) \
122
		$(use_with portaudio)
123
		$(use_with portaudio) \
124
		$(use_with pjproject)
123
125
124
	# Blank out sounds/sounds.xml file to prevent
126
	# Blank out sounds/sounds.xml file to prevent
125
	# asterisk from installing sounds files (we pull them in via
127
	# asterisk from installing sounds files (we pull them in via
(-)a/net-misc/asterisk/metadata.xml (-1 / +1 lines)
Lines 16-20 Link Here
16
    <flag name="http">Enable embedded web server</flag>
16
    <flag name="http">Enable embedded web server</flag>
17
    <flag name="cluster">Enable high-availability support through the Corosync Cluster Engine</flag>
17
    <flag name="cluster">Enable high-availability support through the Corosync Cluster Engine</flag>
18
    <flag name="ilbc">Enable the Internet Low Bitrate Codec (iLBC)</flag>
18
    <flag name="ilbc">Enable the Internet Low Bitrate Codec (iLBC)</flag>
19
	<flag name="pjproject">Enable support for pjproject (pjsip)</flag>
19
  </use>
20
  </use>
20
</pkgmetadata>
21
</pkgmetadata>
21
- 

Return to bug 565472