[OS X TeX] Building Asymptote with OpenGL support
Martin Costabel
costabel at wanadoo.fr
Mon Oct 20 09:38:32 CEST 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
-Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib'
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.)
--
Martin
More information about the macostex-archives
mailing list