[47381] trunk/dports/graphics/glut
jeremyhu at macports.org
jeremyhu at macports.org
Fri Feb 27 12:56:16 PST 2009
Revision: 47381
http://trac.macports.org/changeset/47381
Author: jeremyhu at macports.org
Date: 2009-02-27 12:56:15 -0800 (Fri, 27 Feb 2009)
Log Message:
-----------
glut: Now just a stub. glut is in mesa
Modified Paths:
--------------
trunk/dports/graphics/glut/Portfile
Removed Paths:
-------------
trunk/dports/graphics/glut/files/
Modified: trunk/dports/graphics/glut/Portfile
===================================================================
--- trunk/dports/graphics/glut/Portfile 2009-02-27 20:55:52 UTC (rev 47380)
+++ trunk/dports/graphics/glut/Portfile 2009-02-27 20:56:15 UTC (rev 47381)
@@ -5,68 +5,23 @@
name glut
version 3.7
-revision 2
+revision 3
maintainers nomaintainer
categories graphics x11
platforms darwin
master_sites http://www.opengl.org/resources/libraries/glut/
homepage http://www.opengl.org/resources/libraries/glut.html
-description The OpenGL Utility Toolkit (GLUT)
+description stub package. glut is now installed with the mesa port
+long_description ${description}
-long_description An indispensible toolkit for OpenGL programmers, \
- this provides many of the windowing and input \
- management primitives that OpenGL itself does not \
- deal with.
-
-checksums md5 dc932666e2a1c8a0b148a4c32d111ef3 \
- sha1 4d88591992c15547001c30d5b6d840f672720a5a \
- rmd160 22171d7b035858522ef79a00dcc664c858ca86a3
-
-patchfiles patch-glutbitmap.h \
- patch-round_cap.c \
- patch-segment.c
-
-depends_lib port:xorg-libs
-depends_build port:imake
-universal_variant no
-
-configure {
- # 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"
+fetch { }
+checksum { }
+extract { }
+patch { }
+build { }
+destroot {
+ xinstall -d ${destroot}${prefix}/share/doc/${name}
+ system "echo ${long_description} > ${destroot}${prefix}/share/doc/${name}/README.txt"
}
-
-pre-build {
- system "cp ${worksrcpath}/include/GL/glut.h ${worksrcpath}/lib/glut"
-}
-
-build {
- system "cd ${worksrcpath}/lib/glut && xmkmf && make"
- system "cd ${worksrcpath}/lib/glut && /usr/bin/c++ -dynamiclib -o libglut.3.7.dylib -install_name ${prefix}/lib/libglut.3.dylib -compatibility_version 3.7 -current_version 3.7 -all_load libglut.a -L${x11prefix}/lib -lGL -lGLU -lX11 -lXmu -lXi -lXext -lXt -lICE -lSM"
-}
-
-destroot {
- 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
-}
-
-pre-extract {
- if {"darwin" == ${os.platform} && 9 == ${os.major}} {
- set minimum_xcodeversion 3.1
- set current_xcodeversion [exec defaults read /Developer/Applications/Xcode.app/Contents/Info CFBundleShortVersionString]
- if {[rpm-vercomp ${current_xcodeversion} ${minimum_xcodeversion}] < 0} {
- ui_msg "On Mac OS X ${macosx_version}, ${name} ${version} requires Xcode ${minimum_xcodeversion} or later but you have Xcode ${current_xcodeversion}."
- return -code error "incompatible Xcode version"
- }
- }
-}
-
-livecheck.check regex
-livecheck.url ${master_sites}
-livecheck.regex {current source code distribution is GLUT (\d+(?:\.\d+)*)}
+use_configure no
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090227/10bcdec8/attachment-0001.html>
More information about the macports-changes
mailing list