1 |
commit: 2f0a8066cec1e9356367684a5dffb808f0be6ac8 |
2 |
Author: Jaco Kroon <jaco <AT> uls <DOT> co <DOT> za> |
3 |
AuthorDate: Thu Oct 27 19:44:42 2022 +0000 |
4 |
Commit: John Helmert III <ajak <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 30 02:57:47 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f0a8066 |
7 |
|
8 |
net-libs/pjproject: drop 2.12.1-r1 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/875863 |
11 |
|
12 |
Signed-off-by: Jaco Kroon <jaco <AT> uls.co.za> |
13 |
Closes: https://github.com/gentoo/gentoo/pull/27992 |
14 |
Signed-off-by: John Helmert III <ajak <AT> gentoo.org> |
15 |
|
16 |
net-libs/pjproject/pjproject-2.12.1-r1.ebuild | 140 -------------------------- |
17 |
1 file changed, 140 deletions(-) |
18 |
|
19 |
diff --git a/net-libs/pjproject/pjproject-2.12.1-r1.ebuild b/net-libs/pjproject/pjproject-2.12.1-r1.ebuild |
20 |
deleted file mode 100644 |
21 |
index e93be1690889..000000000000 |
22 |
--- a/net-libs/pjproject/pjproject-2.12.1-r1.ebuild |
23 |
+++ /dev/null |
24 |
@@ -1,140 +0,0 @@ |
25 |
-# Copyright 1999-2022 Gentoo Authors |
26 |
-# Distributed under the terms of the GNU General Public License v2 |
27 |
-# TODO: Figure out a way to disable SRTP from pjproject entirely. |
28 |
-EAPI=8 |
29 |
- |
30 |
-inherit autotools flag-o-matic toolchain-funcs |
31 |
- |
32 |
-DESCRIPTION="Open source SIP, Media, and NAT Traversal Library" |
33 |
-HOMEPAGE="https://www.pjsip.org/" |
34 |
-SRC_URI="https://github.com/pjsip/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
35 |
-KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 x86" |
36 |
- |
37 |
-LICENSE="GPL-2" |
38 |
-SLOT="0/${PV}" |
39 |
- |
40 |
-# g729 not included due to special bcg729 handling. |
41 |
-CODEC_FLAGS="g711 g722 g7221 gsm ilbc speex l16" |
42 |
-VIDEO_FLAGS="sdl ffmpeg v4l2 openh264 libyuv vpx" |
43 |
-SOUND_FLAGS="alsa portaudio" |
44 |
-IUSE="amr debug epoll examples opus resample silk ssl static-libs webrtc |
45 |
- ${CODEC_FLAGS} g729 |
46 |
- ${VIDEO_FLAGS} |
47 |
- ${SOUND_FLAGS}" |
48 |
- |
49 |
-RDEPEND=">=net-libs/libsrtp-2.3.0:= |
50 |
- alsa? ( media-libs/alsa-lib ) |
51 |
- amr? ( media-libs/opencore-amr ) |
52 |
- ffmpeg? ( media-video/ffmpeg:= ) |
53 |
- g729? ( media-libs/bcg729 ) |
54 |
- gsm? ( media-sound/gsm ) |
55 |
- ilbc? ( media-libs/libilbc ) |
56 |
- openh264? ( media-libs/openh264 ) |
57 |
- opus? ( media-libs/opus ) |
58 |
- portaudio? ( media-libs/portaudio ) |
59 |
- resample? ( media-libs/libsamplerate ) |
60 |
- sdl? ( media-libs/libsdl ) |
61 |
- speex? ( |
62 |
- media-libs/speex |
63 |
- media-libs/speexdsp |
64 |
- ) |
65 |
- ssl? ( |
66 |
- dev-libs/openssl:0= |
67 |
- ) |
68 |
-" |
69 |
-DEPEND="${RDEPEND}" |
70 |
-BDEPEND="virtual/pkgconfig" |
71 |
- |
72 |
-PATCHES=( |
73 |
- "${FILESDIR}/pjproject-2.12.1-CVE-2022-31031.patch" |
74 |
-) |
75 |
- |
76 |
-src_prepare() { |
77 |
- default |
78 |
- rm configure || die "Unable to remove unwanted wrapper" |
79 |
- mv aconfigure.ac configure.ac || die "Unable to rename configure script source" |
80 |
- eautoreconf |
81 |
- |
82 |
- cp "${FILESDIR}/pjproject-2.12.1-config_site.h" "${S}/pjlib/include/pj/config_site.h" || die "Unable to create config_site.h" |
83 |
-} |
84 |
- |
85 |
-_pj_enable() { |
86 |
- usex "$1" '' "--disable-${2:-$1}" |
87 |
-} |
88 |
- |
89 |
-_pj_get_define() { |
90 |
- local r="$(sed -nre "s/^#define[[:space:]]+$1[[:space:]]+//p" "${S}/pjlib/include/pj/config_site.h")" |
91 |
- [[ -z "${r}" ]] && die "Unable to fine #define $1 in config_site.h" |
92 |
- echo "$r" |
93 |
-} |
94 |
- |
95 |
-_pj_set_define() { |
96 |
- local c=$(_pj_get_define "$1") |
97 |
- [[ "$c" = "$2" ]] && return 0 |
98 |
- 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." |
99 |
- [[ "$(_pj_get_define "$1")" != "$2" ]] && die "sed failed to perform update for $1 to $2." |
100 |
-} |
101 |
- |
102 |
-_pj_use_set_define() { |
103 |
- _pj_set_define "$2" $(usex "$1" 1 0) |
104 |
-} |
105 |
- |
106 |
-src_configure() { |
107 |
- local myconf=() |
108 |
- local videnable="--disable-video" |
109 |
- local t |
110 |
- |
111 |
- use debug || append-cflags -DNDEBUG=1 |
112 |
- |
113 |
- for t in ${CODEC_FLAGS}; do |
114 |
- myconf+=( $(_pj_enable ${t} ${t}-codec) ) |
115 |
- done |
116 |
- myconf+=( $(_pj_enable g729 bcg729) ) |
117 |
- |
118 |
- for t in ${VIDEO_FLAGS}; do |
119 |
- myconf+=( $(_pj_enable ${t}) ) |
120 |
- use "${t}" && videnable="--enable-video" |
121 |
- done |
122 |
- |
123 |
- [ "${videnable}" = "--enable-video" ] && _pj_set_define PJMEDIA_HAS_VIDEO 1 || _pj_set_define PJMEDIA_HAS_VIDEO 0 |
124 |
- |
125 |
- LD="$(tc-getCC)" econf \ |
126 |
- --enable-shared \ |
127 |
- --with-external-srtp \ |
128 |
- ${videnable} \ |
129 |
- $(_pj_enable alsa sound) \ |
130 |
- $(_pj_enable amr opencore-amr) \ |
131 |
- $(_pj_enable epoll) \ |
132 |
- $(_pj_enable opus) \ |
133 |
- $(_pj_enable portaudio ext-sound) \ |
134 |
- $(_pj_enable resample libsamplerate) \ |
135 |
- $(_pj_enable resample resample-dll) \ |
136 |
- $(_pj_enable resample) \ |
137 |
- $(_pj_enable silk) \ |
138 |
- $(_pj_enable speex speex-aec) \ |
139 |
- $(_pj_enable ssl) \ |
140 |
- $(_pj_enable webrtc libwebrtc) \ |
141 |
- $(use_with gsm external-gsm) \ |
142 |
- $(use_with portaudio external-pa) \ |
143 |
- $(use_with speex external-speex) \ |
144 |
- "${myconf[@]}" |
145 |
-} |
146 |
- |
147 |
-src_compile() { |
148 |
- emake dep LD="$(tc-getCC)" |
149 |
- emake LD="$(tc-getCC)" |
150 |
-} |
151 |
- |
152 |
-src_install() { |
153 |
- default |
154 |
- |
155 |
- newbin pjsip-apps/bin/pjsua-${CHOST} pjsua |
156 |
- newbin pjsip-apps/bin/pjsystest-${CHOST} pjsystest |
157 |
- |
158 |
- if use examples; then |
159 |
- insinto "/usr/share/doc/${PF}/examples" |
160 |
- doins -r pjsip-apps/src/samples |
161 |
- fi |
162 |
- |
163 |
- use static-libs || rm "${ED}/usr/$(get_libdir)"/*.a || die "Error removing static archives" |
164 |
-} |