[101505] trunk/dports/graphics

blair at macports.org blair at macports.org
Fri Jan 11 20:35:57 PST 2013


Revision: 101505
          https://trac.macports.org/changeset/101505
Author:   blair at macports.org
Date:     2013-01-11 20:35:57 -0800 (Fri, 11 Jan 2013)
Log Message:
-----------
cg-toolkit: new port for installing NVIDIA's Cg Toolkit.

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

Added: trunk/dports/graphics/cg-toolkit/Portfile
===================================================================
--- trunk/dports/graphics/cg-toolkit/Portfile	                        (rev 0)
+++ trunk/dports/graphics/cg-toolkit/Portfile	2013-01-12 04:35:57 UTC (rev 101505)
@@ -0,0 +1,50 @@
+# $Id$
+
+PortSystem 1.0
+
+name            cg-toolkit
+version         3.1.2012.04
+set branch      [join [lrange [split ${version} .] 0 1] .]
+set year        [lindex [split ${version} .] 2]
+categories      graphics
+license         Commerical
+maintainers     openmaintainer blair
+description     NVIDIA's Cg high-level shading language
+long_description \
+    Cg (short for C for Graphics) is a high-level shading language \
+    developed by Nvidia in close collaboration with Microsoft for \
+    programming vertex and pixel shaders.  It is very similar to \
+    Microsoft's HLSL.  Cg is based on the C programming language and \
+    although they share the same syntax, some features of C were \
+    modified and new data types were added to make Cg more suitable \
+    for programming graphics processing units.  This language is only \
+    suitable for GPU programming and is not a general programming \
+    language.  The Cg compiler outputs DirectX or OpenGL shader \
+    programs.
+
+homepage        https://developer.nvidia.com/cg-toolkit
+platforms       darwin
+supported_archs ppc i386 x86_64
+
+master_sites    http://developer.download.nvidia.com/cg/Cg_${branch}
+distname        Cg-${branch}_April${year}
+use_dmg         yes
+checksums       md5    9a8f7201f2b0149748814e012dff4aab \
+                sha1   106adb0926bc491012adc9cba1847b19a701c087 \
+                sha256 85c7a0de82252b703191fee5fe7b29f60d357924dc7b8ca59c2badeac7af407d
+
+use_configure   no
+build           {}
+
+destroot.violate_mtree  yes
+
+destroot {
+    set sharedir ${destroot}${prefix}/share/doc/${name}
+    set itemdir "${worksrcpath}/Cg-3.1.0013.app/Contents/Resources/Installer Items"
+    regsub -- {Installer Items} $itemdir {Installer\ Items} escaped_itemdir
+
+    xinstall -d -m 755 ${sharedir}
+    file copy ${itemdir}/License.rtf ${sharedir}
+    puts "$itemdir"
+    system "cd ${destroot} && /usr/bin/tar xfz ${escaped_itemdir}/NVIDIA_Cg.tgz"
+}


Property changes on: trunk/dports/graphics/cg-toolkit/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130111/64678273/attachment.html>


More information about the macports-changes mailing list