--- /dev/null
+--- ./fig2dev/dev/gensvg.c.orig 2005-02-26 19:52:57.058538744 +0100
++++ ./fig2dev/dev/gensvg.c 2005-02-26 19:57:17.537939856 +0100
+@@ -692,16 +692,14 @@
+ if (t->angle != 0) {
+ fprintf (tfp, "<g transform=\"translate(%d,%d) rotate(%d)\" >\n",
+ (int) (t->base_x * mag), (int) (t->base_y * mag), degrees (t->angle));
+- fprintf (tfp, "<text x=\"0\" y=\"0\" fill=\"#%6.6x\" font-family=\"%s\"
+- font-style=\"%s\" font-weight=\"%s\" font-size=\"%d\" text-anchor=\"%s\" >\n",
++ fprintf (tfp, "<text x=\"0\" y=\"0\" fill=\"#%6.6x\" font-family=\"%s\" font-style=\"%s\" font-weight=\"%s\" font-size=\"%d\" text-anchor=\"%s\" >\n",
+ rgbColorVal (t->color), family[(int) ceil ((t->font + 1) / 4)],
+ (t->font % 2 == 0 ? "normal" : "italic"),
+ (t->font % 4 < 2 ? "normal" : "bold"), (int) (ceil (t->size * 12 * mag)),
+ anchor[t->type]);
+ }
+ else
+- fprintf (tfp, "<text x=\"%d\" y=\"%d\" fill=\"#%6.6x\" font-family=\"%s\"
+- font-style=\"%s\" font-weight=\"%s\" font-size=\"%d\" text-anchor=\"%s\" >\n",
++ fprintf (tfp, "<text x=\"%d\" y=\"%d\" fill=\"#%6.6x\" font-family=\"%s\" font-style=\"%s\" font-weight=\"%s\" font-size=\"%d\" text-anchor=\"%s\" >\n",
+ (int) (t->base_x * mag), (int) (t->base_y * mag), rgbColorVal (t->color),
+ family[(int) ceil ((t->font + 1) / 4)],
+ (t->font % 2 == 0 ? "normal" : "italic"),
--- /dev/null
+# hdw - linux transfig package
+#
+# author: hackbard@hackdaworld.dyndns.org
+#
+# [V] 3.2.4
+# [S] 3-8
+# [D] transfig.3.2.4.tar.gz ftp://epb.lbl.gov/xfig/
+
+pre_install() {
+ for i in ./fig2dev/Imakefile ./fig2dev/dev/Imakefile; do
+ sed "s%/usr/local%$prefix%g" $i > tmp~
+ mv tmp~ $i
+ sed "s%/usr/include/X11%$prefix/X11R6/include/X11%g" $i > tmp~
+ mv tmp~ $i
+ done
+ sed 's/varargs/stdarg/g' ./fig2dev/fig2dev.h > tmp~
+ mv tmp~ ./fig2dev/fig2dev.h
+ }
+
+build_main() {
+ xmkmf
+ make Makefiles
+ make
+ make install
+ make install.man
+ }