Ticket #38926: Portfile

File Portfile, 1.7 KB (added by daniel.evestedt@…, 12 years ago)
Line 
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
4PortSystem          1.0
5PortGroup           cmake 1.0
6
7name                h3dviewer
8version             2.2.0
9categories          graphics
10platforms           darwin
11license             GPL
12maintainers         support\
13                    sensegraphics.com:support
14description         X3D browser based on H3DAPI.
15long_description    X3D browser with custom extensions for haptics and medical simulation.
16
17homepage            http://www.h3dapi.org
18master_sites        ftp://www.h3dapi.org/pub/releases/source
19
20checksums           rmd160  d0bd9ec0a79ffa1a43bd52809d76cbb80eaf1dbd \
21                    sha256  c145cd3e8b902ed2d456c06e08d7af96dc490665387bc99934061510f661b4db
22
23distfiles           h3dapi-${version}${extract.suffix}
24depends_lib         port:h3dapi \
25                    port:h3dui \
26                    port:h3dmedx3d \
27                    port:h3dphysics \
28                    port:wxWidgets-devel
29
30worksrcdir          h3dapi-${version}/H3DViewer/build
31
32configure.args      -DOSX_BUNDLE_INSTALL_DESTINATION=${applications_dir} \
33                    -DCMAKE_PREFIX_PATH=${prefix}
34
35
36post-activate { 
37 file attributes ${applications_dir}/H3DViewer.app/Contents/Resources/H3DViewer.icns -permissions a+r
38 xinstall -${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}