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

mcalhoun at macports.org mcalhoun at macports.org
Sun Nov 23 21:03:54 PST 2008


Revision: 42560
          http://trac.macports.org/changeset/42560
Author:   mcalhoun at macports.org
Date:     2008-11-23 21:03:54 -0800 (Sun, 23 Nov 2008)
Log Message:
-----------
glut: imake is no longer included with XQuartz so use the MacPorts imake.
Supporting both imake systems was more trouble than it was worth.

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

Modified: trunk/dports/graphics/glut/Portfile
===================================================================
--- trunk/dports/graphics/glut/Portfile	2008-11-24 04:57:59 UTC (rev 42559)
+++ trunk/dports/graphics/glut/Portfile	2008-11-24 05:03:54 UTC (rev 42560)
@@ -17,9 +17,12 @@
 patchfiles	patch-glutbitmap.h patch-round_cap.c patch-segment.c
 
 depends_lib	lib:libGL.1:XFree86 lib:libX11.6:XFree86
+depends_build  port:imake
 
 configure {
-    system "cd ${worksrcpath} && ./mkmkfiles.imake"
+    # adapted from ${worksrcpath}/mkmkfiles.imake
+    system "cd ${worksrcpath} && mv -f Makefile Makefile.bak >& /dev/null"
+    system "cd ${worksrcpath} && ${prefix}/bin/imake -DUseInstalled -I${prefix}/lib/X11/config -DTOPDIR=. && make Makefiles && make SUBDIRS=man Makefiles && make depend"
 }
 
 pre-build {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20081123/493a415c/attachment.html>


More information about the macports-changes mailing list