/[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.1 - (show annotations) (download)
Wed Mar 6 17:42:36 2013 UTC (6 years, 11 months ago) by chithanh
Branch: MAIN
Fix openh323 makefile patching, drop hppa keyword due to ptlib.

(Portage version: 2.1.11.52/cvs/Linux x86_64, unsigned Manifest commit)

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/h323plus/h323plus-1.25.0.ebuild,v 1.3 2013/03/06 01:48:11 chithanh Exp $
4
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 IUSE="aec +audio debug +video"
16 SLOT="0/${PV}"
17 LICENSE="MPL-1.1"
18 KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
19
20 DEPEND=">=net-libs/ptlib-2.6.4:=[wav]
21 aec? ( >=media-libs/speex-1.2_rc1 )
22 audio? (
23 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 $(use_enable audio) \
48 $(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