Subject: Re: How to compile xpaint 2.1.1?
To: None <pappires@phoenix.ai.mit.edu>
From: Brook Milligan <brook@trillium.NMSU.Edu>
List: netbsd-help
Date: 05/08/1996 09:23:35
   What do I have to hack in XPaint 2.1 package to set it up OK for NetBSD 1.1
   and XFree86 3.1.2?

I have xpaint v2.1.1 running with a 1.1 system.  I compiled/installed
it as follows:

     patch < ../xpaint-2.1.1.patch
     xmkmf -a
     make && make install && make install.man

The patch is attached below.  Note that there is a new version (2.2, I
think) out.

Hope this helps.

Cheers,
Brook

===========================================================================
xpaint-2.1.1.patch
===========================================================================
*** ./Imakefile.orig	Mon Jun 14 03:45:25 1993
--- ./Imakefile	Tue Oct  3 14:25:19 1995
***************
*** 7,13 ****
  
  DEFINES = $(XPM_INCLUDE) $(EXTRA_DEFINES)
  
! #define PassCDebugFlags CDEBUGFLAGS=DefaultCDebugFlags
  
  #########################
  # Nothing to change below here
--- 7,13 ----
  
  DEFINES = $(XPM_INCLUDE) $(EXTRA_DEFINES)
  
! #define PassCDebugFlags CDEBUGFLAGS=
  
  #########################
  # Nothing to change below here
***************
*** 52,58 ****
  DEPLIBS = always
  LOCAL_LIBRARIES = rw/librw.a $(XPM_LIB) $(TIFF_LIB) $(SGI_LIB) $(JPEG_LIB)
  
! SUBDIRS = rw xpm libtiff
  
  XCOMM all::	  .msgPrinted
  XCOMM install:: .msgPrinted
--- 52,58 ----
  DEPLIBS = always
  LOCAL_LIBRARIES = rw/librw.a $(XPM_LIB) $(TIFF_LIB) $(SGI_LIB) $(JPEG_LIB)
  
! SUBDIRS = rw libtiff
  
  XCOMM all::	  .msgPrinted
  XCOMM install:: .msgPrinted
*** ./Local.config.orig	Thu Jan 13 06:17:34 1994
--- ./Local.config	Tue Oct  3 14:25:11 1995
***************
*** 82,89 ****
  #define HaveXPM
  
  #ifdef HaveXPM
! XPM_LIB     = $(XPAINT_TOP)/xpm/libXpm.a
! XPM_INCLUDE = -I$(XPAINT_TOP)/xpm
  #endif
  
  XCOMM Where to put stuff on "install" or "install.man", if 
--- 82,89 ----
  #define HaveXPM
  
  #ifdef HaveXPM
! XPM_LIB     = $(USRLIBDIR)/libXpm.a
! XPM_INCLUDE = -I$(INCDIR)
  #endif
  
  XCOMM Where to put stuff on "install" or "install.man", if 
*** ./rw/libpnmrw.c.orig	Wed Apr 21 05:35:23 1993
--- ./rw/libpnmrw.c	Sun Oct  1 12:20:37 1995
***************
*** 131,137 ****
--- 131,139 ----
  pm_perror( reason )
      char* reason;
      {
+ #if !defined(__NetBSD__)
      extern char* sys_errlist[];
+ #endif
      extern int errno;
      char* e;
  
*** ./rw/rwTable.c.orig	Wed Jun 16 09:33:54 1993
--- ./rw/rwTable.c	Sun Oct  1 12:19:37 1995
***************
*** 208,214 ****
--- 208,216 ----
  
  char *RWGetMsg()
  {
+ #if !defined(__NetBSD__)
  	extern char 	*sys_errlist[];
+ #endif
  	extern int	errno;
  
  	if (RWtableMsg[0] == '\0') {
*** ./sprayOp.c.orig	Thu Jan 13 06:17:43 1994
--- ./sprayOp.c	Sun Oct  1 12:14:07 1995
***************
*** 58,64 ****
--- 58,66 ----
  #ifndef random
  long	random(void);
  #endif
+ #if !defined(__NetBSD__)
  int	srandom(unsigned int);
+ #endif
  #endif
  
  #ifdef USE_DRAND