Gentoo Archives: gentoo-commits

From: "Jean-Noel Rivasseau (elvanor)" <elvanor@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-libs/pjsip: ChangeLog pjsip-1.14.ebuild
Date: Sun, 29 Apr 2012 19:04:44
Message-Id: 20120429190434.2C7A42004B@flycatcher.gentoo.org
1 elvanor 12/04/29 19:04:34
2
3 Modified: ChangeLog
4 Added: pjsip-1.14.ebuild
5 Log:
6 pjsip-1.14 version bump.
7
8 (Portage version: 2.1.10.49/cvs/Linux i686)
9
10 Revision Changes Path
11 1.8 net-libs/pjsip/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/pjsip/ChangeLog?rev=1.8&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/pjsip/ChangeLog?rev=1.8&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/pjsip/ChangeLog?r1=1.7&r2=1.8
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-libs/pjsip/ChangeLog,v
20 retrieving revision 1.7
21 retrieving revision 1.8
22 diff -u -r1.7 -r1.8
23 --- ChangeLog 2 Mar 2012 15:10:00 -0000 1.7
24 +++ ChangeLog 29 Apr 2012 19:04:33 -0000 1.8
25 @@ -1,6 +1,11 @@
26 # ChangeLog for net-libs/pjsip
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-libs/pjsip/ChangeLog,v 1.7 2012/03/02 15:10:00 elvanor Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-libs/pjsip/ChangeLog,v 1.8 2012/04/29 19:04:33 elvanor Exp $
30 +
31 +*pjsip-1.14 (29 Apr 2012)
32 +
33 + 29 Apr 2012; <elvanor@g.o> +pjsip-1.14.ebuild:
34 + Version bump to 1.14.
35
36 02 Mar 2012; <elvanor@g.o> pjsip-1.12.ebuild:
37 Quick typo fix.
38
39
40
41 1.1 net-libs/pjsip/pjsip-1.14.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/pjsip/pjsip-1.14.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/pjsip/pjsip-1.14.ebuild?rev=1.1&content-type=text/plain
45
46 Index: pjsip-1.14.ebuild
47 ===================================================================
48 # Copyright 1999-2012 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/net-libs/pjsip/pjsip-1.14.ebuild,v 1.1 2012/04/29 19:04:34 elvanor Exp $
51
52 EAPI="2"
53
54 DESCRIPTION="Multimedia communication libraries written in C language
55 for building VoIP applications."
56 HOMEPAGE="http://www.pjsip.org/"
57 SRC_URI="http://www.pjsip.org/release/${PV}/pjproject-${PV}.tar.bz2"
58
59 LICENSE="GPL-2"
60 SLOT="0"
61 KEYWORDS="~amd64 ~x86"
62 IUSE="alsa cli doc epoll examples ext-sound g711 g722 g7221 gsm ilbc l16
63 oss python speex"
64 #small-filter large-filter speex-aec ssl
65
66 DEPEND="alsa? ( media-libs/alsa-lib )
67 gsm? ( media-sound/gsm )
68 ilbc? ( dev-libs/ilbc-rfc3951 )
69 speex? ( media-libs/speex )"
70 #ssl? ( dev-libs/openssl )
71 RDEPEND="${DEPEND}"
72
73 S="${WORKDIR}/pjproject-${PV}"
74
75 src_prepare() {
76 # Remove target name from lib names
77 sed -i -e 's/-$(TARGET_NAME)//g' \
78 -e 's/= $(TARGET_NAME).a/= .a/g' \
79 -e 's/-$(LIB_SUFFIX)/$(LIB_SUFFIX)/g' \
80 $(find . -name '*.mak*' -o -name Makefile) || die "sed failed."
81
82 # Fix hardcoded prefix and flags
83 sed -i \
84 -e 's/poll@/poll@\nexport PREFIX := @prefix@\n/g' \
85 -e 's!prefix = /usr/local!prefix = $(PREFIX)!' \
86 -e '/PJLIB_CFLAGS/ s/(_CFLAGS)/(_CFLAGS) -fPIC/g' \
87 -e '/PJLIB_UTIL_CFLAGS/ s/(_CFLAGS)/(_CFLAGS) -fPIC/g' \
88 Makefile \
89 build.mak.in || die "sed failed."
90
91 # TODO: remove deps to shipped codecs and libs, use system ones
92 # rm -r third_party
93 # libresample: https://ccrma.stanford.edu/~jos/resample/Free_Resampling_Software.html
94 }
95
96 src_configure() {
97 # Disable through portage available codecs
98 econf --disable-gsm-codec \
99 --disable-speex-codec \
100 --disable-ilbc-codec \
101 --disable-speex-aec \
102 $(use_enable epoll) \
103 $(use_enable alsa sound) \
104 $(use_enable oss) \
105 $(use_enable ext-sound) \
106 $(use_enable g711 g711-codec) \
107 $(use_enable l16 l16-codec) \
108 $(use_enable g722 g722-codec) \
109 $(use_enable g7221 g7221-codec) || die "econf failed."
110 #$(use_enable small-filter) \
111 #$(use_enable large-filter) \
112 #$(use_enable speex-aec) \
113 #$(use_enable ssl) \ #broken? sflphone doesn't compile if enabled or disabled
114 }
115
116 src_compile() {
117 emake dep || die "emake dep failed."
118 emake -j1 || die "emake failed."
119 }
120
121 src_install() {
122 DESTDIR="${D}" emake install || die "emake install failed."
123
124 if use cli; then
125 dobin pjsip-apps/bin/pjsua
126 fi
127
128 if use python; then
129 pushd pjsip-apps/src/python
130 python setup.py install --prefix="${D}/usr/"
131 popd
132 fi
133
134 if use doc; then
135 dodoc README.txt README-RTEMS
136 fi
137
138 if use examples; then
139 insinto "/usr/share/doc/${P}/examples"
140 doins "${S}/pjsip-apps/src/samples/"*
141 fi
142
143 # Remove files that pjproject should not install
144 rm -r "${D}/usr/lib/libportaudio.a" \
145 "${D}/usr/lib/libsrtp.a"
146 }