| 1 | # -*- 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 |
|---|
| 2 | # $Id$ |
|---|
| 3 | |
|---|
| 4 | PortSystem 1.0 |
|---|
| 5 | PortGroup cmake 1.0 |
|---|
| 6 | |
|---|
| 7 | name h3dviewer |
|---|
| 8 | version 2.2.0 |
|---|
| 9 | categories graphics |
|---|
| 10 | platforms darwin |
|---|
| 11 | license GPL |
|---|
| 12 | maintainers support\ |
|---|
| 13 | sensegraphics.com:support |
|---|
| 14 | description X3D browser based on H3DAPI. |
|---|
| 15 | long_description X3D browser with custom extensions for haptics and medical simulation. |
|---|
| 16 | |
|---|
| 17 | homepage http://www.h3dapi.org |
|---|
| 18 | master_sites ftp://www.h3dapi.org/pub/releases/source |
|---|
| 19 | |
|---|
| 20 | checksums rmd160 d0bd9ec0a79ffa1a43bd52809d76cbb80eaf1dbd \ |
|---|
| 21 | sha256 c145cd3e8b902ed2d456c06e08d7af96dc490665387bc99934061510f661b4db |
|---|
| 22 | |
|---|
| 23 | distfiles h3dapi-${version}${extract.suffix} |
|---|
| 24 | depends_lib port:h3dapi \ |
|---|
| 25 | port:h3dui \ |
|---|
| 26 | port:h3dmedx3d \ |
|---|
| 27 | port:h3dphysics \ |
|---|
| 28 | port:wxWidgets-devel |
|---|
| 29 | |
|---|
| 30 | worksrcdir h3dapi-${version}/H3DViewer/build |
|---|
| 31 | |
|---|
| 32 | configure.args -DOSX_BUNDLE_INSTALL_DESTINATION=${applications_dir} \ |
|---|
| 33 | -DCMAKE_PREFIX_PATH=${prefix} |
|---|
| 34 | |
|---|
| 35 | |
|---|
| 36 | post-activate { |
|---|
| 37 | file attributes ${applications_dir}/H3DViewer.app/Contents/Resources/H3DViewer.icns -permissions a+r |
|---|
| 38 | xinstall -d ${applications_dir}/H3DViewer.app/Contents/Resources/Plugins |
|---|
| 39 | xinstall /opt/local/lib/libh3dmedx3d.dylib ${applications_dir}//H3DViewer.app/Contents/Resources/Plugins |
|---|
| 40 | xinstall /opt/local/lib/libh3dui.dylib ${applications_dir}//H3DViewer.app/Contents/Resources/Plugins |
|---|
| 41 | xinstall /opt/local/lib/libh3dphysics.dylib ${applications_dir}//H3DViewer.app/Contents/Resources/Plugins |
|---|
| 42 | } |
|---|