[42507] trunk/dports/graphics/asymptote

blb at macports.org blb at macports.org
Sat Nov 22 16:47:44 PST 2008


Revision: 42507
          http://trac.macports.org/changeset/42507
Author:   blb at macports.org
Date:     2008-11-22 16:47:44 -0800 (Sat, 22 Nov 2008)
Log Message:
-----------
graphics/asymptote - version bump to 1.51, ticket #13249 and email at
<http://lists.macosforge.org/pipermail/macports-dev/2008-November/006431.html>

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

Added Paths:
-----------
    trunk/dports/graphics/asymptote/files/
    trunk/dports/graphics/asymptote/files/patch-leopard.diff

Modified: trunk/dports/graphics/asymptote/Portfile
===================================================================
--- trunk/dports/graphics/asymptote/Portfile	2008-11-23 00:40:04 UTC (rev 42506)
+++ trunk/dports/graphics/asymptote/Portfile	2008-11-23 00:47:44 UTC (rev 42507)
@@ -3,7 +3,7 @@
 PortSystem	1.0
 
 name		asymptote
-version		1.46
+version		1.51
 categories	graphics
 maintainers	loshea at gmail.com
 description	a vector graphics language
@@ -19,7 +19,7 @@
 distfiles	${distname}.src.tgz:main gc-7.1.tar.gz:gc
 master_sites	sourceforge::main \
   http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source:gc
-checksums	${distname}.src.tgz md5 d182add9e5fb8dc9a764f0bb5845a6b6 \
+checksums	${distname}.src.tgz md5 14c7bfd713adb3d2b70a202228bb7d8d \
 		gc-7.1.tar.gz          md5 2ff9924c7249ef7f736ecfe6f08f3f9b
 depends_lib	port:readline \
                 port:texlive \
@@ -34,6 +34,9 @@
   file copy ${distpath}/gc-7.1.tar.gz ${worksrcpath}
 }
 
+# Already fixed upstream, can be removed after next version.
+patchfiles-append patch-leopard.diff
+
 post-activate {
   # run `mktexlsr` to make sure the asymptote files are found:
   system "mktexlsr"

Added: trunk/dports/graphics/asymptote/files/patch-leopard.diff
===================================================================
--- trunk/dports/graphics/asymptote/files/patch-leopard.diff	                        (rev 0)
+++ trunk/dports/graphics/asymptote/files/patch-leopard.diff	2008-11-23 00:47:44 UTC (rev 42507)
@@ -0,0 +1,34 @@
+--- glrender.h	2008-11-22 14:08:09.000000000 +0100
++++ glrender.h	2008-11-22 14:15:34.000000000 +0100
+@@ -15,8 +15,12 @@
+ #include <OpenGL/glext.h>
+ #include <OpenGL/glu.h>
+ #include <GLUT/glut.h>
++#ifdef GLU_TESS_CALLBACK_TRIPLEDOT
+ typedef GLvoid (* _GLUfuncptr)(...);
+ #else
++typedef GLvoid (* _GLUfuncptr)();
++#endif
++#else
+ #include <GL/gl.h>
+ #include <GL/glext.h>
+ #include <GL/glu.h>
+--- configure.ac	2008/11/18 17:46:00	3757
++++ configure.ac	2008/11/18 20:46:51	3758
+@@ -213,6 +213,16 @@
+      darwin*) AC_CHECK_HEADER(GLUT/glut.h,
+                                 [AC_DEFINE(HAVE_LIBGLUT, 1,
+ 		   [Define if you have the `glut' library (-lglut).])
++AC_COMPILE_IFELSE(AC_LANG_PROGRAM([
++#include <OpenGL/gl.h>
++#include <OpenGL/glu.h>
++#ifndef GLU_TESS_CALLBACK_TRIPLEDOT
++typedef GLvoid (* _GLUfuncptr)(...);
++void f(void) {
++  gluNurbsCallback(gluNewNurbsRenderer(),GLU_NURBS_BEGIN,(_GLUfuncptr) glBegin);
++}
++#endif
++]),[AC_DEFINE(GLU_TESS_CALLBACK_TRIPLEDOT, 1, [Define if gluNurbsCallback expects a variadic function.])])
+ 			   LIBS=$LIBS"-framework GLUT -framework OpenGL -framework Cocoa"],
+ 				 AC_MSG_NOTICE([*** Could not find glut: will compile without OpenGL support ***]));;
+      *) AC_CHECK_LIB([glut], [glutMainLoop],,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20081122/410e39f3/attachment.html>


More information about the macports-changes mailing list