# $Id$ PortSystem 1.0 name OpenSceneGraph version 2.8.2 set inconvenient_version [strsed ${version} {/\.0$//}] maintainers ryandesign openmaintainer 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 md5 99d0b37f403b85b4559514b6b9849d9e \ sha1 f2f0a3285a022640345a81f536459f37f3f38d01 \ rmd160 3933b2395e36950c870f32db2fcddc7cc220e228 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 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.check regex livecheck.url ${homepage}downloads/stable_releases/ livecheck.regex ${name}-(\[0-9.\]+)/