I just compiled xfig without fink. It’s quite easy. Just get the latest sources for xfig and transfig from http://www.xfig.org. In the xfig sources you have to change to files.
First the file xfig.h, there you have to get sure that it does not define any srandom(). So search for it and delete the whole #if … #elif … #endif block where all the srandom()’s are defined.
Then in the file w_keyboard.c you have to add a “#define REG_NOERROR 0” somewhere on top in a separate line. (The last symbol is a zero, not an capital o.)
In the Imakefile you have to comment out the BINDIR variable, the XAW3D variable and the USEJPEG variable.
In the transfig package you have to set the right path for XFIGLIBDIR in the fig2dev Imakefile. It’s /usr/X11/lib/X11/xfig. And I also uncommented out the LATEX2E variable in the transfig Imakefile.
xfig compiles using “xmkmf; make; make install”. For transfig there was “xmkmf; make Makefiles; make; make install” necessary.
But better one read the README files before doing this. The parameters in the Imakefiles are described very well there and also the commands to compile the sources. Only the changes in the two files I made are not described there.
I just compiled xfig without fink. It’s quite easy. Just get the latest sources for xfig and transfig from http://www.xfig.org. In the xfig sources you have to change to files.
First the file xfig.h, there you have to get sure that it does not define any srandom(). So search for it and delete the whole #if … #elif … #endif block where all the srandom()’s are defined.
Then in the file w_keyboard.c you have to add a “#define REG_NOERROR 0” somewhere on top in a separate line. (The last symbol is a zero, not an capital o.)
In the Imakefile you have to comment out the BINDIR variable, the XAW3D variable and the USEJPEG variable.
In the transfig package you have to set the right path for XFIGLIBDIR in the fig2dev Imakefile. It’s /usr/X11/lib/X11/xfig. And I also uncommented out the LATEX2E variable in the transfig Imakefile.
xfig compiles using “xmkmf; make; make install”. For transfig there was “xmkmf; make Makefiles; make; make install” necessary.
But better one read the README files before doing this. The parameters in the Imakefiles are described very well there and also the commands to compile the sources. Only the changes in the two files I made are not described there.