[82168] trunk/dports/graphics
blair at macports.org
blair at macports.org
Tue Aug 9 10:16:31 PDT 2011
Revision: 82168
http://trac.macports.org/changeset/82168
Author: blair at macports.org
Date: 2011-08-09 10:16:30 -0700 (Tue, 09 Aug 2011)
Log Message:
-----------
field3d: new port.
Added Paths:
-----------
trunk/dports/graphics/field3d/
trunk/dports/graphics/field3d/Portfile
trunk/dports/graphics/field3d/files/
trunk/dports/graphics/field3d/files/patch-BuildSupport.py
trunk/dports/graphics/field3d/files/patch-SConstruct
Added: trunk/dports/graphics/field3d/Portfile
===================================================================
--- trunk/dports/graphics/field3d/Portfile (rev 0)
+++ trunk/dports/graphics/field3d/Portfile 2011-08-09 17:16:30 UTC (rev 82168)
@@ -0,0 +1,63 @@
+# $Id$
+
+PortSystem 1.0
+
+name field3d
+version 1.2.0
+categories graphics
+maintainers blair
+description Library for storing voxel data.
+long_description \
+ Field3D is an open source library for storing voxel data. It \
+ provides C++ classes that handle in-memory storage and a file \
+ format based on HDF5 that allows the C++ objects to be written \
+ to and read from disk. \
+ \
+ The library and file format is both flexible and extendable. \
+ The flexibility comes from supporting heterogeneous storage of \
+ data structures, bit depths, transformations/mappings and \
+ metadata in a single file. When functionality needs to be \
+ extended, the plugin and class factory architecture allows new \
+ data structures, mappings and file I/O routines to be added.
+
+homepage https://sites.google.com/site/field3d/home
+master_sites https://github.com/imageworks/Field3D/tarball/v${version}
+extract.mkdir yes
+extract.post_args "| tar --strip-components=1 -xf -"
+checksums md5 e77d4f6e455860291f8e0e0ce547aa50 \
+ sha1 1bbd1c7cadca96d5f0d58f3f2a27241d481e205f \
+ rmd160 89279bbc9906ed7df6052169fb9239f87a2b8cd9
+patchfiles patch-BuildSupport.py \
+ patch-SConstruct
+platforms darwin
+
+depends_build port:scons
+depends_lib port:boost \
+ port:ilmbase \
+ port:hdf5-18
+
+post-patch {
+ reinplace "s#@PREFIX@#$prefix#g" ${worksrcpath}/BuildSupport.py
+ reinplace "s#@CC@#${configure.cc}#" ${worksrcpath}/SConstruct
+ reinplace "s#@CXX@#${configure.cxx}#" ${worksrcpath}/SConstruct
+}
+
+use_configure no
+build.cmd $prefix/bin/scons
+build.target
+
+destroot {
+ set sharedir ${destroot}${prefix}/share
+ set docdir ${sharedir}/doc/${name}
+
+ set releasedir ${worksrcpath}/install/darwin/m32/release
+
+ foreach f {include/Field3D lib/libField3D.a lib/libField3D.dylib} {
+ file copy ${releasedir}/${f} ${destroot}${prefix}/${f}
+ }
+
+ xinstall -m 755 -d ${docdir}
+ foreach f {CHANGES COPYING README} {
+ file copy ${worksrcpath}/$f ${docdir}
+ }
+}
Property changes on: trunk/dports/graphics/field3d/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/graphics/field3d/files/patch-BuildSupport.py
===================================================================
--- trunk/dports/graphics/field3d/files/patch-BuildSupport.py (rev 0)
+++ trunk/dports/graphics/field3d/files/patch-BuildSupport.py 2011-08-09 17:16:30 UTC (rev 82168)
@@ -0,0 +1,45 @@
+--- BuildSupport.py.FCS 2010-11-12 09:35:52.000000000 -0800
++++ BuildSupport.py 2011-08-09 10:06:05.000000000 -0700
+@@ -70,19 +70,15 @@
+ # ------------------------------------------------------------------------------
+
+ systemIncludePaths = {
+- "darwin" : { arch32 : ["/usr/local/include",
+- "/opt/local/include"],
+- arch64 : ["/usr/local/include",
+- "/opt/local/include"]},
++ "darwin" : { arch32 : ["@PREFIX@/include"],
++ arch64 : ["@PREFIX@/include"]},
+ "linux2" : { arch32 : ["/usr/local/include"],
+ arch64 : ["/usr/local64/include"]}
+ }
+
+ systemLibPaths = {
+- "darwin" : { arch32 : ["/usr/local/lib",
+- "/opt/local/lib"],
+- arch64 : ["/usr/local/lib",
+- "/opt/local/lib"]},
++ "darwin" : { arch32 : ["@PREFIX@/lib"],
++ arch64 : ["@PREFIX@/lib"]},
+ "linux2" : { arch32 : ["/usr/local/lib"],
+ arch64 : ["/usr/local64/lib"]}
+ }
+@@ -213,17 +209,10 @@
+ if isDebugBuild():
+ env.Append(CCFLAGS = ["-g"])
+ else:
+- env.Append(CCFLAGS = ["-O3"])
++ env.Append(CCFLAGS = ["-g", "-O3"])
+ env.Append(CCFLAGS = ["-Wall"])
+ # Set number of jobs to use
+ env.SetOption('num_jobs', numCPUs())
+- # 64 bit setup
+- if architectureStr() == arch64:
+- env.Append(CCFLAGS = ["-m64"])
+- env.Append(LINKFLAGS = ["-m64"])
+- else:
+- env.Append(CCFLAGS = ["-m32"])
+- env.Append(LINKFLAGS = ["-m32"])
+
+ # ------------------------------------------------------------------------------
+
Added: trunk/dports/graphics/field3d/files/patch-SConstruct
===================================================================
--- trunk/dports/graphics/field3d/files/patch-SConstruct (rev 0)
+++ trunk/dports/graphics/field3d/files/patch-SConstruct 2011-08-09 17:16:30 UTC (rev 82168)
@@ -0,0 +1,12 @@
+--- SConstruct.FCS 2010-11-12 09:35:52.000000000 -0800
++++ SConstruct 2011-08-09 09:43:20.000000000 -0700
+@@ -38,6 +38,9 @@
+
+ env = Environment()
+
++env.Replace(CC = "@CC@")
++env.Replace(CXX = "@CXX@")
++
+ Export("env")
+
+ SConscript("SConscript")
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110809/befc2a1f/attachment.html>
More information about the macports-changes
mailing list