# -*- 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 PortGroup cmake 1.0 PortGroup wxWidgets 1.0 name h3dapi version 2.3.0 revision 1 categories graphics platforms darwin maintainers sensegraphics.com:support license GPL-2+ description Headers and libraries for H3DAPI development. long_description H3DAPI provides is a scenegraph based API with one \ unified scene graph to handle both graphics and haptics\ based on the X3D standard. subport h3dload { description Command line X3D browser based on H3DAPI. long_description X3D browser with custom extensions for haptics and medical simulation. } subport h3dviewer { description X3D browser based on H3DAPI. long_description X3D browser with custom extensions for haptics and medical simulation. } homepage http://www.h3dapi.org master_sites ftp://www.h3dapi.org/pub/releases/source checksums rmd160 ca60af0fcd89c309cd030ab509a640b28fd6b470 \ sha256 231104455feea6217c103ab0cbb2187e448000e6f02f9a1f2abb0161a13bbbd1 cmake.out_of_source yes patchfiles patch-CMakeLists.txt.diff \ patch-include-H3D-X3DParticleEmitterNode.h.diff if {${subport} eq ${name}} { depends_lib port:hapi \ port:glew \ port:xercesc3 \ port:ftgl \ port:libvorbis \ port:audiofile \ port:spidermonkey \ port:fontconfig configure.post_args \ ${worksrcpath}/build } elseif {${subport} eq "h3dload"} { depends_lib port:h3dapi configure.post_args \ ${worksrcpath}/H3DLoad/build } elseif {${subport} eq "h3dviewer"} { wxWidgets.use wxWidgets-3.0 depends_lib port:h3dapi \ port:h3dui \ port:h3dmedx3d \ port:h3dphysics \ port:${wxWidgets.port} configure.post_args \ ${worksrcpath}/H3DViewer/build configure.args -DOSX_BUNDLE_INSTALL_DESTINATION=${applications_dir} \ -DCMAKE_PREFIX_PATH=${prefix} \ -DwxWidgets_CONFIG_EXECUTABLE=${wxWidgets.wxconfig} post-destroot { file attributes ${destroot}${applications_dir}/H3DViewer.app/Contents/Resources/H3DViewer.icns -permissions a+r # TODO: this seems a bit weird (test if symlinks work as well) set plugin_dir ${destroot}${applications_dir}/H3DViewer.app/Contents/Resources/Plugins xinstall -d ${plugin_dir} foreach file { medx3d ui physics } { xinstall ${prefix}/lib/libh3d${file}.dylib ${plugin_dir} } } } livecheck.type regex livecheck.url ${master_sites}/ livecheck.regex h3dapi-(\[0-9.\]+)${extract.suffix}