OpenSDE Packages Database (without history before r20070)
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.

164 lines
6.4 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../rezound/fox-1.6.patch
  5. # Copyright (C) 2006 The T2 SDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- T2-COPYRIGHT-NOTE-END ---
  16. Out of the proaudio SVN repository.
  17. - Rene Rebe <rene@exactcode.de>
  18. --- rezound/src/frontend_fox/Makefile.am.fox16~ 2005-04-30 23:58:16.000000000 +0200
  19. +++ rezound/src/frontend_fox/Makefile.am 2006-03-27 23:40:35.000000000 +0200
  20. @@ -115,14 +115,14 @@
  21. $(top_builddir)/src/misc/CNestedDataFile/libmiscCN.la \
  22. $(top_builddir)/src/PoolFile/libPoolFile.la
  23. -rezound_LDADD=$(_rezound_LDADD) @FOX_1_5_LIBS@ @FOX_1_4_LIBS@ @FOX_1_3_LIBS@ @FOX_1_2_LIBS@ @FOX_1_1_LIBS@ @FOX_LIBS@
  24. +rezound_LDADD=$(_rezound_LDADD) @FOX_1_6_LIBS@ @FOX_1_5_LIBS@ @FOX_1_4_LIBS@ @FOX_1_3_LIBS@ @FOX_1_2_LIBS@ @FOX_1_1_LIBS@ @FOX_LIBS@
  25. ## if I don't do this, automake leaves out @abc@ vars when creating the rezound_DEPENDENCES value
  26. ## so changes to the LADSPA lib (that may or may not be built) don't cause a re-link
  27. rezound_DEPENDENCIES=$(_rezound_LDADD)
  28. -AM_CXXFLAGS=@FOX_1_5_CXXFLAGS@ @FOX_1_4_CXXFLAGS@ @FOX_1_3_CXXFLAGS@ @FOX_1_2_CXXFLAGS@ @FOX_1_1_CXXFLAGS@ @FOX_CXXFLAGS@
  29. +AM_CXXFLAGS=-I/usr/include/fox-1.6 @FOX_1_6_CXXFLAGS@ @FOX_1_5_CXXFLAGS@ @FOX_1_4_CXXFLAGS@ @FOX_1_3_CXXFLAGS@ @FOX_1_2_CXXFLAGS@ @FOX_1_1_CXXFLAGS@ @FOX_CXXFLAGS@
  30. noinst_HEADERS=\
  31. fox_compat.h \
  32. --- rezound/configure.ac.fox16~ 2005-09-05 17:34:06.000000000 +0200
  33. +++ rezound/configure.ac 2006-03-27 23:28:45.000000000 +0200
  34. @@ -615,19 +615,22 @@
  35. # This is a check for a class in a C++ library. To pinpoint the specific version we need we could change what class is linked.
  36. # it sets $1_CXXFLAGS and $1_LIBS to either something useful or nothing
  37. -ajv_CXX_CHECK_LIB(FOX-1.5,FXApp,fox-1.5/fx.h,[http://fox-toolkit.org],[],false)
  38. -if test -z "$FOX_1_5_LIBS"; then
  39. - ajv_CXX_CHECK_LIB(FOX-1.4,FXApp,fox-1.4/fx.h,[http://fox-toolkit.org],[],false)
  40. - if test -z "$FOX_1_4_LIBS"; then
  41. - ajv_CXX_CHECK_LIB(FOX-1.3,FXApp,fox-1.3/fx.h,[http://fox-toolkit.org],[],false)
  42. - if test -z "$FOX_1_3_LIBS"; then
  43. - ajv_CXX_CHECK_LIB(FOX-1.2,FXApp,fox-1.2/fx.h,[http://fox-toolkit.org],[],false)
  44. - if test -z "$FOX_1_2_LIBS"; then
  45. - # libFOX-1.2 was not found, now try libFOX-1.1
  46. - ajv_CXX_CHECK_LIB(FOX-1.1,FXApp,fox-1.1/fx.h,[http://fox-toolkit.org],[],false)
  47. - if test -z "$FOX_1_1_LIBS"; then
  48. - # libFOX-1.1 was not found, now try libFOX
  49. - ajv_CXX_CHECK_LIB(FOX,FXApp,fox/fx.h,[http://fox-toolkit.org],[],true)
  50. +ajv_CXX_CHECK_LIB(FOX-1.6,FXApp,fox-1.6/fx.h,[http://fox-toolkit.org],[],false)
  51. +if test -z "$FOX_1_6_LIBS"; then
  52. + ajv_CXX_CHECK_LIB(FOX-1.5,FXApp,fox-1.5/fx.h,[http://fox-toolkit.org],[],false)
  53. + if test -z "$FOX_1_5_LIBS"; then
  54. + ajv_CXX_CHECK_LIB(FOX-1.4,FXApp,fox-1.4/fx.h,[http://fox-toolkit.org],[],false)
  55. + if test -z "$FOX_1_4_LIBS"; then
  56. + ajv_CXX_CHECK_LIB(FOX-1.3,FXApp,fox-1.3/fx.h,[http://fox-toolkit.org],[],false)
  57. + if test -z "$FOX_1_3_LIBS"; then
  58. + ajv_CXX_CHECK_LIB(FOX-1.2,FXApp,fox-1.2/fx.h,[http://fox-toolkit.org],[],false)
  59. + if test -z "$FOX_1_2_LIBS"; then
  60. + # libFOX-1.2 was not found, now try libFOX-1.1
  61. + ajv_CXX_CHECK_LIB(FOX-1.1,FXApp,fox-1.1/fx.h,[http://fox-toolkit.org],[],false)
  62. + if test -z "$FOX_1_1_LIBS"; then
  63. + # libFOX-1.1 was not found, now try libFOX
  64. + ajv_CXX_CHECK_LIB(FOX,FXApp,fox/fx.h,[http://fox-toolkit.org],[],true)
  65. + fi
  66. fi
  67. fi
  68. fi
  69. @@ -644,6 +647,8 @@
  70. AC_SUBST(FOX_1_4_LIBS)
  71. AC_SUBST(FOX_1_5_CXXFLAGS)
  72. AC_SUBST(FOX_1_5_LIBS)
  73. +AC_SUBST(FOX_1_6_CXXFLAGS)
  74. +AC_SUBST(FOX_1_6_LIBS)
  75. AC_SUBST(FOX_CXXFLAGS)
  76. AC_SUBST(FOX_LIBS)
  77. --- rezound/src/frontend_fox/fox_compat.h.ark 2006-03-28 00:02:23.000000000 +0200
  78. +++ rezound/src/frontend_fox/fox_compat.h 2006-03-28 00:02:39.000000000 +0200
  79. @@ -21,6 +21,9 @@
  80. #elif defined(HAVE_LIBFOX_1_5)
  81. #include <fox-1.5/fx.h>
  82. #include <fox-1.5/fxkeys.h>
  83. +#elif defined(HAVE_LIBFOX_1_6)
  84. + #include <fox-1.6/fx.h>
  85. + #include <fox-1.6/fxkeys.h>
  86. #else
  87. #error no HAVE_LIBFOX defined
  88. #endif
  89. --- rezound/src/frontend_fox/CMainWindow.cpp.ark 2006-03-28 00:15:06.000000000 +0200
  90. +++ rezound/src/frontend_fox/CMainWindow.cpp 2006-03-28 00:15:59.000000000 +0200
  91. @@ -1303,7 +1303,11 @@
  92. if(value=="")
  93. continue; // no key bound to this action
  94. +#ifdef HAVE_LIBFOX_1_6
  95. + FXHotKey acckey=parseAccel(value.c_str());
  96. +#else
  97. FXHotKey acckey=fxparseAccel(value.c_str());
  98. +#endif
  99. mc->setAccelText(value.c_str());
  100. /* these shuttle controls have to be handle specially because they require key up events to return the shuttle to the middle */
  101. @@ -1344,7 +1348,11 @@
  102. vector<FXHotKey> removeKeyBindingsList;
  103. const vector<string> actionsWithKeyBindings=gKeyBindingsStore->getChildKeys("");
  104. for(size_t t=0;t<actionsWithKeyBindings.size();t++)
  105. +#ifdef HAVE_LIBFOX_1_6
  106. + removeKeyBindingsList.push_back(parseAccel(gKeyBindingsStore->getValue<string>(actionsWithKeyBindings[t]).c_str()));
  107. +#else
  108. removeKeyBindingsList.push_back(fxparseAccel(gKeyBindingsStore->getValue<string>(actionsWithKeyBindings[t]).c_str()));
  109. +#endif
  110. if(gKeyBindingsDialog->showIt(gKeyBindingRegistry))
  111. {
  112. --- rezound/src/frontend_fox/FXRezWaveView.cpp.ark 2006-03-28 00:22:20.000000000 +0200
  113. +++ rezound/src/frontend_fox/FXRezWaveView.cpp 2006-03-28 00:22:49.000000000 +0200
  114. @@ -48,7 +48,11 @@
  115. virtual void create();
  116. +#ifdef HAVE_LIBFOX_1_6
  117. + virtual bool canFocus() const;
  118. +#else
  119. virtual FXbool canFocus() const;
  120. +#endif
  121. size_t getClickedCue(FXint x,FXint y);
  122. @@ -369,7 +373,11 @@
  123. font->create();
  124. }
  125. +#ifdef HAVE_LIBFOX_1_6
  126. +bool FXWaveRuler::canFocus() const
  127. +#else
  128. FXbool FXWaveRuler::canFocus() const
  129. +#endif
  130. {
  131. return 1;
  132. }
  133. --- rezound/src/frontend_fox/CKeyBindingsDialog.cpp.ark 2006-03-28 00:23:09.000000000 +0200
  134. +++ rezound/src/frontend_fox/CKeyBindingsDialog.cpp 2006-03-28 00:23:22.000000000 +0200
  135. @@ -208,7 +208,11 @@
  136. }
  137. else
  138. {
  139. +#ifdef HAVE_LIBFOX_1_6
  140. + string tmp_key=unparseAccel(keycode).text();
  141. +#else
  142. string tmp_key=fxunparseAccel(keycode).text();
  143. +#endif
  144. if(tmp_key=="")
  145. Error(_("Unhandled Key Combination"));
  146. else