/[gentoo-x86]/net-libs/ortp/ortp-0.22.0.ebuild
Gentoo

Contents of /net-libs/ortp/ortp-0.22.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Oct 10 10:30:05 2013 UTC (7 years, 1 month ago) by hasufell
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +2 -2 lines
add subslot

(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-libs/ortp/ortp-0.22.0.ebuild,v 1.1 2013/10/09 15:09:05 hasufell Exp $
4
5 EAPI=5
6
7 inherit eutils
8
9 DESCRIPTION="Open Real-time Transport Protocol (RTP, RFC3550) stack"
10 HOMEPAGE="http://www.linphone.org/"
11 SRC_URI="mirror://nongnu/linphone/${PN}/sources/${P}.tar.gz"
12
13 LICENSE="LGPL-2.1"
14 SLOT="0/9"
15 KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~ppc-macos ~x64-macos ~x86-macos"
16 IUSE="debug doc examples ipv6 minimal ntp-timestamp ssl" # srtp zrtp"
17
18 # Note:
19 # This package supposedly requires libzrtpcpp-2.0.0
20 # but it is incompatible with its API...
21 #
22 # This package supposedly requires libsrtp
23 # but it is incompatible with its API...
24
25 RDEPEND="ssl? ( dev-libs/openssl )"
26 # srtp? ( net-libs/libsrtp )
27 # zrtp? ( >=net-libs/libzrtpcpp-2.0.0 )"
28 DEPEND="${RDEPEND}
29 doc? ( app-doc/doxygen )
30 virtual/pkgconfig"
31
32 #REQUIRED_USE="zrtp? ( srtp )"
33
34 src_prepare() {
35 # ${P} is added after ${docdir}
36 if use doc; then
37 sed -i -e 's/$(docdir)\/$(PACKAGE)-$(VERSION)/$(docdir)/' Makefile.in \
38 || die "patching Makefile.in failed"
39 fi
40 }
41
42 src_configure() {
43 local myeconfargs=(
44 # memcheck is for HP-UX only
45 --disable-memcheck
46 # mode64bit adds +DA2.0W +DS2.0 CFLAGS wich are needed for HP-UX
47 --disable-mode64bit
48 # strict adds -Werror, don't want it
49 --disable-strict
50 # they seriously failed to understand AC_ARG_ENABLE...
51 --disable-tests_enabled
52 --enable-fast-install
53 --enable-libtool-lock
54
55 $(use_enable debug)
56 $(use_enable ipv6)
57 $(use_enable minimal perf)
58 $(use_enable ntp-timestamp)
59 $(use_enable ssl ssl-hmac)
60 # $(use_enable zrtp)
61 --disable-zrtp
62
63 # "--with-srtp=$(usex srtp "${EPREFIX}"/usr none)"
64 --with-srtp=none
65 $(use doc || echo ac_cv_path_DOXYGEN=false)
66 )
67
68 econf "${myeconfargs[@]}"
69 }
70
71 src_install() {
72 emake DESTDIR="${D}" pkgdocdir="${EPREFIX}"/usr/share/doc/${PF} \
73 install
74 dodoc AUTHORS ChangeLog NEWS README TODO
75
76 prune_libtool_files
77
78 if use examples; then
79 insinto /usr/share/doc/${PF}/examples
80 doins src/tests/*.c
81 fi
82 }

  ViewVC Help
Powered by ViewVC 1.1.20