Port update needs commit

Simon Ruderich simon at ruderich.org
Sat Nov 22 05:44:27 PST 2008


On Fri, Nov 21, 2008 at 04:01:15PM -0700, Bryan Blackburn wrote:
> Perhaps Simon was referring to just the bit in your comment about "It might
> be useful to factor out the version of the gc lib into its own variable (in
> a separate commit)."?  At least I hope so, since the "Port Updates"
> milestone in trac is meant for exactly what your new patch does.

Yes, I was referring to this sentence.

> Note that the current version, 1.46, builds fine here, and my personal
> policy is that I won't commit something if I can't at least verify it
> succeeds through the destroot phase.  It would appear this issue has been
> fixed at least in svn though:
>
> <https://sourceforge.net/tracker2/?func=detail&aid=2262140&group_id=120000&atid=685683>
>
> If the patch can be found, we could always apply it to 1.51, or wait until
> 1.52.
>
> Bryan

I tried to extract the patch from SVN and attached it to this mail. It builds
fine for me on 10.4 but could you please test if it works on Leopard?

Thanks,
Simon
-- 
+ privacy is necessary
+ using http://gnupg.org
+ public key id: 0x6115F804EFB33229
-------------- next part --------------
--- a/dports/graphics/asymptote/Portfile
+++ b/dports/graphics/asymptote/Portfile
@@ -34,6 +34,9 @@ post-extract {
   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"
--- /dev/null
+++ b/dports/graphics/asymptote/files/patch-leopard.diff
@@ -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 --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macports-dev/attachments/20081122/79cb7a89/attachment.bin>


More information about the macports-dev mailing list