$NetBSD: patch-ab,v 1.8 2003/01/07 06:30:36 rh Exp $ --- Imakefile.orig Thu Dec 19 10:57:11 2002 +++ Imakefile @@ -48,8 +48,8 @@ XCOMM Redefine the following if your PNG library and/or include file XCOMM are in different places -PNGLIBDIR = $(USRLIBDIR) -PNGINC = -I/usr/local/include +PNGLIBDIR = $(LOCALBASE)/lib +PNGINC = -I$(LOCALBASE)/include XCOMM If don't want JPEG support, comment out the #define USEJPEG line XCOMM Uncomment the #define for USEJPEG if you want to be able to import @@ -68,8 +68,8 @@ #ifdef USEJPEG #ifdef USEINSTALLEDJPEG -JPEGLIBDIR = /usr/local/lib -JPEGINC = -I/usr/include/X11 +JPEGLIBDIR = $(LOCALBASE)/lib +JPEGINC = -I$(LOCALBASE)/include #else JPEGLIBDIR = ../jpeg JPEGINC = -I$(JPEGLIBDIR) @@ -87,12 +87,12 @@ XCOMM Change XPMLIBDIR if necessary to point to the xpm library (libXpm) XCOMM Change XPMINC if necessary to point to the include file for xpm (xpm.h) -XCOMM #define USEXPM -XCOMM #define USEXPM_ICON +#define USEXPM +#define USEXPM_ICON #ifdef USEXPM -XPMLIBDIR = $(USRLIBDIR) -XPMINC = -I/usr/include/X11 +XPMLIBDIR = $(X11BASE)/lib +XPMINC = -I$(X11BASE)/include/X11 #endif XCOMM Uncomment the following definiton if you want to use the small icons @@ -105,10 +105,10 @@ XCOMM Then be sure to change the XAW3DINC to point to the directory where your XCOMM 3D Athena widget headers are located -XCOMM #define XAW3D +#define XAW3D #ifdef XAW3D -XAW3DINC = -I/usr/include/X11/Xaw3d +XAW3DINC = -I$(LOCALBASE)/include/X11/Xaw3d DUSEXAW3D = -DXAW3D XAWLIB = -lXaw3d #endif @@ -154,7 +154,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 use (and change) the following if you want the multi-key data base file XCOMM somewhere other than the standard X11 library directory @@ -166,7 +166,7 @@ XCOMM XFIGDOCDIR tells where the html and pdf documentation should go XCOMM XFIGDOCDIR = $(DOCDIR)/xfig -XFIGDOCDIR = /usr/share/doc/xfig +XFIGDOCDIR = $(PREFIX)/share/doc/xfig 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 @@ -224,7 +224,7 @@ #ifdef USEJPEG #ifdef USEINSTALLEDJPEG -JPEGLIB = -L$(JPEGLIBDIR) -ljpeg +JPEGLIB = -Wl,-R$(LOCALBASE)/lib -L$(JPEGLIBDIR) -ljpeg #else JPEGCONF = configure JPEGLIB = $(JPEGLIBDIR)/libjpeg.a @@ -261,7 +261,7 @@ DUSESMALLICONS = -DUSE_SMALL_ICONS #endif /* USESMALLICONS */ -PNGLIBS = -L$(PNGLIBDIR) -lpng -lz +PNGLIBS = -Wl,-R$(LOCALBASE)/lib -L$(PNGLIBDIR) -lpng -lz #ifdef USEJPEG DUSEJPEG = -DUSE_JPEG @@ -271,7 +271,7 @@ #ifdef USEXPM DUSEXPM = -DUSE_XPM -XPMLIBS = -L$(XPMLIBDIR) -lXpm +XPMLIBS = -Wl,-R$(XPMLIBDIR) -L$(XPMLIBDIR) -lXpm READXPMS = f_readxpm.c READXPMO = f_readxpm.o #ifdef USEXPM_ICON @@ -407,6 +407,8 @@ install.rhtml:: @(cd Doc ; \ echo Copying pdf and html files to $(DESTDIR)$(XFIGDOCDIR) ; \ + if [ -d $(DESTDIR)$(XFIGDOCDIR) ]; then set +x; \ + else (set -x; $(MKDIRHIER) $(DESTDIR)$(XFIGDOCDIR) ); fi ; \ $(INSTALL) -m 644 -c xfig_man.html $(DESTDIR)$(XFIGDOCDIR) ; \ $(INSTALL) -m 644 -c xfig_ref_en.pdf $(DESTDIR)$(XFIGDOCDIR) ; \ $(INSTALL) -m 644 -c xfig-howto.pdf $(DESTDIR)$(XFIGDOCDIR) ; \