[OS X TeX] Building Asymptote with OpenGL support

Martin Costabel costabel at wanadoo.fr
Mon Oct 20 03:38:32 EDT 2008

N Shah wrote:
> Have any of you managed to build the new asymptote (1.46) with OpenGL 
> support?  

I have just upgraded the Fink asymptote package from 1.44 to 1.46, 
without problems. The relevant parts of the Fink package description are 
the following:

BuildDepends: readline5, libncurses5, fftw3, gc, gsl, freeglut, x11-dev
Depends: readline5-shlibs, libncurses5-shlibs, fftw3-shlibs, gc-shlibs, 
gsl-shlibs, tetex-base, movie15, freeglut-shlibs, x11, x11-shlibs

(These are names of Fink packages)

PatchScript: <<
  perl -pi -e 's|INCL = \-I \.|INCL = -I/usr/X11R6/include -I.|' Makefile.in

(This adds a missing include directory to the Makefile)

CompileScript: <<
  LDFLAGS='-L%p/lib -L/usr/X11R6/lib 
LIBS='-lGL -lGLU ' ./configure %c --mandir=%p/share/man 
--enable-gc=system --with-latex=%p/etc/texmf.local/tex/latex
  make all

(The part between "LDFLAGS=" and "tex/latex" is in one line.
  Here %p is the Fink prefix, usually "/sw", and %c corresponds to 
"--prefix=/sw". The "-Wl,-dylib_file..." flag is necessary to work 
around a bug in Leopard's stock /usr/bin/ld; if xcode-3.1 or later is 
installed, it is not necessary.)


More information about the MacOSX-TeX mailing list