patch-makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. $OpenBSD: patch-makefile,v 1.1.1.1 2010/08/23 09:31:23 ajacoutot Exp $
  2. --- makefile.orig Wed Apr 7 21:06:02 1999
  3. +++ makefile Mon Aug 23 07:53:15 2010
  4. @@ -320,13 +320,13 @@ IS_INTERACTIVE= yes
  5. #ifdef VMS
  6. CC = cc
  7. #else
  8. -CC = gcc
  9. +CC ?= gcc
  10. #endif
  11. #ifdef DEVELOPER
  12. -CC_OPTIONS = -c -g
  13. +CC_OPTIONS = -c -g ${CFLAGS}
  14. #else
  15. -CC_OPTIONS = -c -g
  16. +CC_OPTIONS = -c -g ${CFLAGS}
  17. #endif
  18. @@ -340,11 +340,11 @@ DISTNAME = [system]
  19. LIBS = -lcursesX -o epte
  20. #endif
  21. # Use ncurses library for linux & FreeBSD
  22. -#if defined(linux) || defined(__FreeBSD__)
  23. +#if defined(linux) || defined(__FreeBSD__) || defined(__OpenBSD__)
  24. LIBS = -lncurses -o epte
  25. #endif
  26. -DISTNAME=/usr/bin
  27. +DISTNAME=${PREFIX}
  28. MAIN = ask_user.o bell.o bold.o blink.o draw_blocks.o draw_table.o endprog.o listcommand.o epte.o make_coordinates.o reverse.o setaudio.o setinput.o table_key.o ttflush.o ttinp.o
  29. @@ -364,10 +364,8 @@ clean:
  30. #ifndef VMS
  31. install : epte
  32. - chmod 555 epte
  33. - cp epte ${DISTNAME}/epte
  34. - chmod 555 /usr/man/man1
  35. - cp epte.1 /usr/man/man1
  36. + ${BSD_INSTALL_PROGRAM} epte ${DISTNAME}/bin/epte
  37. + ${BSD_INSTALL_MAN} epte.1 ${DISTNAME}/man/man1
  38. install-with-sound : epte
  39. chmod 555