# $Id: Portfile 56061 2009-08-24 00:33:19Z ryandesign@macports.org $

PortSystem              1.0
name                    s710
version                 0.19
revision                1
categories              comms
platforms               darwin
maintainers     gadzarts.org:philippe.barthelemy_DARWINPORTS
description     communicate to a Polar S710 heart rate  monitor
long_description This software lets you communicate from a  computer to a Polar S710 \
heart rate monitor via the serial IR interface. It is  not complete, but a utility is \
provided that gives you the ability to view the  settings on the watch and download \
exercise files. Other utilities (also  provided) allow you to print the contents of \
exercise files and render the data  in PNG.
homepage                http://daveb.net/s710/

master_sites    http://daveb.net/s710/src/
checksums               md5 cb7cdfdd03ade0c9a64f1b1af8d8ccd3
depends_lib     lib:libgd:gd2  lib:libiconv:libiconv
configure.cflags        "-DS710_SERIAL_ALT_INTER_CHAR_TIMER_IMP -L${prefix}/libs710"
configure.ldflags       "-lz -liconv"
configure.args  --with-filedir=${prefix}/var/polar/s710/raw

variant                 usb  {
depends_build-append lib:libusb-compat:libusb-compat
configure.args-append  --with-usb
}

