netpbm-10.66-options-case.patch 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. r2175 | giraffedata | 2014-04-01 22:28:23 -0400 (Tue, 01 Apr 2014) | 1 line
  2. Fix bug: inconsistent use of upper and lower case Y and N in make file variables. Make it consistently upper case
  3. --- buildtools/configure.pl (revision 2174)
  4. +++ buildtools/configure.pl (revision 2175)
  5. @@ -835,16 +835,16 @@ sub getLibTypes($$$$$$$$) {
  6. my $response = prompt("(y)es or (n)o", $default);
  7. if (uc($response) =~ /^(Y|YES)$/) {
  8. - $staticlib_too = "y";
  9. + $staticlib_too = "Y";
  10. } elsif (uc($response) =~ /^(N|NO)$/) {
  11. - $staticlib_too = "n";
  12. + $staticlib_too = "N";
  13. } else {
  14. print("'$response' isn't one of the choices. \n" .
  15. "You must choose 'yes' or 'no' (or 'y' or 'n').\n");
  16. exit 12;
  17. }
  18. } else {
  19. - $staticlib_too = "n";
  20. + $staticlib_too = "N";
  21. }
  22. print("\n");
  23. --- config.mk.in (revision 2174)
  24. +++ config.mk.in (revision 2175)
  25. @@ -503,7 +503,7 @@ LINUXSVGAHDR_DIR =
  26. #LINUXSVGALIB = /usr/lib/libvga.so
  27. #LINUXSVGAHDR_DIR = /usr/include/vgalib
  28. -# If you don't want any network functions, set OMIT_NETWORK to "y".
  29. +# If you don't want any network functions, set OMIT_NETWORK to "Y".
  30. # The only thing that requires network functions is the option in
  31. # ppmtompeg to run it on multiple computers simultaneously. On some
  32. # systems network functions don't work or we haven't figured out how to
  33. @@ -512,11 +512,11 @@ OMIT_NETWORK =
  34. #DJGPP/Windows, Tru64:
  35. # (there's some minor header problem that prevents network functions from
  36. # building on Tru64 2000.10.06)
  37. -#OMIT_NETWORK = y
  38. +#OMIT_NETWORK = Y
  39. # These are -l options to link in the network libraries. Often, these are
  40. # built into the standard C library, so this can be null. This is irrelevant
  41. -# if OMIT_NETWORK is "y".
  42. +# if OMIT_NETWORK is "Y".
  43. NETWORKLD =
  44. # Solaris, SunOS:
  45. @@ -602,12 +602,12 @@ NETPBMLIBSUFFIX = so
  46. # Windows shared library:
  47. #NETPBMLIBSUFFIX = dll
  48. -#STATICLIB_TOO is "y" to signify that you want a static library built
  49. +#STATICLIB_TOO is "Y" to signify that you want a static library built
  50. #and installed in addition to whatever library type you specified by
  51. #NETPBMLIBTYPE. If NETPBMLIBTYPE specified a static library,
  52. #STATICLIB_TOO simply has no effect.
  53. -STATICLIB_TOO = y
  54. -#STATICLIB_TOO = n
  55. +STATICLIB_TOO = Y
  56. +#STATICLIB_TOO = N
  57. #STATICLIBSUFFIX is the suffix that static libraries have. It's
  58. #meaningless if you aren't building static libraries.
  59. --- GNUmakefile (revision 2174)
  60. +++ GNUmakefile (revision 2175)
  61. @@ -396,19 +396,19 @@ lib/install.hdr:
  62. $(MAKE) -C $(dir $@) -f $(SRCDIR)/lib/Makefile \
  63. SRCDIR=$(SRCDIR) BUILDDIR=$(BUILDDIR) $(notdir $@)
  64. -ifeq ($(STATICLIB_TOO),y)
  65. -BUILD_STATIC = y
  66. +ifeq ($(STATICLIB_TOO),Y)
  67. +BUILD_STATIC = Y
  68. else
  69. ifeq ($(NETPBMLIBTYPE),unixstatic)
  70. - BUILD_STATIC = y
  71. + BUILD_STATIC = Y
  72. else
  73. - BUILD_STATIC = n
  74. + BUILD_STATIC = N
  75. endif
  76. endif
  77. .PHONY: install.staticlib
  78. install.staticlib:
  79. -ifeq ($(BUILD_STATIC),y)
  80. +ifeq ($(BUILD_STATIC),Y)
  81. $(MAKE) -C lib -f $(SRCDIR)/lib/Makefile \
  82. SRCDIR=$(SRCDIR) BUILDDIR=$(BUILDDIR) install.staticlib
  83. endif
  84. --- lib/Makefile (revision 2174)
  85. +++ lib/Makefile (revision 2175)
  86. @@ -175,7 +175,7 @@ else
  87. ifeq ($(STATICLIB_TOO),Y)
  88. BUILD_STATICLIB = Y
  89. else
  90. - BUILD_STATICLIB = n
  91. + BUILD_STATICLIB = N
  92. endif
  93. endif