You can get the source from ftp://www-epb.lbl.gov/xfig, http://www.xfig.org/xfigdist, ftp://ftp.x.org/contrib/applications/drawing_tools/xfig and its mirror sites or from any CTAN machine ( ftp://ftp.tex.ac.uk/pub/archive/graphics, for example).
If you want to install xfig in a directory other than
the default X11 binary directory, add "BINDIR=<directory>" at the
top of the Imakefile, where <directory> is the full path of the
directory in which you want xfig to be installed.
To use JPEG, you must have JPEG library (Version 5b or later).
If you already has the JPEG library installed in your system area then make
sure the USEINSTALLEDJPEG variable is uncommented (the default).
If you don't have JPEG installed, get the source from
ftp://ftp.uu.net/graphics/jpeg
or ftp://ftp.x.org/contrib/libraries
and comment out the USEINSTALLEDJPEG variable,
and set the JPEGLIBDIR variable to the directory
where source of JPEG library is stored.
If you don't want JPEG support, comment out `#define USEJPEG' using the XCOMM comment directive (e.g. XCOMM #define USEJPEG).
To enable XPM support, uncomment `#define USEXPM'
and modify the definition of XPMLIBDIR if necessary.
To use XPM, you must have XPM3 package (Version 3.4c or later).
If you want to use Xaw3d (Three-D Athena Widget) library,
uncomment `XAWLIB = -lXaw3d'.
When Xaw3d is used instead of Xaw,
the buttons will appear 3 dimensional.
The Xaw3d library should be compiled without -DARROW_SCROLLBAR.
Small Icons -
If you have a small screen (e.g. 800x600 or so) you may want to use the small
mode panel buttons for xfig.
If so, uncomment the `#define USESMALLICONS' line.
If your system doesn't have strcasecmp()
and/or strncasecmp(), uncomment
If your system doesn't have strstr(),
uncomment `#define NOSTRSTR'.
If your system doesn't have strerror()
(but supports sys_errlist),
uncomment `NEED_STRERROR = -DNEED_STRERROR'.
If you want to enable internationalization facility of xfig,
uncomment ``#define I18N'' (remove (XCOMM).
See Internationalization for more information.
Suggestion to Package Maintainers: If you are preparing a package to be distributed to the world in the binary form, it is recommended to enable internationalization facility so that the package can be used also in Japan or Korea.
If you don't use make install and copy files manually, note that:
the xfig executable should go in your command search path,
Fig.ad and Fig-color.ad should go in the app-defaults
directory with the names Fig and Fig-color respectively,
The CompKeyDB file , the Doc/html directory, and the
xfig-howto.pdf and xfig.pdf files should be copied into
the directory specified by the XFIGLIBDIR variable in the Imakefile
If you don't want to use NFSS2 font selection for LaTeX text,
comment out `DDNFSS = -DNFSS' using the XCOMM directive.
If you don't want to use epsfig macros as distributes with LaTeX2e,
comment out `DDEPSF = -DEPSF' in the same way.
Hint: Users of LaTeX2e will probably want to include both of these options; users of LaTeX 2.09 will probably want to include neither.
To use JPEG,
you must have JPEG library (Version 5b or later).
If you already if the JPEG library installed in your system area then make
sure the USEINSTALLEDJPEG variable is uncommented (the default).
If you don't have JPEG installed, get the source from
ftp://ftp.uu.net/graphics/jpeg
or ftp://ftp.x.org/contrib/libraries
If you don't want JPEG support, comment out `#define USEJPEG' using the XCOMM comment directive (e.g. XCOMM #define USEJPEG).
To enable XPM support, uncomment `#define USEXPM'
and change XPMLIBDIR if necessary.
To use this facility,
you must have XPM3 package (Version 3.4c or later).
If your system doesn't have strcasecmp()
and/or strncasecmp(), uncomment
If your system doesn't have strstr(),
uncomment `#define NOSTRSTR'.
If your system doesn't have strerror()
(but supports sys_errlist),
uncomment `NEED_STRERROR = -DNEED_STRERROR'.
On Solaris 2,
you must add -lnsl to LOCAL_LIBRARIES.
On HP-UX, you may need to reduce optimization level to +O2.
If you want to enable internationalization facility of fig2dev,
uncomment ``#define I18N'' (remove (XCOMM).
See Internationalization for more information.
See README and Imakefile for more details.
GhostScript must be compiled with pbmraw, ppmraw, pcx256, jpeg, and tiff24nc driver.
GhostScript can be found at ftp://prep.ai.mit.edu/pub/gnu and its mirror sites, or at ftp.cs.wisc.edu/ghost/aladdin.
Commands that may actually be used are: pbmtoxbm, pgmtopbm, pnmdepth, pnmscale, pnmtopng, pnmtotiff, ppmquant, ppmtoacad, ppmtogif, ppmtopcx, ppmtopgm, and ppmtoxpm.
netpbm can be found at ftp://ftp.x.org/contrib/utilities or its mirror sites in /contrib/utilities, or at ftp://ftp.cdrom.com/pub/X11/contrib/utilities.
Xaw3d (Three-D Athena Widget) library
XPM3 package
JPEG library
fig2dev (TransFig)
GhostScript
cdraw2fig
GIMP
gnuplot
gzip (gunzip)
hp2xx
chemtool
mifXfig
Msphinx
netpbm
figbuild
pic2fig
plot2fig
plotutils (GNU)
pstoedit
xfigbar and xfigpie
xgraph
xpaint
xv