patch-Imakefile 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. $OpenBSD: patch-Imakefile,v 1.6 2013/06/04 15:41:17 naddy Exp $
  2. --- Imakefile.orig Sun Jun 18 15:58:50 2006
  3. +++ Imakefile Tue Jun 4 10:57:37 2013
  4. @@ -1,5 +1,5 @@
  5. XCOMM Should install to /usr or /usr/local ??
  6. -DESTDIR=/usr
  7. +#DESTDIR=/usr
  8. XCOMM Name of man subdirectory of DESTDIR:
  9. MANDIR=/X11R6/man/man1
  10. @@ -8,7 +8,7 @@ XCOMM Name of bin subdirectory of DESTDIR: /X11R6/bin
  11. BINDIR=/X11R6/bin
  12. XCOMM Name of share subdirectory of DESTDIR:
  13. -SHAREDIR=/share/sunclock
  14. +SHAREDIR=${PREFIX}/share/sunclock
  15. XCOMM Name of DOCDIR's subdirectories of DESTDIR:
  16. DOCDIR=/X11R6/lib/X11/doc
  17. @@ -42,31 +42,24 @@ CCOPTIONS = -Ae $(XPMINC) $(JINC) -DZLIB -DSHAREDIR=\"
  18. #CCOPTIONS=-O -DZLIB -DNEW_CTIME -DSHAREDIR=\"$(DESTDIR)$(SHAREDIR)\"
  19. # Solaris, Linux
  20. -#XPMLIBDIR=-L/usr/X11R6/lib
  21. -#XPMINC=-I/usr/X11R6/include/X11
  22. -#JLIBDIR=-L/usr/lib
  23. -#ZLIBDIR=-L/usr/lib
  24. -#JINC=-I/usr/include
  25. +XPMLIBDIR=-L${X11BASE}/lib
  26. +XPMINC=-I${X11BASE}/include/X11
  27. +JLIBDIR=-L${LOCALBASE}/lib
  28. +ZLIBDIR=
  29. +JINC=-I${LOCALBASE}/include
  30. -CCOPTIONS=-O -DZLIB -DSHAREDIR=\"$(DESTDIR)$(SHAREDIR)\"
  31. +CCOPTIONS+= $(JINC) $(PINC) $(XPMINC) -DZLIB -DSHAREDIR=\"$(DESTDIR)$(SHAREDIR)\"
  32. #endif
  33. SRCS=sunclock.c astro.c widgets.c tildepath.c dirlist.c \
  34. readvmf.c readxpm.c readgif.c readjpeg.c readpng.c
  35. OBJS=sunclock.o astro.o widgets.o tildepath.o dirlist.o \
  36. readvmf.o readxpm.o readgif.o readjpeg.o readpng.o
  37. -LOCAL_LIBRARIES=$(XLIB) $(XPMLIBDIR) -lXpm $(ZLIBDIR) -lz \
  38. +LOCAL_LIBRARIES=$(XPMLIBDIR) -lXpm $(XLIB) $(ZLIBDIR) -lz \
  39. $(JLIBDIR) -ljpeg -lpng -lm
  40. DEPLIBS= # I don't know what I'm doing, and I hate imake!
  41. ComplexProgramTarget(sunclock)
  42. -
  43. -all::
  44. - cd editkit ; xmkmf ; make emx \
  45. - DESTDIR=$(DESTDIR) \
  46. - BINDIR=$(SHAREDIR)/bin \
  47. - MANDIR=$(SHAREDIR)/editkit \
  48. - SHAREDIR=$(DESTDIR)$(SHAREDIR)/editkit
  49. install.man::
  50. if [ -r $(DESTDIR)$(MANDIR)/sunclock.1x.gz ] ; \