install.patch 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. Description: Patch fixes installing directories and copying files under
  2. INSTALL_ROOT. Also, it adds bltOldConfig.h to the installable headers
  3. list and fixes it to include tk.h.
  4. Author: Chris Waters and Sergei Golovan
  5. Author: Steve Langasek <vorlon@debian.org>
  6. Last-Modified: Mon, 31 Aug 2015 12:37:00 -0700
  7. --- a/Makefile.in
  8. +++ b/Makefile.in
  9. @@ -47,9 +47,9 @@
  10. (cd library; $(MAKE) install)
  11. (cd man; $(MAKE) install)
  12. (cd demos; $(MAKE) install)
  13. - $(INSTALL_DATA) $(srcdir)/README $(INSTALL_DIR)$(scriptdir)
  14. - $(INSTALL_DATA) $(srcdir)/PROBLEMS $(INSTALL_DIR)$(scriptdir)
  15. - $(INSTALL_DATA) $(srcdir)/NEWS $(INSTALL_DIR)$(scriptdir)
  16. + $(INSTALL_DATA) $(srcdir)/README $(INSTALL_ROOT)$(scriptdir)
  17. + $(INSTALL_DATA) $(srcdir)/PROBLEMS $(INSTALL_ROOT)$(scriptdir)
  18. + $(INSTALL_DATA) $(srcdir)/NEWS $(INSTALL_ROOT)$(scriptdir)
  19. mkdirs:
  20. @for i in $(instdirs) ; do \
  21. @@ -57,7 +57,7 @@
  22. : ; \
  23. else \
  24. echo " mkdir $(INSTALL_ROOT)$$i" ; \
  25. - mkdir $(INSTALL_ROOT)$$i ; \
  26. + mkdir -p $(INSTALL_ROOT)$$i ; \
  27. fi ; \
  28. done
  29. @@ -66,10 +66,14 @@
  30. (cd library; $(MAKE) clean)
  31. (cd man; $(MAKE) clean)
  32. (cd demos; $(MAKE) clean)
  33. - $(RM) *.bak *\~ "#"* *pure* .pure*
  34. + $(RM) *.bak *\~ "#"* .pure*
  35. GENERATED_FILES = \
  36. config.status config.cache config.log Makefile
  37. distclean: clean
  38. + (cd generic; $(MAKE) distclean)
  39. + (cd library; $(MAKE) distclean)
  40. + (cd man; $(MAKE) distclean)
  41. + (cd demos; $(MAKE) distclean)
  42. $(RM) $(GENERATED_FILES)
  43. --- a/generic/Makefile.in
  44. +++ b/generic/Makefile.in
  45. @@ -152,6 +152,7 @@
  46. $(srcdir)/bltChain.h \
  47. bltHash.h \
  48. $(srcdir)/bltList.h \
  49. + $(srcdir)/bltOldConfig.h \
  50. $(srcdir)/bltPool.h \
  51. $(srcdir)/bltTree.h \
  52. $(srcdir)/bltDecls.h \
  53. @@ -230,7 +231,7 @@
  54. : ; \
  55. else \
  56. echo " mkdir $(INSTALL_ROOT)$$i" ; \
  57. - mkdir $(INSTALL_ROOT)$$i ; \
  58. + mkdir -p $(INSTALL_ROOT)$$i ; \
  59. fi ; \
  60. done
  61. @@ -262,7 +263,8 @@
  62. distclean: clean
  63. $(RM) $(srcdir)/*.bak $(srcdir)/*\~ $(srcdir)/"#"* Makefile
  64. - $(RM) bltConfig.h Makefile TAGS
  65. + $(RM) bltConfig.h bltHash.h Makefile TAGS
  66. + (cd shared; $(MAKE) distclean)
  67. .c.o:
  68. $(CC) -c $(CC_SWITCHES) $<
  69. --- a/generic/shared/Makefile.in
  70. +++ b/generic/shared/Makefile.in
  71. @@ -145,14 +145,20 @@
  72. $(srcdir)/bltInit.c
  73. $(RM) $@
  74. $(SHLIB_LD) $(SHLIB_LD_FLAGS) -o $@ bltInit.o $(OBJS) \
  75. - $(SHLIB_LIB_SPECS)
  76. + $(LIBS)
  77. +
  78. +# Line above changed for complete dependency listings - gordon
  79. +# $(SHLIB_LIB_SPECS)
  80. $(tcl_only_lib_so): $(TCL_ONLY_OBJS)
  81. $(CC) -c $(CC_SWITCHES) -DTCL_ONLY -DBLT_LIBRARY=\"$(scriptdir)\" \
  82. $(srcdir)/bltInit.c
  83. $(RM) $@
  84. $(SHLIB_LD) $(SHLIB_LD_FLAGS) -o $@ bltInit.o $(TCL_ONLY_OBJS) \
  85. - $(SHLIB_TCL_ONLY_LIB_SPECS)
  86. + $(TCL_ONLY_LIB_SPECS)
  87. +
  88. +# Line above changed for complete dependency listings - gordon
  89. +# $(SHLIB_TCL_ONLY_LIB_SPECS)
  90. install: mkdirs install-lib install-demo
  91. @@ -175,10 +181,10 @@
  92. done
  93. clean:
  94. $(RM) $(OBJS) $(lib_so) $(tcl_only_lib_so) $(bltwish) $(bltsh) \
  95. - *pure* .pure*
  96. + *pure* .pure* bltInit.o
  97. distclean: clean
  98. - $(RM) $(srcdir)/*.bak $(srcdir)/*\~ $(srcdir)/"#"*
  99. + $(RM) $(srcdir)/*.bak $(srcdir)/*\~ $(srcdir)/"#"* Makefile
  100. # ------------------------------------------------------------------------
  101. # in lieu of viewpath-ing...
  102. --- a/demos/Makefile.in
  103. +++ b/demos/Makefile.in
  104. @@ -79,7 +79,7 @@
  105. : ; \
  106. else \
  107. echo " mkdir $(INSTALL_ROOT)$$i" ; \
  108. - mkdir $(INSTALL_ROOT)"$$i" ; \
  109. + mkdir -p $(INSTALL_ROOT)"$$i" ; \
  110. fi ; \
  111. done
  112. --- a/man/Makefile.in
  113. +++ b/man/Makefile.in
  114. @@ -52,7 +52,7 @@
  115. : ; \
  116. else \
  117. echo " mkdir $(INSTALL_ROOT)$$i" ; \
  118. - mkdir $(INSTALL_ROOT)$$i ; \
  119. + mkdir -p $(INSTALL_ROOT)$$i ; \
  120. fi ; \
  121. done
  122. --- a/library/Makefile.in
  123. +++ b/library/Makefile.in
  124. @@ -61,7 +61,7 @@
  125. for i in $(miscFiles) ; do \
  126. $(INSTALL_DATA) $(srcdir)/$$i $(INSTALL_ROOT)$(scriptdir) ; \
  127. done
  128. - $(INSTALL_DATA) pkgIndex.tcl $(scriptdir)
  129. + $(INSTALL_DATA) pkgIndex.tcl $(INSTALL_ROOT)$(scriptdir)
  130. mkdirs:
  131. @for i in $(instdirs) ; do \
  132. @@ -69,7 +69,7 @@
  133. : ; \
  134. else \
  135. echo " mkdir $(INSTALL_ROOT)$$i" ; \
  136. - mkdir $(INSTALL_ROOT)$$i ; \
  137. + mkdir -p $(INSTALL_ROOT)$$i ; \
  138. fi ; \
  139. done
  140. --- a/generic/bltOldConfig.h
  141. +++ b/generic/bltOldConfig.h
  142. @@ -1,5 +1,7 @@
  143. /* Old config headers. */
  144. +#include <tk.h>
  145. +
  146. EXTERN int Blt_ConfigureInfo _ANSI_ARGS_((Tcl_Interp * interp,
  147. Tk_Window tkwin, Tk_ConfigSpec * specs,
  148. char * widgRec, CONST char * argvName,