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.

74 lines
3.5 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.3-makefile.diff
  9. # ROCK Linux is Copyright (C) 1998 - 2003 Clifford Wolf
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; either version 2 of the License, or
  14. # (at your option) any later version. A copy of the GNU General Public
  15. # License can be found at Documentation/COPYING.
  16. #
  17. # Many people helped and are helping developing ROCK Linux. Please
  18. # have a look at http://www.rocklinux.org/ and the Documentation/TEAM
  19. # file for details.
  20. #
  21. # --- ROCK-COPYRIGHT-NOTE-END ---
  22. diff -urN nedit-5.3.old/makefiles/Makefile.linux nedit-5.3/makefiles/Makefile.linux
  23. --- nedit-5.3.old/makefiles/Makefile.linux 2002-03-07 08:42:55.000000000 -0800
  24. +++ nedit-5.3/makefiles/Makefile.linux 2003-07-25 16:13:00.000000000 -0800
  25. @@ -5,7 +5,7 @@
  26. # For editres, add -DEDITRES to CFLAGS and -lXmu to LIBS
  27. # If using a Motif 2.1 compatible library (LessTif, OM) add
  28. # a '-lXp' in front of the -lXext in LIBS. You also drop the
  29. -# -lXpm from that list.
  30. +# from that list.
  31. # Ensure that the Motif/LessTif headers and libs are found!
  32. # e.g. you may have to add something like
  33. # -I/usr/lesstif/include to CFLAGS and
  34. @@ -14,8 +14,8 @@
  35. # To evaluate an alternative layout for the Replace/Find dialog, add
  36. # -DREPLACE_SCOPE to the CFLAGS. See the README file for more information.
  37. #
  38. -CFLAGS=-O -I/usr/X11R6/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD
  39. +CFLAGS=-O -I/usr/X11R6/include -D__LINUX__ -DUSE_DIRENT -DUSE_LPR_PRINT_CMD
  40. ARFLAGS=-urs
  41. -LIBS= -L/usr/X11R6/lib -Wl,-Bstatic -lXm -Wl,-Bdynamic -lXp -lXpm -lXext -lXt -lSM -lICE -lX11 -lm
  42. +LIBS= -L/usr/X11R6/lib -lXm -lXp -lXext -lXt -lSM -lICE -lX11 -lm -lXmu
  43. include Makefile.common
  44. diff -urN nedit-5.3.old/source/preferences.c nedit-5.3/source/preferences.c
  45. --- nedit-5.3.old/source/preferences.c 2002-05-16 00:53:09.000000000 -0700
  46. +++ nedit-5.3/source/preferences.c 2003-01-19 17:44:57.000000000 -0800
  47. @@ -271,14 +271,14 @@
  48. #ifndef VMS
  49. #ifdef linux
  50. {"shellCommands", "ShellCommands", PREF_ALLOC_STRING, "spell:Alt+B:s:EX:\n\
  51. - cat>spellTmp; xterm -e ispell -x spellTmp; cat spellTmp; rm spellTmp\n\
  52. + cat>spellTmp; xterm -e aspell -c -x spellTmp; cat spellTmp; rm spellTmp\n\
  53. wc::w:ED:\nset wc=`wc`; echo $wc[1] \"lines,\" $wc[2] \"words,\" $wc[3] \"characters\"\n\
  54. sort::o:EX:\nsort\nnumber lines::n:AW:\nnl -ba\nmake:Alt+Z:m:W:\nmake\n\
  55. expand::p:EX:\nexpand\nunexpand::u:EX:\nunexpand\n",
  56. &TempStringPrefs.shellCmds, NULL, True},
  57. #elif __FreeBSD__
  58. {"shellCommands", "ShellCommands", PREF_ALLOC_STRING, "spell:Alt+B:s:EX:\n\
  59. - cat>spellTmp; xterm -e ispell -x spellTmp; cat spellTmp; rm spellTmp\n\
  60. + cat>spellTmp; xterm -e aspell -c -x spellTmp; cat spellTmp; rm spellTmp\n\
  61. wc::w:ED:\nset wc=`wc`; echo $wc[1] \"words,\" $wc[2] \"lines,\" $wc[3] \"characters\"\n\
  62. sort::o:EX:\nsort\nnumber lines::n:AW:\npr -tn\nmake:Alt+Z:m:W:\nmake\n\
  63. expand::p:EX:\nexpand\nunexpand::u:EX:\nunexpand\n",
  64. @@ -786,6 +786,8 @@
  65. {"shell", "Shell", PREF_STRING,
  66. #if defined(__MVS__) || defined(__EMX__)
  67. "/bin/sh",
  68. +#elif __LINUX__
  69. + "/bin/sh",
  70. #else
  71. "/bin/csh",
  72. #endif