mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
3.0 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/praenti/nedit/nedit-5.5-makefile.diff
  9. # ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. #
  18. # --- ROCK-COPYRIGHT-NOTE-END ---
  19. diff -Nur nedit-5.5-orig/makefiles/Makefile.linux nedit-5.5/makefiles/Makefile.linux
  20. --- nedit-5.5-orig/makefiles/Makefile.linux 2005-01-03 16:27:48.636034664 +0100
  21. +++ nedit-5.5/makefiles/Makefile.linux 2005-01-03 16:30:00.425999544 +0100
  22. @@ -17,11 +17,11 @@
  23. # To test if the Motif library exports the runtime version
  24. # add -DHAVE__XMVERSIONSTRING to CFLAGS
  25. #
  26. -CFLAGS=-O -I/usr/X11R6/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD
  27. +CFLAGS=-O -I/usr/X11R6/include -D__LINUX__ -DUSE_DIRENT -DUSE_LPR_PRINT_CMD
  28. ARFLAGS=-urs
  29. -LIBS= -L/usr/X11R6/lib -Wl,-Bstatic -lXm -Wl,-Bdynamic -lXp -lXpm -lXext -lXt -lSM -lICE -lX11 -lm
  30. +LIBS= -L/usr/X11R6/lib -lXm -lXp -lXext -lXt -lSM -lICE -lX11 -lm
  31. include Makefile.common
  32. diff -Nur nedit-5.5-orig/source/preferences.c nedit-5.5/source/preferences.c
  33. --- nedit-5.5-orig/source/preferences.c 2005-01-03 16:27:48.711023264 +0100
  34. +++ nedit-5.5/source/preferences.c 2005-01-03 16:32:42.992285712 +0100
  35. @@ -335,14 +335,14 @@
  36. #ifndef VMS
  37. #ifdef linux
  38. {"shellCommands", "ShellCommands", PREF_ALLOC_STRING, "spell:Alt+B:s:EX:\n\
  39. - cat>spellTmp; xterm -e ispell -x spellTmp; cat spellTmp; rm spellTmp\n\
  40. + cat>spellTmp; xterm -e aspell -c -x spellTmp; cat spellTmp; rm spellTmp\n\
  41. wc::w:ED:\nwc | awk '{print $1 \" lines, \" $2 \" words, \" $3 \" characters\"}'\n\
  42. sort::o:EX:\nsort\nnumber lines::n:AW:\nnl -ba\nmake:Alt+Z:m:W:\nmake\n\
  43. expand::p:EX:\nexpand\nunexpand::u:EX:\nunexpand\n",
  44. &TempStringPrefs.shellCmds, NULL, True},
  45. #elif __FreeBSD__
  46. {"shellCommands", "ShellCommands", PREF_ALLOC_STRING, "spell:Alt+B:s:EX:\n\
  47. - cat>spellTmp; xterm -e ispell -x spellTmp; cat spellTmp; rm spellTmp\n\
  48. + cat>spellTmp; xterm -e aspell -c -x spellTmp; cat spellTmp; rm spellTmp\n\
  49. wc::w:ED:\nwc | awk '{print $2 \" lines, \" $1 \" words, \" $3 \" characters\"}'\n\
  50. sort::o:EX:\nsort\nnumber lines::n:AW:\npr -tn\nmake:Alt+Z:m:W:\nmake\n\
  51. expand::p:EX:\nexpand\nunexpand::u:EX:\nunexpand\n",
  52. @@ -928,6 +928,8 @@
  53. {"shell", "Shell", PREF_STRING,
  54. #if defined(__MVS__) || defined(__EMX__)
  55. "/bin/sh",
  56. +#elif __LINUX__
  57. + "/bin/sh",
  58. #else
  59. "/bin/csh",
  60. #endif