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: pjsip-1.12.ebuild ChangeLog
Date: Sat, 26 Nov 2011 16:26:19
Message-Id: 20111126162608.760F52004B@flycatcher.gentoo.org
1 elvanor 11/11/26 16:26:08
2
3 Modified: ChangeLog
4 Added: pjsip-1.12.ebuild
5 Log:
6 pjsip 1.12 version bump.
7
8 (Portage version: 2.1.10.11/cvs/Linux i686)
9
10 Revision Changes Path
11 1.5 net-libs/pjsip/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/pjsip/ChangeLog?rev=1.5&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/pjsip/ChangeLog?rev=1.5&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/pjsip/ChangeLog?r1=1.4&r2=1.5
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-libs/pjsip/ChangeLog,v
20 retrieving revision 1.4
21 retrieving revision 1.5
22 diff -u -r1.4 -r1.5
23 --- ChangeLog 22 Feb 2011 10:59:09 -0000 1.4
24 +++ ChangeLog 26 Nov 2011 16:26:08 -0000 1.5
25 @@ -1,6 +1,11 @@
26 # ChangeLog for net-libs/pjsip
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-libs/pjsip/ChangeLog,v 1.4 2011/02/22 10:59:09 elvanor Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-libs/pjsip/ChangeLog,v 1.5 2011/11/26 16:26:08 elvanor Exp $
30 +
31 +*pjsip-1.12 (26 Nov 2011)
32 +
33 + 26 Nov 2011; <elvanor@g.o> +pjsip-1.12.ebuild:
34 + 1.12 version bump.
35
36 *pjsip-1.8.10 (22 Feb 2011)
37
38
39
40
41 1.1 net-libs/pjsip/pjsip-1.12.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/pjsip/pjsip-1.12.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/pjsip/pjsip-1.12.ebuild?rev=1.1&content-type=text/plain
45
46 Index: pjsip-1.12.ebuild
47 ===================================================================
48 # Copyright 1999-2011 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.12.ebuild,v 1.1 2011/11/26 16:26:08 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 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 python; then
125 pushd pjsip-apps/src/python
126 python setup.py install --prefix="${D}/usr/"
127 popd
128 fi
129
130 if use doc; then
131 dodoc README.txt README-RTEMS
132 fi
133
134 if use examples; then
135 insinto "/usr/share/doc/${P}/examples"
136 doins "${S}/pjsip-apps/src/samples/"*
137 fi
138
139 # Remove files that pjproject should not install
140 rm -r "${D}/usr/lib/libportaudio.a" \
141 "${D}/usr/lib/libsrtp.a"
142 }