summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schweizer <genstef@gentoo.org>2006-05-05 21:29:22 +0000
committerStefan Schweizer <genstef@gentoo.org>2006-05-05 21:29:22 +0000
commitc7a4d518694ed0bacaccb2673c0700a83f1b89fe (patch)
tree4a4953d5a62e9793c0cfd5de4fdba7aac86b4e56 /net-misc/linphone/linphone-1.3.5.ebuild
parentilbc use flag for new linphone (diff)
downloadhistorical-c7a4d518694ed0bacaccb2673c0700a83f1b89fe.tar.gz
historical-c7a4d518694ed0bacaccb2673c0700a83f1b89fe.tar.bz2
historical-c7a4d518694ed0bacaccb2673c0700a83f1b89fe.zip
Version bump, fixes bugs 108187,113199,116685 and 129194
Package-Manager: portage-2.1_pre10-r2
Diffstat (limited to 'net-misc/linphone/linphone-1.3.5.ebuild')
-rw-r--r--net-misc/linphone/linphone-1.3.5.ebuild97
1 files changed, 97 insertions, 0 deletions
diff --git a/net-misc/linphone/linphone-1.3.5.ebuild b/net-misc/linphone/linphone-1.3.5.ebuild
new file mode 100644
index 000000000000..0c4e07918bed
--- /dev/null
+++ b/net-misc/linphone/linphone-1.3.5.ebuild
@@ -0,0 +1,97 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/linphone/linphone-1.3.5.ebuild,v 1.1 2006/05/05 21:29:22 genstef Exp $
+
+inherit eutils
+
+MY_DPV="${PV%.*}.x"
+
+DESCRIPTION="Linphone is a SIP phone with a GNOME interface."
+HOMEPAGE="http://www.linphone.org/?lang=us"
+SRC_URI="http://simon.morlat.free.fr/download/${MY_DPV}/source/${P}.tar.gz
+ ilbc? ( http://simon.morlat.free.fr/download/${MY_DPV}/source/plugins/${PN}-plugin-ilbc-1.2.0.tar.gz )"
+SLOT=1
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86"
+
+IUSE="alsa gnome ilbc ipv6 xv"
+# truespeech does not build
+
+RDEPEND="dev-libs/glib
+ dev-perl/XML-Parser
+ net-dns/bind-tools
+ >=net-libs/libosip-2.2.0
+ >=media-libs/speex-1.1.6
+ x86? ( xv? ( dev-lang/nasm ) )
+ gnome? ( >=gnome-base/gnome-panel-2
+ >=gnome-base/libgnome-2
+ >=gnome-base/libgnomeui-2
+ >=x11-libs/gtk+-2 )
+ alsa? ( media-libs/alsa-lib )
+ ilbc? ( dev-libs/ilbc-rfc3951 )"
+
+DEPEND="${RDEPEND}"
+
+S_ILBC="${WORKDIR}/${PN}-plugin-ilbc-1.2.0"
+
+src_unpack() {
+ unpack ${A}
+ grep " \-Werror" * -Rl | xargs sed -i "s: -Werror::"
+
+ cd ${S}
+ # fix #99083
+ epatch ${FILESDIR}/${PN}-1.0.1-ipv6-include.diff
+
+ cd ${S_ILBC}
+ # add -fPIC and custom cflags to ilbc makefile
+ epatch ${FILESDIR}/ilbc-1.2.0-makefile.diff
+}
+
+src_compile() {
+ local withgnome myconf=""
+
+ if use gnome; then
+ einfo "Building with GNOME interface."
+ withgnome="yes"
+ else
+ withgnome="no"
+ fi
+
+# use x86 && use truespeech && \
+# myconf="--enable-truespeech"
+
+ econf \
+ --enable-glib \
+ --with-speex=/usr \
+ --libdir=/usr/$(get_libdir)/linphone \
+ --enable-gnome_ui=${withgnome} \
+ `use_enable ipv6` \
+ `use_enable alsa` \
+ ${myconf} || die "Unable to configure"
+
+ grep " \-Werror" * -Rl | xargs sed -i "s: -Werror::"
+ emake || die "Unable to make"
+
+ use ilbc && \
+ emake LINPHONE_SOURCE=${S} \
+ PLUGINS_INSTALL_PATH=/usr/$(get_libdir)/linphone/plugins/mediastreamer \
+ -C ${S_ILBC} || die
+}
+
+src_install () {
+ make DESTDIR=${D} install || die "Failed to install"
+
+ use ilbc && \
+ make LINPHONE_SOURCE=${S} \
+ PLUGINS_INSTALL_PATH=/usr/$(get_libdir)/linphone/plugins/mediastreamer \
+ DESTDIR=${D} -C ${S_ILBC} install || die
+
+ dodoc ABOUT-NLS AUTHORS BUGS ChangeLog COPYING INSTALL NEWS README
+ dodoc README.arm TODO
+
+ # don't install ortp includes, docs and pkgconfig files
+ # to avoid conflicts with net-libs/ortp
+ rm -rf ${D}/usr/include/ortp
+ rm -rf ${D}/usr/share/gtk-doc/html/ortp
+ rm -rf ${D}/usr/$(get_libdir)/linphone/pkgconfig
+}