# -*- 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$

PortSystem              1.0

name                    VirtualPlanetBuilder
version                 0.9.1
maintainers             ryandesign openmaintainer
license                 wxWidgets-3
platforms               darwin
categories              graphics
use_zip                 yes
homepage                http://www.openscenegraph.org/projects/VirtualPlanetBuilder
master_sites            ${homepage}/attachment/wiki/WikiStart/${distfiles}?format=raw&foo=
use_parallel_build      yes
worksrcdir              ${name}

description             terrain database creation tool

long_description        ${name} is a terrain database creation tool that can \
                        read a wide range of geospatial imagery and elevation \
                        data and scales from small-area terrain databases to \
                        massive whole-planet paged databases. These databases \
                        can be uploaded to the Internet to provide online \
                        GoogleEarth-style roaming of whole-planet databases, \
                        or kept on local disks for high-speed access for \
                        professional flight simulator applications.

checksums               md5     e084fec6150c31b01412dfb4d2a9959f \
                        sha1    632e352f53b9c62a3df733e507aae5286b673840 \
                        rmd160  ccf764c679c36cb4ae4cd3f2e1efeeac3074dcaa

patchfiles              patch-CMakeLists.txt.diff

depends_build           port:cmake

depends_lib             port:OpenSceneGraph

configure.cmd           cmake
configure.pre_args      -DCMAKE_INSTALL_PREFIX=${prefix}
configure.args          -DCMAKE_BUILD_TYPE=Release \
                        -DBUILD_APPLICATIONS=OFF

universal_variant       no
# patch-CMakeLists.txt.diff removes the built-in universal support. We need a
# MacPorts-controlled universal build, but this universal variant is untested.
#variant universal {
#    configure.args-append   -DCMAKE_OSX_ARCHITECTURES="${configure.universal_archs}" \
#                            -DCMAKE_CXX_FLAGS="${configure.universal_cxxflags}"
#}

livecheck.type          regex
livecheck.url           http://www.openscenegraph.org/svn/VirtualPlanetBuilder/tags/
livecheck.regex         ${name}-(\[0-9.\]+)/