summaryrefslogtreecommitdiff
blob: e0d7271c19fe9f7ff4269d5f4670c90cdda31a10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-im/linphone/linphone-0.9.0.ebuild,v 1.1 2002/09/05 16:16:03 drobbins Exp $

# AUTHOR: Paul Belt <gaarde@gentoo.org>

DESCRIPTION="Linphone is a Web phone with a GNOME interface. It let you make two-party calls over IP networks such as the Internet. It uses the IETF protocols SIP (Session Initiation Protocol) and RTP (Realtime Transport Protocol) to make calls, so it should be able to communicate with other SIP-based Web phones. With several codecs available, it can be used with high speed connections as well as 28k modems."

# In french
# if use french; then \
#    HOMEPAGE="http://www.linphone.org/" \
# elsif use english; then \
#    HOMEPAGE="http://www.linphone.org/?lang=us"
# fi

# In english
HOMEPAGE="http://www.linphone.org/?lang=us"

SRC_URI="http://www.linphone.org/download/${P}.tar.gz"

LICENSE="GPL-2"

SLOT="1"

KEYWORDS="x86"

RDEPEND="=net-libs/libosip-0.8.8
	   =gnome-base/gnome-panel-1.4.1
       alsa? ( >media-sound/alsa-driver-0.5 )
	   xv? ( dev-lang/nasm )
	   dev-libs/glib"

DEPEND="${RDEPEND}"

src_compile() {

   if use pic; \
      then EXTRA_FLAGS="${EXTRA_FLAGS} --with-pic"; \
      else EXTRA_FLAGS="${EXTRA_FLAGS} --without-pic"; fi

   if use alsa; \
      then EXTRA_FLAGS="${EXTRA_FLAGS} --enable-alsa"; \
      else EXTRA_FLAGS="${EXTRA_FLAGS} --disable-alsa"; fi

# Not functional at the moment
#   if use xv; \
#      then EXTRA_FLAGS="${EXTRA_FLAGS} --enable-video"; \
#      else EXTRA_FLAGS="${EXTRA_FLAGS} --disable-video"; fi

   if use nls; \
      then EXTRA_FLAGS="${EXTRA_FLAGS} --enable-nls"; \
      else EXTRA_FLAGS="${EXTRA_FLAGS} --disable-nls"; fi

   if use gtk && use doc; \
      then EXTRA_FLAGS="${EXTRA_FLAGS} --enable-gtk-doc"; \
      else EXTRA_FLAGS="${EXTRA_FLAGS} --disable-gtk-doc"; fi

	econf || die
    emake || die
}

src_install () {
    dodoc ABOUT-NLS COPYING README AUTHORS BUGS INSTALL NEWS ChangeLog TODO
	einstall PIXDESTDIR=${D} || die
}