Lines 4-10
Link Here
|
4 |
|
4 |
|
5 |
EAPI="4" |
5 |
EAPI="4" |
6 |
|
6 |
|
7 |
inherit eutils autotools multilib |
7 |
inherit autotools multilib |
8 |
|
8 |
|
9 |
DESCRIPTION="Mediastreaming library for telephony application" |
9 |
DESCRIPTION="Mediastreaming library for telephony application" |
10 |
HOMEPAGE="http://www.linphone.org/" |
10 |
HOMEPAGE="http://www.linphone.org/" |
Lines 16-34
Link Here
|
16 |
# Many cameras will not work or will crash an application if mediastreamer2 is |
16 |
# Many cameras will not work or will crash an application if mediastreamer2 is |
17 |
# not built with v4l2 support (taken from configure.ac) |
17 |
# not built with v4l2 support (taken from configure.ac) |
18 |
# TODO: run-time test for ipv6: does it really need ortp[ipv6] ? |
18 |
# TODO: run-time test for ipv6: does it really need ortp[ipv6] ? |
19 |
IUSE="+alsa amr bindist coreaudio debug examples gsm ilbc ipv6 jack oss portaudio |
19 |
IUSE="+alsa amr bindist coreaudio debug examples g726 g729 gsm ilbc ipv6 |
20 |
pulseaudio sdl +speex static-libs theora v4l video x264 X" |
20 |
oss portaudio pulseaudio sdl +speex silk static-libs theora v4l video x264 X" |
21 |
REQUIRED_USE="|| ( oss alsa jack portaudio coreaudio pulseaudio ) |
21 |
REQUIRED_USE="|| ( oss alsa portaudio coreaudio pulseaudio ) |
22 |
video? ( || ( sdl X ) ) |
22 |
video? ( || ( sdl X ) ) |
23 |
theora? ( video ) |
23 |
theora? ( video ) |
24 |
X? ( video ) |
24 |
X? ( video ) |
25 |
v4l? ( video )" |
25 |
v4l? ( video )" |
26 |
|
26 |
|
27 |
RDEPEND=">=net-libs/ortp-0.16.2[ipv6?] |
27 |
RDEPEND=">=net-libs/ortp-0.17[ipv6?] |
28 |
alsa? ( media-libs/alsa-lib ) |
28 |
alsa? ( media-libs/alsa-lib ) |
|
|
29 |
g726? ( >=media-libs/spandsp-0.0.6_pre1 ) |
29 |
gsm? ( media-sound/gsm ) |
30 |
gsm? ( media-sound/gsm ) |
30 |
jack? ( >=media-libs/libsamplerate-0.0.13 |
|
|
31 |
media-sound/jack-audio-connection-kit ) |
32 |
portaudio? ( media-libs/portaudio ) |
31 |
portaudio? ( media-libs/portaudio ) |
33 |
pulseaudio? ( >=media-sound/pulseaudio-0.9.21 ) |
32 |
pulseaudio? ( >=media-sound/pulseaudio-0.9.21 ) |
34 |
speex? ( >=media-libs/speex-1.2_beta3 ) |
33 |
speex? ( >=media-libs/speex-1.2_beta3 ) |
Lines 45-51
Link Here
|
45 |
x11-proto/videoproto" |
44 |
x11-proto/videoproto" |
46 |
|
45 |
|
47 |
PDEPEND="amr? ( !bindist? ( media-plugins/mediastreamer-amr ) ) |
46 |
PDEPEND="amr? ( !bindist? ( media-plugins/mediastreamer-amr ) ) |
|
|
47 |
g729? ( !bindist? ( media-plugins/mediastreamer-bcg729 ) ) |
48 |
ilbc? ( media-plugins/mediastreamer-ilbc ) |
48 |
ilbc? ( media-plugins/mediastreamer-ilbc ) |
|
|
49 |
silk? ( !bindist? ( media-plugins/mediastreamer-silk ) ) |
49 |
video? ( x264? ( media-plugins/mediastreamer-x264 ) )" |
50 |
video? ( x264? ( media-plugins/mediastreamer-x264 ) )" |
50 |
|
51 |
|
51 |
DOCS=( AUTHORS ChangeLog NEWS README ) |
52 |
DOCS=( AUTHORS ChangeLog NEWS README ) |
Lines 65-81
Link Here
|
65 |
sed -i -e "s:\(doc_htmldir=\).*:\1\$(htmldir):" help/Makefile.am \ |
66 |
sed -i -e "s:\(doc_htmldir=\).*:\1\$(htmldir):" help/Makefile.am \ |
66 |
|| die "patching help/Makefile.am failed" |
67 |
|| die "patching help/Makefile.am failed" |
67 |
|
68 |
|
68 |
epatch "${FILESDIR}/${PN}-2.7.3-v4l-automagic.patch" |
69 |
epatch "${FILESDIR}/${P}-v4l-automagic.patch" |
69 |
epatch "${FILESDIR}/${P}-sdl-build.patch" |
|
|
70 |
|
70 |
|
71 |
# linux/videodev.h dropped in 2.6.38 |
71 |
# linux/videodev.h dropped in 2.6.38 |
72 |
sed -i -e 's:msv4l.c::' src/Makefile.am || die |
|
|
73 |
sed -i -e 's:linux/videodev.h ::' configure.ac || die |
72 |
sed -i -e 's:linux/videodev.h ::' configure.ac || die |
74 |
eautoreconf |
|
|
75 |
|
73 |
|
76 |
# don't build examples in tests/ |
74 |
# don't build examples in tests/ |
77 |
sed -i -e "s:\(SUBDIRS = .*\) tests \(.*\):\1 \2:" Makefile.in \ |
75 |
sed -i -e "s:\(SUBDIRS = .*\) tests \(.*\):\1 \2:" Makefile.in \ |
78 |
|| die "patching Makefile.in failed" |
76 |
|| die "patching Makefile.in failed" |
|
|
77 |
|
78 |
# make sure to use host libtool version |
79 |
rm -f m4/libtool.m4 m4/lt*.m4 #282268 |
80 |
mkdir m4 |
81 |
eautoreconf |
79 |
} |
82 |
} |
80 |
|
83 |
|
81 |
src_configure() { |
84 |
src_configure() { |
Lines 94-109
Link Here
|
94 |
--htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \ |
97 |
--htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \ |
95 |
--datadir="${EPREFIX}"/usr/share/${PN} \ |
98 |
--datadir="${EPREFIX}"/usr/share/${PN} \ |
96 |
--libdir="${EPREFIX}"/usr/$(get_libdir) \ |
99 |
--libdir="${EPREFIX}"/usr/$(get_libdir) \ |
|
|
100 |
--disable-artsc \ |
97 |
--disable-strict \ |
101 |
--disable-strict \ |
|
|
102 |
--disable-libv4l1 \ |
98 |
--enable-external-ortp \ |
103 |
--enable-external-ortp \ |
99 |
--disable-artsc \ |
|
|
100 |
$(use_enable alsa) \ |
104 |
$(use_enable alsa) \ |
101 |
$(use_enable pulseaudio) \ |
105 |
$(use_enable pulseaudio) \ |
102 |
$(use_enable coreaudio macsnd) ${macaqsnd} \ |
106 |
$(use_enable coreaudio macsnd) ${macaqsnd} \ |
103 |
$(use_enable debug) \ |
107 |
$(use_enable debug) \ |
|
|
108 |
$(use_enable g726 spandsp ) \ |
104 |
$(use_enable gsm) \ |
109 |
$(use_enable gsm) \ |
105 |
$(use_enable ipv6) \ |
110 |
$(use_enable ipv6) \ |
106 |
$(use_enable jack) \ |
|
|
107 |
$(use_enable oss) \ |
111 |
$(use_enable oss) \ |
108 |
$(use_enable portaudio) \ |
112 |
$(use_enable portaudio) \ |
109 |
$(use_enable speex) \ |
113 |
$(use_enable speex) \ |
Lines 111-117
Link Here
|
111 |
$(use_enable theora) \ |
115 |
$(use_enable theora) \ |
112 |
$(use_enable video) \ |
116 |
$(use_enable video) \ |
113 |
$(use_enable v4l) \ |
117 |
$(use_enable v4l) \ |
114 |
$(use_enable v4l libv4l) \ |
118 |
$(use_enable v4l libv4l2) \ |
115 |
$(use_enable sdl) \ |
119 |
$(use_enable sdl) \ |
116 |
$(use_enable X x11) \ |
120 |
$(use_enable X x11) \ |
117 |
$(use_enable X xv) |
121 |
$(use_enable X xv) |