# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Maintainer: Pau Oliva <pau@eSlack.org>

S="${WORKDIR}/${P}"
DESCRIPTION="Speak Freely is a application that allows you to talk (actually send voice, not typed characters) over a network."
SRC_URI="http://www.fourmilab.ch/speakfree/unix/download/7.5/${P}.tar.gz"
HOMEPAGE="http://www.fourmilab.ch/speakfree/unix/"
LICENSE="unknown"
SLOT="0"
KEYWORDS="x86"
DEPEND=""
RDEPEND="tcltk? >=dev-lang/tcl-8.3.3
	 	 tcltk? >=dev-lang/tk-8.3.3"

src_compile() {
	make || die
}

src_install () {
	dodir /usr/bin
	insinto /usr/bin
	dobin sfspeaker sfmike sflaunch sflwld sflwl sfecho sfreflect
	doman sfecho.1  sflaunch.1  sflwl.1  sflwld.1  sfmike.1  sfreflect.1  sfspeaker.1  sfvod.1
	dodoc COPYING INSTALL README

	if [ "`use tcltk`" ]; then
		cd CONTRIB/xspeakfree-0.8.1.b
		./install.sh ${D}/usr
		cd ../tkspeakfree-0.1
		cp -R * ${D}/usr
	fi
		
}