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

Contents of /media-libs/mediastreamer/mediastreamer-2.2.3_p1-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Sun Oct 23 11:43:51 2011 UTC (7 years, 1 month ago) by scarabeus
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +1 -1 lines
FILE REMOVED
Punt static libraries and libtool archives, remove overshadowed versions.

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

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

  ViewVC Help
Powered by ViewVC 1.1.20