Ticket #18815: patch-Imakefile.diff

File patch-Imakefile.diff, 3.2 KB (added by raphael@…, 15 years ago)
  • Imakefile

    old new  
    3030XCOMM Also, you may have to uncomment and redefine MKDIRHIER because "make" looks
    3131XCOMM for it relative to the BINDIR variable.
    3232XCOMM
    33 BINDIR = /usr/bin
    34 XCOMM MKDIRHIER = /bin/sh /usr/bin/X11/mkdirhier -p
    35 MKDIRHIER = mkdirhier
     33BINDIR = __PREFIX/bin
     34DESTDIR = __DESTROOT
     35MKDIRHIER = mkdirhier
     36XCOMM MKDIRHIER = mkdirhier
     37
     38EXTRA_LDOPTIONS = -L__PREFIX/lib
    3639
    3740XCOMM Uncomment and change XAPPLOADDIR to the directory where you want the
    3841XCOMM app-defaults resource files to go.  You will have to use the environment
     
    4548XCOMM different tree than the "correct" tree that your X system expects. The usual
    4649XCOMM purpose of DESTDIR is to test an install process by installing in a benign area.
    4750
    48 XCOMM XAPPLOADDIR = /home/user/xfig
     51XAPPLOADDIR = __PREFIX/lib/X11/app-defaults
    4952
    5053XCOMM Uncomment the following definition for XAW3D if you want to use
    5154XCOMM the 3d Athena Widget Set (highly recommended!)
     
    5558XCOMM Uncomment the following if you have David Hawkey's Xaw3D version 1.5E which has
    5659XCOMM some new features, including "Tips", which replace xfig's "help balloons"
    5760
    58 XCOMM #define XAW3D1_5E
     61#define XAW3D1_5E
    5962
    6063#ifdef XAW3D1_5E
    6164    DUSEXAW3D = -DXAW3D -DXAW3D1_5E
    62     XAWLIB = -lXaw3d15e
     65    XAWLIB = -lXaw3d
    6366#else
    6467    XAW_SRC = w_menuentry.c SmeCascade.c SmeBSB.c SimpleMenu.c
    6568    XAW_OBJ = w_menuentry.o SmeCascade.o SmeBSB.o SimpleMenu.o
     
    7275XCOMM Redefine the following if your PNG library, zlib library and/or include file
    7376XCOMM are in different places
    7477
    75 PNGLIBDIR = $(USRLIBDIR)
    76 PNGINC = -I/usr/local/include
    77 ZLIBDIR = $(USRLIBDIR)
     78PNGLIBDIR = __PREFIX/lib
     79PNGINC = -I__PREFIX/include
     80ZLIBDIR = __PREFIX/lib
    7881
    7982XCOMM If don't want JPEG support, comment out the #define USEJPEG line
    8083XCOMM Uncomment the #define for USEJPEG if you want to be able to import
     
    9396
    9497#ifdef USEJPEG
    9598#ifdef USEINSTALLEDJPEG
    96 JPEGLIBDIR = /usr/local/lib
    97 JPEGINC = -I/usr/include/X11
     99JPEGLIBDIR = __PREFIX/lib
     100JPEGINC = -I__PREFIX/include
    98101#else
    99102JPEGLIBDIR = ../jpeg
    100103JPEGINC = -I$(JPEGLIBDIR)
     
    116119#define USEXPM_ICON
    117120
    118121#ifdef USEXPM
    119 XPMLIBDIR = /usr/local/lib
    120 XPMINC = -I/usr/local/include/X11
     122XPMLIBDIR = /usr/X11R6/lib
     123XPMINC = -I/usr/X11R6/include/X11
    121124#endif
    122125
    123126XCOMM Uncomment the following definiton if you want to use the small icons
     
    166169XCOMM XFIGLIBDIR = $(LIBDIR)
    167170
    168171XCOMM use this if you want the multi-key data base file in the standard X11 tree
    169 XFIGLIBDIR = $(LIBDIR)/xfig
     172XFIGLIBDIR = __PREFIX/lib/xfig
    170173
    171174XCOMM XFIGDOCDIR tells where the html and pdf documentation should go
    172175XCOMM XFIGDOCDIR = $(DOCDIR)/xfig
    173 XFIGDOCDIR = /usr/local/xfig/doc
     176XFIGDOCDIR = __PREFIX/share/doc/xfig
    174177
    175178XCOMM MANDIR tells where the standard man pages should go (no need to change it
    176179XCOMM if you want the man pages installed in the standard place on your system
    177180XCOMM MANDIR = $(MANSOURCEPATH)$(MANSUFFIX)
    178 MANDIR = /usr/local/xfig/man
     181MANDIR = __PREFIX/share/man/man$(MANSUFFIX)
    179182
    180183XCOMM If your system doesn't have strstr undefine the following definition
    181184XCOMM HAVE_NO_NOSTRSTR = -DNOSTRSTR