# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem        1.0
PortGroup         cmake 1.1
PortGroup         boost 1.0

name              playerstage-player
version           3.0.2
revision          9
categories        science
platforms         darwin
maintainers       nomaintainer
description       Player/Stage robotic platform
long_description  The Player Project creates Free Software\
				  that enables research in robot and sensor\
				  systems. The Player robot server is probably\
				  the most widely used robot control interface\
				  in the world. Its simulation backends, \
				  Stage and Gazebo, are also very widely used.

homepage          http://playerstage.sourceforge.net
master_sites      sourceforge:playerstage

distname player-${version}

checksums         md5     b92b5ea028e6bfc49351849f420167db \
                  sha1    34931ca57148db01202afd08fdc647cc5fdc884c \
                  rmd160  f77444bfeee5a0494165ed6a65dd69b3a01bb260

depends_build-append    port:libtool port:pkgconfig

depends_lib     path:lib/pkgconfig/gtk+-2.0.pc:gtk2 \
                port:libpng \
                path:lib/pkgconfig/glib-2.0.pc:glib2 \
                port:gsl \
                port:python27 \
                port:swig-python \
                port:swig-ruby \
                path:include/turbojpeg.h:libjpeg-turbo \
                port:libusb-compat

# Some of the utils can't find the boost headers...
patchfiles      patch-CMakeLists.txt
post-patch {
    reinplace "s|@PREFIX@|${prefix}|g" \
        ${worksrcpath}/utils/playerjoy/CMakeLists.txt \
        ${worksrcpath}/utils/playerprint/CMakeLists.txt \
        ${worksrcpath}/utils/playerprop/CMakeLists.txt
}

# make sure we use python27
configure.args-append -DPython_ADDITIONAL_VERSIONS=2.7

use_parallel_build  no
