# $Id: Portfile 79851 2011-06-28 05:06:22Z ryandesign@macports.org $

PortSystem        1.0
PortGroup         cmake 1.0
PortGroup         archcheck 1.0

name              playerstage-stage
version           3.2.2
revision          3
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                Stage-${version}-Source

checksums               md5     ca93c7c9746354679829092640c49ec6 \
                        sha1    783e16c179c76a65b64ad352c500f8ef6f3f1f2c \
                        rmd160  c0143cbcb5365110f7990fee27c3537cdad3a433

depends_build-append    port:pkgconfig \
                        port:fltk

depends_lib             port:playerstage-player \
                        port:libtool \
                        port:libpng \
                        port:jpeg

archcheck.files         lib/libfltk.a \
                        lib/libplayercore.dylib \
                        lib/libltdl.dylib \
                        lib/libpng.dylib \
                        lib/libjpeg.dylib

# fltk is 32-bit only.
universal_variant       no
supported_archs         i386 ppc

post-build {
    reinplace "s|${configure.cc_archflags}||g" ${worksrcpath}/stage.pc
}
