$NetBSD: patch-aa,v 1.9 2003/01/07 06:19:06 rh Exp $ --- fig2dev/Imakefile.orig Thu Dec 19 10:33:44 2002 +++ fig2dev/Imakefile @@ -20,13 +20,13 @@ 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 = $(PROJECTROOT)/lib/X11/xfig XCOMM ****** XCOMM If your system has the strerror() function (doesn't have sys_errlist) then XCOMM comment out NEED_STRERROR with an XCOMM comment. -NEED_STRERROR = -DNEED_STRERROR +XCOMM NEED_STRERROR = -DNEED_STRERROR XCOMM The following probably only applies to Windows 9x/NT: XCOMM If your system can open files in text and binary modes and has the @@ -39,7 +39,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 @@ -61,7 +61,7 @@ #ifdef USEPNG PNGLIBDIR = $(USRLIBDIR) -PNGINC = -I/usr/include/X11 +PNGINC = -I$(LOCALBASE)/include #endif XCOMM **************** @@ -73,11 +73,11 @@ XCOMM Change XPMINC if necessary to point to the include file for xpm (xpm.h) XCOMM -XCOMM #define USEXPM +#define USEXPM #ifdef USEXPM XPMLIBDIR = $(USRLIBDIR) -XPMINC = -I/usr/include/X11 +XPMINC = -I$(LOCALBASE)/include/X11 #endif XCOMM **************** @@ -126,7 +126,7 @@ #ifdef I18N I18N_DEFS = -DI18N -FIG2DEV_LIBDIR = /usr/local/lib/fig2dev +FIG2DEV_LIBDIR = $(PROJECTROOT)/lib/fig2dev I18N_DEV_DEFS = $(I18N_DEFS) -DFIG2DEV_LIBDIR=\\\"$(FIG2DEV_LIBDIR)\\\" install:: @@ -158,12 +158,12 @@ #ifdef USEPNG DUSEPNG = -DUSE_PNG -PNGLIBS = -L$(PNGLIBDIR) -lpng -lz +PNGLIBS = -Wl,-R$(LOCALBASE)/lib -L$(PNGLIBDIR) -lpng -lz #endif /* USEPNG */ #ifdef USEXPM DUSEXPM = -DUSE_XPM -XPMLIBS = -L$(XPMLIBDIR) -lXpm -lX11 +XPMLIBS = -Wl,-R$(XPMLIBDIR) -L$(XPMLIBDIR) -lXpm -lX11 #endif /* USEXPM */ #if defined(NOSTRSTR) @@ -177,7 +177,7 @@ IMAKE_DEFINES = $(DUSEPNG) $(DUSEXPM) -DEVDEFINES = $(DUSEPNG) $(DUSEXPM) $(XPMINC) $(DDNFSS) $(DDA4) \ +DEVDEFINES = $(DUSEPNG) $(DUSEXPM) $(PNGINC) $(XPMINC) $(DDNFSS) $(DDA4) \ $(DDLATEX2E_GRAPHICS) $(DDEPSFIG) $(DDIBMGEC) $(DDDVIPS) $(I18N_DEV_DEFS) #define IHaveSubdirs