[101644] trunk/dports/graphics/cg-toolkit/Portfile

blair at macports.org blair at macports.org
Tue Jan 15 19:40:52 PST 2013


Revision: 101644
          https://trac.macports.org/changeset/101644
Author:   blair at macports.org
Date:     2013-01-15 19:40:52 -0800 (Tue, 15 Jan 2013)
Log Message:
-----------
cg-toolkit: delete files from Trace example to avoid rev-upgrade errors.

Could not open libtrace.dylib: Error opening or reading file (referenced from /Developer/NVIDIA/Cg/examples/Trace/Cg)

Modified Paths:
--------------
    trunk/dports/graphics/cg-toolkit/Portfile

Modified: trunk/dports/graphics/cg-toolkit/Portfile
===================================================================
--- trunk/dports/graphics/cg-toolkit/Portfile	2013-01-16 00:32:08 UTC (rev 101643)
+++ trunk/dports/graphics/cg-toolkit/Portfile	2013-01-16 03:40:52 UTC (rev 101644)
@@ -4,6 +4,7 @@
 
 name            cg-toolkit
 version         3.1.2012.04
+revision        1
 set branch      [join [lrange [split ${version} .] 0 1] .]
 set year        [lindex [split ${version} .] 2]
 categories      graphics
@@ -47,4 +48,11 @@
     file copy ${itemdir}/License.rtf ${sharedir}
     puts "$itemdir"
     system "cd ${destroot} && /usr/bin/tar xfz ${escaped_itemdir}/NVIDIA_Cg.tgz"
+
+    # Delete all compiled objects and libraries in the Trace example
+    # directory to avoid this MacPorts install error:
+    #   Could not open libtrace.dylib: Error opening or reading file
+    #   (referenced from /Developer/NVIDIA/Cg/examples/Trace/Cg)
+    # Developers needing the Trace example can build it themselves.
+    system "make -C ${destroot}/Developer/NVIDIA/Cg/examples/Trace clean"
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130115/86141921/attachment.html>


More information about the macports-changes mailing list