--- fig2dev/Imakefile.orig 2010-08-05 10:05:14.000000000 +1000 +++ fig2dev/Imakefile 2010-08-05 10:05:20.000000000 +1000 @@ -23,18 +23,21 @@ XCOMM Also, you may have to uncomment and redefine MKDIRHIER because "make" looks XCOMM for it relative to the BINDIR variable. XCOMM -XCOMM BINDIR = /usr/bin/X11 -XCOMM MKDIRHIER = /bin/sh /usr/bin/X11/mkdirhier -p +BINDIR = __PREFIX/bin +DESTDIR = __DESTROOT +MKDIRHIER = mkdirhier XCOMM MANDIR tells where the standard man pages should go (no need to change it XCOMM if you want the man pages installed in the standard place on your system -XCOMM MANDIR = $(MANSOURCEPATH)$(MANSUFFIX) +MANDIR = __PREFIX/share/man/man$(MANSUFFIX) + +INSTALLFLAGS = -c XCOMM ****** XCOMM You should point XFIGLIBDIR to the same directory you did when you compiled XCOMM and installed xfig. -XFIGLIBDIR = /usr/local/lib/X11/xfig +XFIGLIBDIR = __PREFIX/lib/X11/xfig XCOMM ****** XCOMM If your system doesn't have the strerror() function (has sys_errlist) then @@ -53,7 +56,7 @@ XCOMM inline functions. With the "INLINE" keyword, you should notice that XCOMM the display will be a bit faster in complex figures -XCOMM USEINLINE = -DUSE_INLINE +USEINLINE = -DUSE_INLINE XCOMM **************** XCOMM Change RGB if necessary, to point to your rgb.txt color database @@ -74,9 +77,9 @@ XCOMM file are in different places #ifdef USEPNG -PNGLIBDIR = $(USRLIBDIR) -ZLIBDIR = $(USRLIBDIR) -PNGINC = -I/usr/include/X11 +PNGLIBDIR = __PREFIX/lib +ZLIBDIR = __PREFIX/lib +PNGINC = -I__PREFIX/include #endif XCOMM **************** @@ -91,8 +94,8 @@ #define USEXPM #ifdef USEXPM -XPMLIBDIR = $(USRLIBDIR) -XPMINC = -I/usr/include/X11 +XPMLIBDIR = __PREFIX/lib +XPMINC = -I__PREFIX/include/X11 #endif XCOMM **************** @@ -141,7 +144,7 @@ #ifdef I18N I18N_DEFS = -DI18N -FIG2DEV_LIBDIR = /usr/local/lib/fig2dev +FIG2DEV_LIBDIR = __PREFIX/lib/fig2dev I18N_DEV_DEFS = $(I18N_DEFS) -DFIG2DEV_LIBDIR=$(FIG2DEV_LIBDIR) -DFIG2DEV_LIBDIR_STR=\\\"$(FIG2DEV_LIBDIR)\\\" #endif /* I18N */