# $Id: Portfile 61643 2009-12-17 08:37:20Z ryandesign@macports.org $

PortSystem        1.0
PortGroup         cmake 1.0

name              playerstage-player
version           3.0.0
categories        science
platforms         darwin
maintainers       ai.sri.com:vincent
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     5beee8655754559d5b80d9fcfbd3dd69 \
                  sha1    5f24d7cd0565f98bf7a2615694304cf90e8fb679 \
                  rmd160  3a07213b51e8cc9ccd68a75c539a0fb9056b5127

depends_build   port:libtool port:pkgconfig

depends_lib     port:gtk2 \
                port:libpng \
                path:lib/pkgconfig/glib-2.0.pc:glib2 \
                port:boost \
                port:gsl \
                port:python26 \
                port:swig-python \
                port:swig-ruby
#               port:jpeg

# 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
}
