summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThilo Bangert <bangert@gentoo.org>2010-05-06 19:18:45 +0000
committerThilo Bangert <bangert@gentoo.org>2010-05-06 19:18:45 +0000
commit4c3a78cd138f0af99ee13057c9602c908e3a14ce (patch)
tree45c23126d02ec8c83302233292b9ded6ba5caa05 /net-voip/pjsua/pjsua-1.6.ebuild
parentuse BASE_DIR constant (diff)
downloadbangert-4c3a78cd138f0af99ee13057c9602c908e3a14ce.tar.gz
bangert-4c3a78cd138f0af99ee13057c9602c908e3a14ce.tar.bz2
bangert-4c3a78cd138f0af99ee13057c9602c908e3a14ce.zip
crude pjsua ebuild and a better sofsip-cli ebuild
svn path=/ebuilds/; revision=97
Diffstat (limited to 'net-voip/pjsua/pjsua-1.6.ebuild')
-rw-r--r--net-voip/pjsua/pjsua-1.6.ebuild52
1 files changed, 52 insertions, 0 deletions
diff --git a/net-voip/pjsua/pjsua-1.6.ebuild b/net-voip/pjsua/pjsua-1.6.ebuild
new file mode 100644
index 0000000..c105b8c
--- /dev/null
+++ b/net-voip/pjsua/pjsua-1.6.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="3"
+
+DESCRIPTION="pjsua is an open source command line SIP user agent"
+HOMEPAGE="http://www.pjsip.org/pjsua.htm"
+SRC_URI="http://www.pjsip.org/release/${PV}/pjproject-${PV}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="ipv6 portaudio ssl"
+
+DEPEND="media-libs/speex
+ portaudio? ( media-libs/portaudio )
+ ssl? ( dev-libs/openssl )"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/pjproject-${PV}"
+
+src_configure() {
+ local localconf
+
+ localconf='--with-external-speex '
+ use portaudio && \
+ localconf="${localconf} --with-external-pa"
+ use portaudio || \
+ localconf="${localconf} --without-pa"
+
+ econf ${localconf} || die
+
+ use ssl && \
+ echo '#define PJSIP_HAS_TLS_TRANSPORT 1' >> \
+ pjlib/include/pj/config_site.h
+
+ use ipv6 && \
+ echo '#define PJ_HAS_IPV6 1' >> \
+ pjlib/include/pj/config_site.h
+
+}
+
+src_compile() {
+ #fails on parallel build
+ emake -j1 || die "Make failed!"
+}
+
+src_install() {
+ exeinto /usr/bin
+ newexe pjsip-apps/bin/pjsua* pjsua
+}