summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Noël Rivasseau <elvanor@gentoo.org>2011-11-26 16:26:08 +0000
committerJean-Noël Rivasseau <elvanor@gentoo.org>2011-11-26 16:26:08 +0000
commitb24142a52afe42478a8d283c5f3843f6015be5aa (patch)
tree8aace806eb8d3750d98f130185c388bb457c9bbd /net-libs/pjsip
parentProvide GTK+-3.0 version in SLOT="3" (diff)
downloadhistorical-b24142a52afe42478a8d283c5f3843f6015be5aa.tar.gz
historical-b24142a52afe42478a8d283c5f3843f6015be5aa.tar.bz2
historical-b24142a52afe42478a8d283c5f3843f6015be5aa.zip
pjsip 1.12 version bump.
Package-Manager: portage-2.1.10.11/cvs/Linux i686
Diffstat (limited to 'net-libs/pjsip')
-rw-r--r--net-libs/pjsip/ChangeLog7
-rw-r--r--net-libs/pjsip/Manifest16
-rw-r--r--net-libs/pjsip/pjsip-1.12.ebuild95
3 files changed, 104 insertions, 14 deletions
diff --git a/net-libs/pjsip/ChangeLog b/net-libs/pjsip/ChangeLog
index 9a045857f846..4bb385bdcf85 100644
--- a/net-libs/pjsip/ChangeLog
+++ b/net-libs/pjsip/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-libs/pjsip
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-libs/pjsip/ChangeLog,v 1.4 2011/02/22 10:59:09 elvanor Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-libs/pjsip/ChangeLog,v 1.5 2011/11/26 16:26:08 elvanor Exp $
+
+*pjsip-1.12 (26 Nov 2011)
+
+ 26 Nov 2011; <elvanor@gentoo.org> +pjsip-1.12.ebuild:
+ 1.12 version bump.
*pjsip-1.8.10 (22 Feb 2011)
diff --git a/net-libs/pjsip/Manifest b/net-libs/pjsip/Manifest
index 28240622f539..225315e5ef8f 100644
--- a/net-libs/pjsip/Manifest
+++ b/net-libs/pjsip/Manifest
@@ -1,18 +1,8 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA256
-
+DIST pjproject-1.12.tar.bz2 3820999 RMD160 9ff1fad3bab6c0a862efa45bc15329e23bd7aa47 SHA1 44717ba60c4857af0c47861b26a03a49e01691e3 SHA256 5459716167c9224353acfea15eb32efb4976c96d25c994f7ee4533ddd08a7db8
DIST pjproject-1.6.tar.bz2 3716047 RMD160 4a8c1342ad2860983e785bbfbd170410edc2b7d7 SHA1 63e7cd6963290cf396024a837d1fb5194107db57 SHA256 8f13d7197eddd1442d24cf164b395582c00e7f19283f3c0e9d1315d85551ec7b
DIST pjproject-1.8.10.tar.bz2 3821803 RMD160 38eb6834085c6456cfe2e86c625d191aeeb0395a SHA1 dd9304ee0fde895a60c23c19d26e1d869c9c8215 SHA256 80e1a8d68db2b670faf45aa1f27006ea245d9379551a4096aea31dfbdf7a55ec
+EBUILD pjsip-1.12.ebuild 2703 RMD160 98a68f7b44d45b85ec5ce3d6b0b68762f6879aeb SHA1 cf07dc82db7a38f62c7ad55f779063317dbace56 SHA256 2a319276675084e4e492c9550720a2906117d254f4d47a1c78b307db34cd24f3
EBUILD pjsip-1.6.ebuild 2815 RMD160 7e79c05cf740cbe604f0e3b48cbf3e7a2b14e996 SHA1 7b1086b1dc3963fc104e7c581f3d7833bedeb6a1 SHA256 81c9964f53924fb7c99a2feb83052b066a29841ec621499d99011c6fa91c2772
EBUILD pjsip-1.8.10.ebuild 2705 RMD160 9b74c166b4f3fb4e1f4d46fd6781a70d815a8f17 SHA1 b47c4821d365261d681ebabc594e6666eff26a7a SHA256 4cf377c00c9cbea0815691a96e95c521adf6d29e8d51f118355ee1fdb3e7d042
-MISC ChangeLog 756 RMD160 848c657e1af211de75f8ae6fae8249555af0c31b SHA1 4552923da632c8e2e40332e70d812ec2f47f9497 SHA256 830dd3223b878a7964693f1d4bd84f4dacbaebf7a99b1a5e660df95b351e9b49
+MISC ChangeLog 861 RMD160 5b4bdaface0895954d9f63b5975d581a1fed77ae SHA1 f4605292eec6e524a047c98f43a84f526bc344f9 SHA256 f51da9830acd86391757eec364aa2957cde6ffa95ca0d840f6597498ea7d0a55
MISC metadata.xml 853 RMD160 b9226826de95d4f868f223504bab26aad3b89774 SHA1 30a22bff5f5cde784068abcfc08ea781099fd24a SHA256 782a345480de3296cc453858b99266f324423a51b4757b4d25dbcbcab43b258d
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.18 (GNU/Linux)
-
-iJwEAQEIAAYFAk59rUoACgkQfXuS5UK5QB3vKwP/TCXxejK0+WY8rnd0AcYP76K5
-6y3Nmm11nMhYb9iRqqPtcRPd8cXlAYMQt1zLnjr8ghc2gdp+Bu1S304mzCo3ZInW
-bvI+Oqgbz80okG4d/x2P3jVCodFZntNiuYvYrpbfgq1PNFL7EZDNWTnnjz3B5vRx
-bT+hidoeor4S5bsOWhQ=
-=Zv2K
------END PGP SIGNATURE-----
diff --git a/net-libs/pjsip/pjsip-1.12.ebuild b/net-libs/pjsip/pjsip-1.12.ebuild
new file mode 100644
index 000000000000..ef0d579d2000
--- /dev/null
+++ b/net-libs/pjsip/pjsip-1.12.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-libs/pjsip/pjsip-1.12.ebuild,v 1.1 2011/11/26 16:26:08 elvanor Exp $
+
+EAPI="2"
+
+DESCRIPTION="Multimedia communication libraries written in C language
+for building VoIP applications."
+HOMEPAGE="http://www.pjsip.org/"
+SRC_URI="http://www.pjsip.org/release/${PV}/pjproject-${PV}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="alsa doc epoll examples ext-sound g711 g722 g7221 gsm ilbc l16
+oss python speex"
+#small-filter large-filter speex-aec ssl
+
+DEPEND="alsa? ( media-libs/alsa-lib )
+ gsm? ( media-sound/gsm )
+ ilbc? ( dev-libs/ilbc-rfc3951 )
+ speex? ( media-libs/speex )"
+ #ssl? ( dev-libs/openssl )
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/pjproject-${PV}"
+
+src_prepare() {
+ # Remove target name from lib names
+ sed -i -e 's/-$(TARGET_NAME)//g' \
+ -e 's/= $(TARGET_NAME).a/= .a/g' \
+ -e 's/-$(LIB_SUFFIX)/$(LIB_SUFFIX)/g' \
+ $(find . -name '*.mak*' -o -name Makefile) || die "sed failed."
+
+ # Fix hardcoded prefix and flags
+ sed -i \
+ -e 's/poll@/poll@\nexport PREFIX := @prefix@\n/g' \
+ -e 's!prefix = /usr/local!prefix = $(PREFIX)!' \
+ -e '/PJLIB_CFLAGS/ s/(_CFLAGS)/(_CFLAGS) -fPIC/g' \
+ -e '/PJLIB_UTIL_CFLAGS/ s/(_CFLAGS)/(_CFLAGS) -fPIC/g' \
+ Makefile \
+ build.mak.in || die "sed failed."
+
+ # TODO: remove deps to shipped codecs and libs, use system ones
+ # rm -r third_party
+ # libresample: https://ccrma.stanford.edu/~jos/resample/Free_Resampling_Software.html
+}
+
+src_configure() {
+ # Disable through portage available codecs
+ econf --disable-gsm-codec \
+ --disable-speex-codec \
+ --disable-ilbc-codec \
+ --disable-speex-aec \
+ $(use_enable epoll) \
+ $(use_enable alsa sound) \
+ $(use_enable oss) \
+ $(use_enable ext-sound) \
+ $(use_enable g711 g711-codec) \
+ $(use_enable l16 l16-codec) \
+ $(use_enable g722 g722-codec) \
+ $(use_enable g7221 g7221-codec) || die "econf failed."
+ #$(use_enable small-filter) \
+ #$(use_enable large-filter) \
+ #$(use_enable speex-aec) \
+ #$(use_enable ssl) \ #broken? sflphone doesn't compile if enabled or disabled
+}
+
+src_compile() {
+ emake dep || die "emake dep failed."
+ emake -j1 || die "emake failed."
+}
+
+src_install() {
+ DESTDIR="${D}" emake install || die "emake install failed."
+
+ if use python; then
+ pushd pjsip-apps/src/python
+ python setup.py install --prefix="${D}/usr/"
+ popd
+ fi
+
+ if use doc; then
+ dodoc README.txt README-RTEMS
+ fi
+
+ if use examples; then
+ insinto "/usr/share/doc/${P}/examples"
+ doins "${S}/pjsip-apps/src/samples/"*
+ fi
+
+ # Remove files that pjproject should not install
+ rm -r "${D}/usr/lib/libportaudio.a" \
+ "${D}/usr/lib/libsrtp.a"
+}