patch-Imakefile 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. $OpenBSD: patch-Imakefile,v 1.4 2011/06/23 14:21:14 naddy Exp $
  2. --- Imakefile.orig Fri Jun 3 06:26:03 2005
  3. +++ Imakefile Thu Jun 23 08:12:39 2011
  4. @@ -97,12 +97,12 @@ XAWDEPENDS = \
  5. brushOp.o chroma.o fileName.o fontSelect.o graphic.o help.o \
  6. iprocess.o main.o menu.o misc.o operation.o pattern.o print.o size.o
  7. -#ifdef SGIArchitecture
  8. +#if defined(SGIArchitecture) && !defined(OpenBSDArchitecture)
  9. SGI_LIB = -limage
  10. #endif
  11. DEPLIBS = always xpaint.man XPaint.ad
  12. -LOCAL_LIBRARIES = -Lrw -lrw $(XPM_LIB) $(TIFF_LIB) $(SGI_LIB) $(JPEG_LIB) $(PNG_LIB) -ldl -rdynamic
  13. +LOCAL_LIBRARIES = -Lrw -lrw $(XPM_LIB) $(TIFF_LIB) $(SGI_LIB) $(JPEG_LIB) $(PNG_LIB)
  14. SUBDIRS = rw
  15. @@ -136,8 +136,10 @@ install::
  16. chmod -R a+r $(DESTDIR)$(SHAREDIR)/
  17. xaw::
  18. - -$(RM) $(XAWDEPENDS)
  19. - ./configure xaw ; make
  20. + -$(RM) $(XAWDEPENDS) ; ln -sf ${X11BASE}/include/X11/Xaw xaw_incdir
  21. + echo "XAWLIB_DEFINES = -DXAWPLAIN" > Local.xawdefs
  22. + echo "SYS_LIBRARIES = XawClientLibs -lm" >> Local.xawdefs
  23. + xmkmf -DPorts ; (cd rw ; xmkmf -DPorts) ; make
  24. @echo ""
  25. @echo "'xpaint' compiled with Xaw widgets (old and ugly)"
  26. @echo "You should rather use Xaw3d, neXtaw or Xaw95 !!"