# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="Utility to communicate with your Polar heartrate monitor through infrared port" HOMEPAGE="http://daveb.net/s710/" SRC_URI="http://daveb.net/s710/src/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="gd png usb" DEPEND="virtual/libc gd? ( media-libs/gd ) png? ( media-libs/libpng ) usb? ( >=dev-libs/libusb-0.1.8 )" src_compile() { econf \ `use_with usb` \ `use_with gd` \ `use_with png` \ || die "Configuration failed!" emake || die "Compilation failed!" } src_install() { einstall || die "Installation failed!" dodoc AUTHORS Changelog INSTALL NEWS README TODO }