source: trunk/dports/graphics/field3d/Portfile

Last change on this file was 148894, checked in by mcalhoun@…, 18 months ago

openexr, ilmbase: update version to 2.2.0
revbump dependencies since library name changes
homepage states that new features "should be available to applications without code modifications"
merge openexr and ilmbase into one Portfile since versions now seem linked
fixes #44620, #44619, #49965, and #49966; maintainer timeout

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
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: Portfile 148894 2016-05-22 14:26:15Z ryandesign@macports.org $
3
4PortSystem 1.0
5PortGroup               github 1.0
6
7github.setup            imageworks Field3D 1.3.2 v
8name                    field3d
9revision                10
10categories              graphics
11maintainers             blair
12license                 BSD
13
14description             Library for storing voxel data.
15long_description \
16        Field3D is an open source library for storing voxel data.  It \
17        provides C++ classes that handle in-memory storage and a file \
18        format based on HDF5 that allows the C++ objects to be written \
19        to and read from disk. \
20        \
21        The library and file format is both flexible and extendable. \
22        The flexibility comes from supporting heterogeneous storage of \
23        data structures, bit depths, transformations/mappings and \
24        metadata in a single file.  When functionality needs to be \
25        extended, the plugin and class factory architecture allows new \
26        data structures, mappings and file I/O routines to be added.
27
28homepage                https://sites.google.com/site/field3d/home
29platforms               darwin
30
31checksums               rmd160  cf86b30f1bb7a8ac9eb0ce441ce86b1c8e35a020 \
32                        sha256  b3d6d2cb71a9ad21ac81f96dec0a796434c8897f054ba1e1b138d3b7e3ab655b
33
34depends_build           port:scons
35depends_lib             port:boost \
36                        port:ilmbase \
37                        port:hdf5
38
39variant universal {}
40
41patchfiles              patch-BuildSupport.py \
42                        patch-SConstruct
43
44post-patch {
45    reinplace "s#@PREFIX@#${prefix}#g" ${worksrcpath}/BuildSupport.py
46    reinplace "s#@CC@#${configure.cc} [get_canonical_archflags]#" \
47        ${worksrcpath}/SConstruct
48    reinplace "s#@CXX@#${configure.cxx} [get_canonical_archflags]#" \
49        ${worksrcpath}/SConstruct
50}
51
52use_configure           no
53build.cmd               $prefix/bin/scons
54build.target
55build.args              verbose=1
56
57post-build {
58    set releasedir [glob ${worksrcpath}/install/darwin/*/release]
59    set dylib lib/libField3D.dylib
60    system "install_name_tool -id ${prefix}/${dylib} ${releasedir}/${dylib}"
61}
62
63destroot {
64    set sharedir ${destroot}${prefix}/share
65    set docdir ${sharedir}/doc/${name}
66    set releasedir [glob ${worksrcpath}/install/darwin/*/release]
67
68    foreach d {include lib} {
69        delete ${destroot}${prefix}/${d}
70        copy ${releasedir}/${d} ${destroot}${prefix}
71    }
72
73    xinstall -m 755 -d ${docdir}
74    xinstall -m 644 -W ${worksrcpath} CHANGES COPYING README ${docdir}
75}
Note: See TracBrowser for help on using the repository browser.