# -*- 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
# $Id: Portfile 75676 2011-02-04 01:58:32Z ryandesign@macports.org $

PortSystem              1.0

name                    peekabot-server
version                 0.8.4
categories              science devel
maintainers             gimaker.se:staffan \
                        openmaintainer
description             The peekabot visualization server
long_description        peekabot is a distributed real-time 3D visualization \
                        tool for robotics researchers and developers written \
                        in C++. Its purpose is to simplify the visualization \
                        needs faced by roboticists daily.
homepage                http://www.peekabot.org/
platforms               darwin
distname                peekabot-${version}
dist_subdir             peekabot
master_sites            sourceforge:peekabot
use_bzip2               yes
use_parallel_build      yes

checksums               ${distfiles} \
                        sha1    418a38978bf8ebf4d8d7eb518dbcea9a01887217 \
                        rmd160  45c7b659c87ca361e2a1f28537a041bd04c9422b

depends_lib             port:boost \
                        port:xercesc3 \
                        port:gtkmm \
                        port:gtkglextmm \
                        port:freetype

depends_build           port:pkgconfig

configure.args          --disable-client-lib

# Catch errors trying to load the gtk-directory stock icon for use as the
# icon for group objects. Instead of terminating on an uncaught exception,
# this leaves the icon used for groups blank.
#
# This problem is present when the hicolor-icon-theme is used, but not when
# e.g. the gnome-icon-theme is used.
patchfiles-append       patch-group-icon.diff

# Rendering to pixmaps seems to be broken with XQuartz; patch the sources
# to use FBOs to render screenshots rather than using pixmaps.
patch_sites             http://svn.macports.org/repository/macports/distfiles/peekabot
patchfiles-append       patch-fbo-screenshots.diff.bz2
checksums-append        patch-fbo-screenshots.diff.bz2 \
                        sha1    ca5a79092c7c52b8fdc1dadf0004173fe779a34f \
                        rmd160  8e74cfd86ed935cabbaca88fb109ce6abbf71d91
