| 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 | PortGroup wxWidgets 1.0 |
|---|
| 7 | |
|---|
| 8 | name h3dviewer |
|---|
| 9 | version 2.3.0 |
|---|
| 10 | categories graphics |
|---|
| 11 | platforms darwin |
|---|
| 12 | maintainers sensegraphics.com:support |
|---|
| 13 | license GPL-2+ |
|---|
| 14 | |
|---|
| 15 | description X3D browser based on H3DAPI. |
|---|
| 16 | |
|---|
| 17 | long_description X3D browser with custom extensions for haptics and medical simulation. |
|---|
| 18 | |
|---|
| 19 | homepage http://www.h3dapi.org |
|---|
| 20 | master_sites ftp://www.h3dapi.org/pub/releases/source |
|---|
| 21 | |
|---|
| 22 | checksums rmd160 ca60af0fcd89c309cd030ab509a640b28fd6b470 \ |
|---|
| 23 | sha256 231104455feea6217c103ab0cbb2187e448000e6f02f9a1f2abb0161a13bbbd1 |
|---|
| 24 | |
|---|
| 25 | distfiles h3dapi-${version}${extract.suffix} |
|---|
| 26 | |
|---|
| 27 | # make sure that the wx-config file from wxWidgets-3.0 is in the path |
|---|
| 28 | # during configure step so that is can be found by CMake. |
|---|
| 29 | wxWidgets.use wxWidgets-3.0 |
|---|
| 30 | configure.env-append PATH=${wxWidgets.wxdir}:$env(PATH) |
|---|
| 31 | |
|---|
| 32 | depends_lib port:h3dapi \ |
|---|
| 33 | port:h3dui \ |
|---|
| 34 | port:h3dmedx3d \ |
|---|
| 35 | port:h3dphysics \ |
|---|
| 36 | port:wxWidgets-3.0 |
|---|
| 37 | |
|---|
| 38 | worksrcdir h3dapi-${version}/H3DViewer/build |
|---|
| 39 | |
|---|
| 40 | configure.args -DOSX_BUNDLE_INSTALL_DESTINATION=${applications_dir} \ |
|---|
| 41 | -DCMAKE_PREFIX_PATH=${prefix} |
|---|
| 42 | |
|---|
| 43 | post-activate { |
|---|
| 44 | file attributes ${applications_dir}/H3DViewer.app/Contents/Resources/H3DViewer.icns -permissions a+r |
|---|
| 45 | xinstall -d ${applications_dir}/H3DViewer.app/Contents/Resources/Plugins |
|---|
| 46 | xinstall ${prefix}/lib/libh3dmedx3d.dylib ${applications_dir}//H3DViewer.app/Contents/Resources/Plugins |
|---|
| 47 | xinstall ${prefix}/lib/libh3dui.dylib ${applications_dir}//H3DViewer.app/Contents/Resources/Plugins |
|---|
| 48 | xinstall ${prefix}/lib/libh3dphysics.dylib ${applications_dir}//H3DViewer.app/Contents/Resources/Plugins |
|---|
| 49 | } |
|---|
| 50 | |
|---|
| 51 | patchfiles patch-CMakeLists.txt.diff |
|---|
| 52 | |
|---|
| 53 | livecheck.type regex |
|---|
| 54 | livecheck.url ${master_sites}/ |
|---|
| 55 | livecheck.regex h3dapi-(\[0-9.\]+)${extract.suffix} |
|---|
| 56 | |
|---|
| 57 | cmake.out_of_source yes |
|---|