1 |
commit: 81436a875a39e0afaf17f500b50b1b7d20e92602 |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Oct 9 15:36:03 2016 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 9 16:18:38 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=81436a87 |
7 |
|
8 |
net-libs/ortp: Support libressl (#565236) |
9 |
|
10 |
Package-Manager: portage-2.3.1 |
11 |
|
12 |
net-libs/ortp/ortp-0.23.0-r1.ebuild | 81 +++++++++++++++++++++++++++++++++++++ |
13 |
1 file changed, 81 insertions(+) |
14 |
|
15 |
diff --git a/net-libs/ortp/ortp-0.23.0-r1.ebuild b/net-libs/ortp/ortp-0.23.0-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000..bdc1b15 |
18 |
--- /dev/null |
19 |
+++ b/net-libs/ortp/ortp-0.23.0-r1.ebuild |
20 |
@@ -0,0 +1,81 @@ |
21 |
+# Copyright 1999-2016 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+# $Id$ |
24 |
+ |
25 |
+EAPI=6 |
26 |
+inherit eutils |
27 |
+ |
28 |
+DESCRIPTION="Open Real-time Transport Protocol (RTP, RFC3550) stack" |
29 |
+HOMEPAGE="http://www.linphone.org/" |
30 |
+SRC_URI="mirror://nongnu/linphone/${PN}/sources/${P}.tar.gz" |
31 |
+ |
32 |
+LICENSE="LGPL-2.1" |
33 |
+SLOT="0/9" |
34 |
+KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~ppc-macos ~x64-macos ~x86-macos" |
35 |
+ |
36 |
+IUSE="debug doc examples ipv6 libressl minimal ntp-timestamp ssl srtp zrtp" |
37 |
+REQUIRED_USE="zrtp? ( srtp )" |
38 |
+ |
39 |
+RDEPEND=" |
40 |
+ ssl? ( |
41 |
+ !libressl? ( dev-libs/openssl:0= ) |
42 |
+ libressl? ( dev-libs/libressl:= ) ) |
43 |
+ srtp? ( net-libs/libsrtp:0= ) |
44 |
+ zrtp? ( >=net-libs/libzrtpcpp-4.0.0:0= ) |
45 |
+" |
46 |
+DEPEND="${RDEPEND} |
47 |
+ doc? ( app-doc/doxygen ) |
48 |
+ virtual/pkgconfig |
49 |
+" |
50 |
+ |
51 |
+src_prepare() { |
52 |
+ default |
53 |
+ # ${P} is added after ${docdir} |
54 |
+ if use doc; then |
55 |
+ sed -i -e 's/$(docdir)\/$(PACKAGE)-$(VERSION)/$(docdir)/' Makefile.in \ |
56 |
+ || die "patching Makefile.in failed" |
57 |
+ fi |
58 |
+} |
59 |
+ |
60 |
+src_configure() { |
61 |
+ local myeconfargs=( |
62 |
+ # memcheck is for HP-UX only |
63 |
+ --disable-memcheck |
64 |
+ # mode64bit adds +DA2.0W +DS2.0 CFLAGS wich are needed for HP-UX |
65 |
+ --disable-mode64bit |
66 |
+ # strict adds -Werror, do not want it |
67 |
+ --disable-strict |
68 |
+ # they seriously failed to understand AC_ARG_ENABLE... |
69 |
+ --disable-tests_enabled |
70 |
+ --enable-fast-install |
71 |
+ --enable-libtool-lock |
72 |
+ # this is fine as long as we do not link to polarssl |
73 |
+ --enable-broken-srtp |
74 |
+ |
75 |
+ $(use_enable debug) |
76 |
+ $(use_enable ipv6) |
77 |
+ $(use_enable minimal perf) |
78 |
+ $(use_enable ntp-timestamp) |
79 |
+ $(use_enable ssl ssl-hmac) |
80 |
+ $(use_enable zrtp) |
81 |
+ |
82 |
+ --with-srtp=$(usex srtp "${EPREFIX}"/usr none) |
83 |
+ $(use doc || echo ac_cv_path_DOXYGEN=false) |
84 |
+ ) |
85 |
+ |
86 |
+ econf "${myeconfargs[@]}" |
87 |
+} |
88 |
+ |
89 |
+src_install() { |
90 |
+ emake DESTDIR="${D}" pkgdocdir="${EPREFIX}"/usr/share/doc/${PF} \ |
91 |
+ install |
92 |
+ |
93 |
+ einstalldocs |
94 |
+ |
95 |
+ prune_libtool_files |
96 |
+ |
97 |
+ if use examples; then |
98 |
+ insinto /usr/share/doc/${PF}/examples |
99 |
+ doins src/tests/*.c |
100 |
+ fi |
101 |
+} |