# -*- 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
github.setup openscenegraph OpenSceneGraph 3.6.4 OpenSceneGraph-
conflicts OpenSceneGraph-devel
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 \
homepage http://www.openscenegraph.org/
checksums rmd160 638ce92d43c94d3f36c926fe0471949f86adfe51 \
sha256 f9d0dfeb79c2febcef591434ed7a73ed7bff124a18b02a5397e88200042fb7f5 \
# respect MacPors compiler flags
# see https://trac.macports.org/ticket/45287
patchfiles-append patch-CMakeLists.txt.diff
depends_build-append port:pkgconfig
path:lib/libavcodec.dylib:ffmpeg \
port:gstreamer1-gst-plugins-base \
compiler.cxx_standard 2011
configure.args-append -DOSG_CONFIG_HAS_BEEN_RUN_BEFORE=YES \
-DOSG_DEFAULT_IMAGE_PLUGIN_FOR_OSX=imageio \
-DOSG_WINDOWING_SYSTEM=Cocoa \
# disable unwanted optional dependencies to avoid opportunistic configuration
# TODO: add some of these back either directly or as variants after testing
configure.args-append -DCMAKE_DISABLE_FIND_PACKAGE_Asio=1 \
-DCMAKE_DISABLE_FIND_PACKAGE_COLLADA=1 \
-DCMAKE_DISABLE_FIND_PACKAGE_DirectInput=1 \
-DCMAKE_DISABLE_FIND_PACKAGE_Inventor=1 \
-DCMAKE_DISABLE_FIND_PACKAGE_FBX=1 \
-DCMAKE_DISABLE_FIND_PACKAGE_GTA=1 \
-DCMAKE_DISABLE_FIND_PACKAGE_GtkGl=1 \
-DCMAKE_DISABLE_FIND_PACKAGE_LIBLAS=1 \
-DCMAKE_DISABLE_FIND_PACKAGE_LibVNCServer=1 \
-DCMAKE_DISABLE_FIND_PACKAGE_OpenCascade=1 \
-DCMAKE_DISABLE_FIND_PACKAGE_OpenVRML=1 \
-DCMAKE_DISABLE_FIND_PACKAGE_SDL2=1 \
-DCMAKE_DISABLE_FIND_PACKAGE_SDL=1 \
-DCMAKE_DISABLE_FIND_PACKAGE_NVTT=1 \
-DCMAKE_DISABLE_FIND_PACKAGE_ZeroConf=1
github.livecheck.regex {(\d+(?:\.\d+)+)}