[PATCH] math/asymptote-1.23 build broken on 6.2-Stable i386; also unsolved problems with AFPL Ghostscript integration

bf bf2006a at yahoo.com
Mon Mar 26 23:20:00 UTC 2007


Building WITH_GSL=yes on my machine, the first hunk of
the math/asymptote/files/patch-Makefile.in fails,
probably because of the 1.23 source Makefile.in's line
9, 

KEYWORDS = base $(ASYMPTOTE_SITEDIR)

which separates the EXTRA and LATEXFILES lines. 
However, the build succeeds if the following modified
patchfile is used in place of the existing one:

--- Makefile.in	Wed Dec 13 03:06:26 2006
+++ Makefile.in.port	Wed Dec 13 13:42:00 2006
@@ -22,9 +22,9 @@
 CLEAN = camp.output asy.list
 NAME = asy
 EXTRABIN = x$(NAME)
-EXTRA = asy-mode.el asy-keywords.el asy-init.el
asy.vim asymptote.py
+EXTRA = base/asy-mode.el base/asy-keywords.el
base/asy-init.el base/asy.vim base/asymptote.py
 KEYWORDS = base $(ASYMPTOTE_SITEDIR)
-LATEXFILES = asymptote.sty asycolors.sty
pdfanim_temp.sty
+LATEXFILES = doc/asymptote.sty doc/asycolors.sty
doc/pdfanim_temp.sty
 
 DEFS = @DEFS@ @OPTIONS@
 CFLAGS = @CPPFLAGS@ @CFLAGS@ 
@@ -44,7 +44,7 @@
 datadir = $(DESTDIR)@datadir@
 asydir = $(datadir)/asymptote
 docdir = $(DESTDIR)@docdir@
-exampledir = $(docdir)/examples
+exampledir = $(datadir)/examples/asymptote
 animationsdir = $(exampledir)/animations
 latexdir = $(DESTDIR)@latexdir@
 INSTALL = @INSTALL@
@@ -69,7 +69,7 @@
 	rm -f $(GC).tar
 	cd $(GC); \
 	./configure $(GCOPTIONS); \
-	$(MAKE) check
+	$(MAKE)
 
 html:	asy
 	cd doc; $(MAKE) doc
@@ -111,11 +111,11 @@
 	${INSTALL} -d $(bindir) $(asydir) $(exampledir)
$(animationsdir)
 	-${INSTALL} -d $(latexdir)
 	${INSTALL} -p -m 755 $(NAME) $(EXTRABIN) $(bindir)
-	${INSTALL} -p -m 644 base/*.asy $(addprefix
base/,$(EXTRA)) $(asydir)
+	${INSTALL} -p -m 644 base/*.asy $(EXTRA) $(asydir)
 	${INSTALL} -p -m 644 examples/*.asy
examples/piicon.eps \
 		doc/*.asy doc/*.csv doc/*.dat doc/latexusage.tex
$(exampledir)
 	${INSTALL} -p -m 644 examples/animations/*.asy
$(animationsdir)
-	-${INSTALL} -p -m 644 $(addprefix
doc/,$(LATEXFILES)) $(latexdir)
+	-${INSTALL} -p -m 644 $(LATEXFILES) $(latexdir)
 	-if test -z "$(DESTDIR)"; then \
 	  texhash; \
 	fi




Also, when generating the asymptote
documentation/examples, there are a great number of
errors of the form:

../asy -dir ../base -f png grid3xyz.asy
AFPL Ghostscript 8.54: Error: Font Renderer Plugin (
FreeType ) return code = -1
AFPL Ghostscript 8.54: Error: Font Renderer Plugin (
FreeType ) return code = -1
AFPL Ghostscript 8.54: Error: Font Renderer Plugin (
FreeType ) return code = -1
AFPL Ghostscript 8.54: Error: Font Renderer Plugin (
FreeType ) return code = -1
AFPL Ghostscript 8.54: Error: Font Renderer Plugin (
FreeType ) return code = -1
AFPL Ghostscript 8.54: Error: Font Renderer Plugin (
FreeType ) return code = -1
AFPL Ghostscript 8.54: Error: Font Renderer Plugin (
FreeType ) return code = -1
AFPL Ghostscript 8.54: Error: Font Renderer Plugin (
FreeType ) return code = -1
../asy -dir ../base -f png hatch.asy
../asy -dir ../base -f png helix.asy
AFPL Ghostscript 8.54: Error: Font Renderer Plugin (
FreeType ) return code = -1
AFPL Ghostscript 8.54: Error: Font Renderer Plugin (
FreeType ) return code = -1
AFPL Ghostscript 8.54: Error: Font Renderer Plugin (
FreeType ) return code = -1
AFPL Ghostscript 8.54: Error: Font Renderer Plugin (
FreeType ) return code = -1
AFPL Ghostscript 8.54: Error: Font Renderer Plugin (
FreeType ) return code = -1
AFPL Ghostscript 8.54: Error: Font Renderer Plugin (
FreeType ) return code = -1
../asy -dir ../base -f png histogram.asy


I've installed print/ghostscript-afpl-8.54_1,1
WITH_SVGALIB=yes WITH_SHLIB=yes WITH_FT_BRIDGE=yes,
and  I suspect the errors may be due to recent changes
in either the recently-patched WITH_FT_BRIDGE knob, or
recent changes in asymptote, because I have not
noticed any such problems in the past.

bf.


 
____________________________________________________________________________________
No need to miss a message. Get email on-the-go 
with Yahoo! Mail for Mobile. Get started.
http://mobile.yahoo.com/mail 


More information about the freebsd-ports mailing list