/[gentoo-x86]/media-libs/mediastreamer/mediastreamer-2.3.0-r1.ebuild
Gentoo

Contents of /media-libs/mediastreamer/mediastreamer-2.3.0-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Wed May 16 12:12:44 2012 UTC (6 years, 1 month ago) by scarabeus
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Punt version that depended only on media-video/ffmpeg.

(Portage version: 2.2.0_alpha105/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-libs/mediastreamer/mediastreamer-2.3.0-r1.ebuild,v 1.5 2012/05/05 08:02:25 jdhore Exp $
4
5 EAPI="3"
6
7 inherit eutils autotools multilib
8
9 DESCRIPTION="Mediastreaming library for telephony application"
10 HOMEPAGE="http://www.linphone.org/index.php/eng/code_review/mediastreamer2"
11 SRC_URI="http://download.savannah.nongnu.org/releases/linphone/${PN}/${P}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="amd64 ppc ~ppc64 x86 ~ppc-macos ~x86-macos"
16 IUSE="+alsa coreaudio debug examples gsm ilbc ipv6 jack oss portaudio +speex theora video x264 X"
17
18 RDEPEND=">=net-libs/ortp-0.15.0_p1
19 alsa? ( media-libs/alsa-lib )
20 gsm? ( media-sound/gsm )
21 jack? ( media-libs/libsamplerate
22 media-sound/jack-audio-connection-kit )
23 portaudio? ( media-libs/portaudio )
24 speex? ( >=media-libs/speex-1.2_beta3 )
25 video? ( media-libs/libsdl[video,X]
26 media-video/ffmpeg
27 theora? ( media-libs/libtheora )
28 X? ( x11-libs/libX11 ) )"
29 DEPEND="${RDEPEND}
30 virtual/pkgconfig"
31
32 PDEPEND="ilbc? ( media-plugins/mediastreamer-ilbc )
33 video? ( x264? ( media-plugins/mediastreamer-x264 ) )"
34
35 # TODO:
36 # run-time test for ipv6 : does it need ortp[ipv6] ?
37
38 # NOTES:
39 # in some way, v4l support is auto-magic but keeping it like that atm
40
41 pkg_setup() {
42 if ! use oss && ! use alsa && ! use jack && ! use portaudio && ! use coreaudio;
43 then
44 eerror "You must enable at least oss, alsa, jack, portaudio or coreaudio"
45 eerror "Please, re-emerge ${PN} with one of this USE flag enabled"
46 die
47 fi
48
49 if ! use video && ( use theora || use X ); then
50 ewarn "X and theora support are enabled if video USE flag is enabled"
51 ewarn "If you want X or theora support, consider re-emerge with USE=\"video\""
52 fi
53 }
54
55 src_prepare() {
56 # too hard to have a flexible lib dir in a clean way
57 sed -i -e "s:\(/usr/kde/3.5/\)lib:\1$(get_libdir):" configure.ac \
58 || die "patching configure.ac failed"
59
60 # respect user's CFLAGS
61 sed -i -e "s:-O2::" configure.ac || die "patching configure.ac failed"
62
63 # change default paths
64 sed -i -e "s:\(\${prefix}/\)lib:\1$(get_libdir):" \
65 -e "s:\(prefix/share\):\1/${PN}:" configure.ac \
66 || die "patching configure.ac failed"
67
68 # fix html doc installation dir
69 # sed -i -e "s:\$(pkgdocdir):\$(docdir):" help/Makefile.am \
70 # || die "patching help/Makefile.am failed"
71 sed -i -e "s:\(doc_htmldir=\).*:\1\$(htmldir):" help/Makefile.am \
72 || die "patching help/Makefile.am failed"
73
74 eautoreconf
75
76 # don't build examples in tests/
77 sed -i -e "s:\(SUBDIRS = .*\) tests \(.*\):\1 \2:" Makefile.in \
78 || die "patching Makefile.in failed"
79 }
80
81 src_configure() {
82 local macaqsnd="--disable-macaqsnd"
83 # Mac OS X Audio Queue is an audio recording facility, available on
84 # 10.5 (Leopard, Darwin9) and onward
85 if use coreaudio && [[ ${CHOST} == *-darwin* && ${CHOST##*-darwin} -ge 9 ]];
86 then
87 macaqsnd="--enable-macaqsnd"
88 fi
89 # strict: don't want -Werror
90 # external-ortp: don't use bundled libs
91 # arts: arts is deprecated
92 econf \
93 --htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \
94 --datadir="${EPREFIX}"/usr/share/${PN} \
95 --libdir="${EPREFIX}"/usr/$(get_libdir) \
96 --disable-strict \
97 --enable-external-ortp \
98 --disable-dependency-tracking \
99 --disable-artsc \
100 $(use_enable alsa) \
101 $(use_enable coreaudio macsnd) ${macaqsnd} \
102 $(use_enable debug) \
103 $(use_enable gsm) \
104 $(use_enable ipv6) \
105 $(use_enable jack) \
106 $(use_enable oss) \
107 $(use_enable portaudio) \
108 $(use_enable speex) \
109 $(use_enable theora) \
110 $(use_enable video) \
111 $(use_enable X x11)
112 }
113
114 src_install() {
115 emake DESTDIR="${D}" install || die "emake install failed"
116
117 dodoc AUTHORS ChangeLog NEWS README || die "dodoc failed"
118
119 if use examples; then
120 insinto /usr/share/doc/${PF}/examples
121 doins tests/*.c || die "doins failed"
122 fi
123 }

  ViewVC Help
Powered by ViewVC 1.1.20