PortSystem              1.0

name                    s710
version                 0.21
revision                1
categories              comms
platforms               darwin
license                 GPL-2
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            googlecode
checksums               md5 5cacc616971265881400e18e09c60fa5 \
                        sha1 3b6f703082d19056490c76b22b4ef8158795876c \
                        rmd160 866ed5d0dec77582872123f2762cbc2dfd6c0856
depends_lib             port:gd2  port:libiconv

patchfiles              dynamic_lookup-11.patch

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_lib-append port:libusb-compat
configure.args-append  --with-usb
}
