# $Id: Portfile,v 1.1 2004/08/14 08:46:16 olegb Exp $
PortSystem        1.0
name              s710
version           0.15
categories        comms
platforms         darwin
maintainers       opendarwin.nospam@vercruesse.de
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 d5b0b19ca769dcf58db01ad7989b5885
depends_lib       lib:libgd:gd2 \
                  lib:libiconv:libiconv
configure.env     CFLAGS="-DS710_SERIAL_ALT_INTER_CHAR_TIMER_IMP -L${prefix}/lib" \
                  CPPFLAGS="-I${prefix}/include" \
                  LDFLAGS="-lz -liconv"
configure.args    --with-filedir=${prefix}/var/polar/s710/raw

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