# -*- 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 OpenSceneGraph version 2.8.4 set inconvenient_version [strsed ${version} {/\.0$//}] maintainers nomaintainer license wxWidgets-3 platforms darwin categories graphics homepage http://www.openscenegraph.org/ master_sites ${homepage}downloads/stable_releases/${name}-${inconvenient_version}/source use_zip yes use_parallel_build yes description high-performance 3D graphics toolkit long_description ${name} is a high-performance 3D graphics toolkit \ useful in fields such as visual simulation, games, \ virtual reality, scientific visualization and modelling checksums sha1 356ecd39f7e714dabb6776e23303fe3f1798a7cf \ rmd160 ffb48efc2b9a28f7049923abd1814dd930e1f47c patchfiles patch-CMakeLists.txt.diff depends_build port:cmake depends_lib port:freetype \ port:gdal configure.cmd cmake configure.pre_args -DCMAKE_INSTALL_PREFIX=${prefix} configure.args -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_NAME_DIR=${prefix}/lib platform darwin { if {${os.major} < 9} { configure.args-append -DDEFAULT_GLU_TESS_CALLBACK_TRIPLEDOT=ON } } 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.version ${inconvenient_version} livecheck.type regex livecheck.url ${homepage}downloads/stable_releases/ livecheck.regex ${name}-(\[0-9.\]+)/