[100386] trunk/dports/graphics/field3d

ryandesign at macports.org ryandesign at macports.org
Mon Dec 10 02:44:49 PST 2012


Revision: 100386
          https://trac.macports.org/changeset/100386
Author:   ryandesign at macports.org
Date:     2012-12-10 02:44:49 -0800 (Mon, 10 Dec 2012)
Log Message:
-----------
field3d: update to 1.3.2 (#36881); use github portgroup to simplify portfile and make livecheck work; license BSD; add modeline; disable silent rules; link with libboost_system-mt to fix build with boost 1.51; fix install_name of library; fix destroot on some systems (those with 64-bit kernel?)

Modified Paths:
--------------
    trunk/dports/graphics/field3d/Portfile
    trunk/dports/graphics/field3d/files/patch-BuildSupport.py

Modified: trunk/dports/graphics/field3d/Portfile
===================================================================
--- trunk/dports/graphics/field3d/Portfile	2012-12-10 10:37:39 UTC (rev 100385)
+++ trunk/dports/graphics/field3d/Portfile	2012-12-10 10:44:49 UTC (rev 100386)
@@ -1,12 +1,15 @@
+# -*- 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
 # $Id$
 
 PortSystem 1.0
+PortGroup               github 1.0
 
+github.setup            imageworks Field3D 1.3.2 v
 name                    field3d
-version                 1.2.0
-revision                1
 categories              graphics
 maintainers             blair
+license                 BSD
+
 description             Library for storing voxel data.
 long_description \
         Field3D is an open source library for storing voxel data.  It \
@@ -22,9 +25,11 @@
         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}
 platforms               darwin
 
+checksums               rmd160  cf86b30f1bb7a8ac9eb0ce441ce86b1c8e35a020 \
+                        sha256  b3d6d2cb71a9ad21ac81f96dec0a796434c8897f054ba1e1b138d3b7e3ab655b
+
 depends_build           port:scons
 depends_lib             port:boost \
                         port:ilmbase \
@@ -32,14 +37,6 @@
 
 variant universal {}
 
-checksums               md5 e77d4f6e455860291f8e0e0ce547aa50 \
-                        sha1 1bbd1c7cadca96d5f0d58f3f2a27241d481e205f \
-                        rmd160 89279bbc9906ed7df6052169fb9239f87a2b8cd9
-
-post-extract {
-    move [glob ${workpath}/*] ${worksrcpath}
-}
-
 patchfiles              patch-BuildSupport.py \
                         patch-SConstruct
 
@@ -54,19 +51,24 @@
 use_configure           no
 build.cmd               $prefix/bin/scons
 build.target
+build.args              verbose=1
 
+post-build {
+    set releasedir [glob ${worksrcpath}/install/darwin/*/release]
+    set dylib lib/libField3D.dylib
+    system "install_name_tool -id ${prefix}/${dylib} ${releasedir}/${dylib}"
+}
+
 destroot {
     set sharedir ${destroot}${prefix}/share
     set docdir ${sharedir}/doc/${name}
+    set releasedir [glob ${worksrcpath}/install/darwin/*/release]
 
-    set releasedir ${worksrcpath}/install/darwin/m32/release
-
-    foreach f {include/Field3D lib/libField3D.a lib/libField3D.dylib} {
-        file copy ${releasedir}/${f} ${destroot}${prefix}/${f}
+    foreach d {include lib} {
+        delete ${destroot}${prefix}/${d}
+        copy ${releasedir}/${d} ${destroot}${prefix}
     }
 
     xinstall -m 755 -d ${docdir}
-    foreach f {CHANGES COPYING README} {
-        file copy ${worksrcpath}/$f ${docdir}
-    }
+    xinstall -m 644 -W ${worksrcpath} CHANGES COPYING README ${docdir}
 }

Modified: trunk/dports/graphics/field3d/files/patch-BuildSupport.py
===================================================================
--- trunk/dports/graphics/field3d/files/patch-BuildSupport.py	2012-12-10 10:37:39 UTC (rev 100385)
+++ trunk/dports/graphics/field3d/files/patch-BuildSupport.py	2012-12-10 10:44:49 UTC (rev 100386)
@@ -1,5 +1,5 @@
---- BuildSupport.py.FCS	2010-11-12 09:35:52.000000000 -0800
-+++ BuildSupport.py	2011-08-09 10:06:05.000000000 -0700
+--- BuildSupport.py.orig	2012-02-04 11:37:22.000000000 -0600
++++ BuildSupport.py	2012-11-04 05:02:45.000000000 -0600
 @@ -70,19 +70,15 @@
  # ------------------------------------------------------------------------------
  
@@ -24,12 +24,16 @@
      "linux2" : { arch32 : ["/usr/local/lib"],
                   arch64 : ["/usr/local64/lib"]}
  }
-@@ -213,17 +209,10 @@
+@@ -214,6 +210,8 @@
+         env.Append(LIBS = [Site.boostThreadLib])
+     else:
+         env.Append(LIBS = ["boost_thread-mt"])
++    # Boost system
++    env.Append(LIBS = ["boost_system-mt"])
+     # Compile flags
      if isDebugBuild():
          env.Append(CCFLAGS = ["-g"])
-     else:
--        env.Append(CCFLAGS = ["-O3"])
-+        env.Append(CCFLAGS = ["-g", "-O3"])
+@@ -222,13 +220,6 @@
      env.Append(CCFLAGS = ["-Wall"])
      # Set number of jobs to use
      env.SetOption('num_jobs', numCPUs())
@@ -40,6 +44,6 @@
 -    else:
 -        env.Append(CCFLAGS = ["-m32"])
 -        env.Append(LINKFLAGS = ["-m32"])
- 
- # ------------------------------------------------------------------------------
- 
+     # Prettify SCons output
+     if ARGUMENTS.get("verbose", 0) != "1":
+         env["ARCOMSTR"] = "AR $TARGET"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121210/dcc41378/attachment.html>


More information about the macports-changes mailing list