/[gentoo-x86]/net-libs/h323plus/h323plus-1.25.0-r1.ebuild
Gentoo

Contents of /net-libs/h323plus/h323plus-1.25.0-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Sun Jul 27 16:04:33 2014 UTC (6 years ago) by zerochaos
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
adding ~arm

(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key DD11F94A)

1 ulm 1.2 # Copyright 1999-2014 Gentoo Foundation
2 chithanh 1.1 # Distributed under the terms of the GNU General Public License v2
3 zerochaos 1.3 # $Header: /var/cvsroot/gentoo-x86/net-libs/h323plus/h323plus-1.25.0-r1.ebuild,v 1.2 2014/05/15 11:18:53 ulm Exp $
4 chithanh 1.1
5     EAPI=5
6    
7     inherit eutils flag-o-matic multilib toolchain-funcs
8    
9     MY_P="${PN}-v${PV//./_}"
10    
11     DESCRIPTION="Open Source implementation of the ITU H.323 teleconferencing protocol, successor to OpenH323"
12     HOMEPAGE="http://www.h323plus.org/"
13     SRC_URI="mirror://sourceforge/${PN}/${PN}-v${PV//./_}.tar.gz"
14    
15 ulm 1.2 IUSE="aec debug +sound +video"
16 chithanh 1.1 SLOT="0/${PV}"
17     LICENSE="MPL-1.1"
18 zerochaos 1.3 KEYWORDS="~alpha ~amd64 ~arm ~ppc ~sparc ~x86"
19 chithanh 1.1
20     DEPEND=">=net-libs/ptlib-2.6.4:=[wav]
21     aec? ( >=media-libs/speex-1.2_rc1 )
22 ulm 1.2 sound? (
23 chithanh 1.1 media-sound/gsm
24     dev-libs/ilbc-rfc3951
25     )
26     video? (
27     media-libs/libtheora
28     virtual/ffmpeg
29     )"
30     RDEPEND="${DEPEND}
31     !net-libs/openh323"
32    
33     S="${WORKDIR}/${PN}"
34    
35     src_prepare() {
36     epatch "${FILESDIR}"/${PN}-1.25.0-ptrace-param.patch
37     epatch "${FILESDIR}"/${PN}-1.25.0-ptrace-debugoptionlist.patch
38     epatch "${FILESDIR}"/${PN}-1.25.0-ptlib-2.10.10.patch
39     }
40    
41     src_configure() {
42     # TODO: support for h.263/h.264/sbc(bluetooth)/celt/spandsp
43     #export OPENH323DIR=${S}
44     econf \
45     PTLIB_CONFIG="${EPREFIX}/usr/bin/ptlib-config" \
46     $(use_enable video) \
47 ulm 1.2 $(use_enable sound audio) \
48 chithanh 1.1 $(use_enable aec) \
49     $(use_enable debug asntracing)
50     # revision.h does not exist in ptlib(?)
51     sed -i "/revision.h/d" include/openh323buildopts.h || die
52     }
53    
54     src_compile() {
55     emake \
56     CC="$(tc-getCC)" \
57     CXX="$(tc-getCXX)" \
58     AR="$(tc-getAR)"
59     # these should point to the right directories,
60     # openh323.org apps and others need this
61     sed -i -e "s:^OH323_LIBDIR = \$(OPENH323DIR).*:OH323_LIBDIR = /usr/$(get_libdir):" \
62     openh323u.mak || die
63     sed -i -e "s:^OH323_INCDIR = \$(OPENH323DIR).*:OH323_INCDIR = /usr/include/openh323:" \
64     openh323u.mak || die
65     # this is hardcoded now?
66     sed -i -e "s:^\(OPENH323DIR[ \t]\+=\) "${S}":\1 /usr/share/openh323:" \
67     openh323u.mak || die
68     }

  ViewVC Help
Powered by ViewVC 1.1.20