[42561] trunk/dports/graphics/glut/Portfile

mcalhoun at macports.org mcalhoun at macports.org
Sun Nov 23 21:11:12 PST 2008


Revision: 42561
          http://trac.macports.org/changeset/42561
Author:   mcalhoun at macports.org
Date:     2008-11-23 21:11:12 -0800 (Sun, 23 Nov 2008)
Log Message:
-----------
glut: remove use of system in favor of Tcl.
Ensure that /usr/bin/ranlib is used.
Don't use full path in library link.

Modified Paths:
--------------
    trunk/dports/graphics/glut/Portfile

Modified: trunk/dports/graphics/glut/Portfile
===================================================================
--- trunk/dports/graphics/glut/Portfile	2008-11-24 05:03:54 UTC (rev 42560)
+++ trunk/dports/graphics/glut/Portfile	2008-11-24 05:11:12 UTC (rev 42561)
@@ -35,14 +35,13 @@
 }
 
 destroot {
-	file mkdir ${destroot}${prefix}/include/GL
-	file mkdir ${destroot}${prefix}/lib
-	system "install -m 644 -c ${worksrcpath}/include/GL/glut.h ${destroot}${prefix}/include/GL"
-	system "install -m 644 -c ${worksrcpath}/lib/glut/libglut.a ${destroot}${prefix}/lib"
-	system "ranlib ${destroot}${prefix}/lib/libglut.a"
-	system "install -m 644 -c ${worksrcpath}/lib/glut/libglut.3.7.dylib ${destroot}${prefix}/lib"
-	system "ln -fs ${prefix}/lib/libglut.3.7.dylib ${destroot}${prefix}/lib/libglut.3.dylib"
-	system "ln -fs ${prefix}/lib/libglut.3.7.dylib ${destroot}${prefix}/lib/libglut.dylib"
+	xinstall -d -m 755 ${destroot}${prefix}/include/GL
+	xinstall -m 644 -c ${worksrcpath}/include/GL/glut.h ${destroot}${prefix}/include/GL
+	xinstall -m 644 -c ${worksrcpath}/lib/glut/libglut.a ${destroot}${prefix}/lib
+	system "/usr/bin/ranlib ${destroot}${prefix}/lib/libglut.a"
+	xinstall -m 644 -c ${worksrcpath}/lib/glut/libglut.3.7.dylib ${destroot}${prefix}/lib
+	ln -s libglut.3.7.dylib ${destroot}${prefix}/lib/libglut.3.dylib
+	ln -s libglut.3.7.dylib ${destroot}${prefix}/lib/libglut.dylib
 }
 
 platform darwin 9 {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20081123/2776643f/attachment-0001.html>


More information about the macports-changes mailing list