# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit kernel-mod eutils DESCRIPTION="ANT is a desktop ISDN telephony application written for GNU/Linux. It supports OSS (Open Sound System) and I4L (ISDN4Linux). Its user interface was made for GTK+ 2.x (GIMP toolkit). It directly interfaces OSS and ISDN devices, so there is no need to install extra software or hardware like PBX or telephony cards." HOMEPAGE="http://www.antcom.de/ant-phone" SRC_URI="http://www.antcom.de/ant-phone/download/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86" IUSE="alsa gtk gtk2" DEPEND="media-libs/alsa-oss media-libs/libsndfile" pkg_setup() { if ! kernel-mod_configoption_present CONFIG_SND; then ewarn "alsa is not enabled in /usr/src/linux/.config" ewarn "for this package to work you need ossemul support which is provided by alsa sound module" fi if ! kernel-mod_configoption_present CONFIG_ISDN; then ewarn "isdn support is not enabled in /usr/src/linux/.config" fi if ! kernel-mod_configoption_present CONFIG_ISDN_I4L; then ewarn "isdn_4_linux support is not enabled in /usr/src/linux/.config" fi } src_unpack() { unpack ${A} cd ${S} } src_compile() { econf || die "./Configure failed miserably !!" emake || die "Unable to make, make failed !!" } src_install() { make DESTDIR=${D} install || die "Error Installing Package !!" dodoc AUTHORS COPYING ChangeLog DRIVERS HELP INSTALL NEWS README SECURITY } pkg_postinstall() { einfo "You will need an ISDN card with audio support for Linux (ISDN4Linux driver)" einfo "(teles or HiSax drivers are known to work)" einfo "For more info visit $HOMEPAGE" }