Advertisement
Guest User

enable-vst.patch

a guest
Apr 5th, 2016
568
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 6.75 KB | None | 0 0
  1. diff -Nru lmms-1.1.3.orig/debian/changelog lmms-1.1.3/debian/changelog
  2. --- lmms-1.1.3.orig/debian/changelog    2015-09-21 13:54:03.000000000 +0200
  3. +++ lmms-1.1.3/debian/changelog 2016-04-05 23:26:39.000000000 +0200
  4. @@ -1,3 +1,11 @@
  5. +lmms (1.1.3-1.1) unstable; urgency=low
  6. +
  7. +  * Non-maintainer upload.
  8. +  * Enabled vst plugin on i386.
  9. +  * Do not build convenience copies of LADSPA plugins.
  10. +
  11. + -- Javier Serrano Polo <[email protected]>  Mon, 04 Apr 2016 19:42:09 +0200
  12. +
  13.  lmms (1.1.3-1) unstable; urgency=low
  14.  
  15.    * New upstream version 1.1.3 (Closes: #788457).
  16. diff -Nru lmms-1.1.3.orig/debian/control lmms-1.1.3/debian/control
  17. --- lmms-1.1.3.orig/debian/control  2015-09-21 13:52:26.000000000 +0200
  18. +++ lmms-1.1.3/debian/control   2016-04-05 23:26:39.000000000 +0200
  19. @@ -8,8 +8,6 @@
  20.  Build-Depends:
  21.   cmake,
  22.   debhelper (>= 9.0.0),
  23. - gcc-multilib [amd64],
  24. - g++-multilib [amd64],
  25.   imagemagick,
  26.   ladspa-sdk,
  27.   libsdl-sound1.2-dev,
  28. @@ -31,6 +29,7 @@
  29.   libxft-dev,
  30.   portaudio19-dev,
  31.   qt4-qmake,
  32. + wine32-tools [i386]
  33.  Standards-Version: 3.9.6
  34.  Homepage: http://lmms.io/
  35.  Vcs-Browser: http://anonscm.debian.org/cgit/debian-edu/pkg-team/lmms.git/
  36. @@ -39,7 +38,8 @@
  37.  Package: lmms
  38.  Architecture: any
  39.  Depends: lmms-common (>= ${source:Version}) , ${shlibs:Depends}, ${misc:Depends}, stk
  40. -Recommends: tap-plugins, caps
  41. +Recommends: calf-plugins, caps, cmt, swh-plugins, tap-plugins,
  42. + lmms-vst-server (>= ${source:Version})
  43.  Suggests: fil-plugins, mcp-plugins, omins, freepats, fluid-soundfont-gm
  44.  Replaces: lmms-common (<< 1.0.0-1)
  45.  Breaks: lmms-common (<< 1.0.0-1)
  46. @@ -70,3 +70,10 @@
  47.   .
  48.   This package contains the platform independent files such as samples, presets
  49.   and some example projects.
  50. +
  51. +Package: lmms-vst-server
  52. +Architecture: i386
  53. +Depends: wine, wine32, ${shlibs:Depends}, ${misc:Depends}
  54. +Recommends: lmms
  55. +Description: Linux Multimedia Studio - VST server
  56. + This package contains a helper application that loads VST plugins.
  57. diff -Nru lmms-1.1.3.orig/debian/lmms.install lmms-1.1.3/debian/lmms.install
  58. --- lmms-1.1.3.orig/debian/lmms.install 2015-09-21 13:52:26.000000000 +0200
  59. +++ lmms-1.1.3/debian/lmms.install  2016-04-05 23:26:39.000000000 +0200
  60. @@ -1,5 +1,6 @@
  61.  usr/bin/lmms
  62. -usr/lib/*/lmms
  63. +usr/lib/*/lmms/lib*
  64. +usr/lib/*/lmms/RemoteZynAddSubFx
  65.  usr/share/man/*
  66.  usr/share/applications/*
  67.  data/application-x-lmms-project.svg    usr/share/icons/gnome/scalable/mimetypes
  68. diff -Nru lmms-1.1.3.orig/debian/lmms-vst-server.install lmms-1.1.3/debian/lmms-vst-server.install
  69. --- lmms-1.1.3.orig/debian/lmms-vst-server.install  1970-01-01 01:00:00.000000000 +0100
  70. +++ lmms-1.1.3/debian/lmms-vst-server.install   2016-04-05 23:26:39.000000000 +0200
  71. @@ -0,0 +1 @@
  72. +usr/lib/*/lmms/RemoteVstPlugin*
  73. diff -Nru lmms-1.1.3.orig/debian/patches/find-vst_base.patch lmms-1.1.3/debian/patches/find-vst_base.patch
  74. --- lmms-1.1.3.orig/debian/patches/find-vst_base.patch  1970-01-01 01:00:00.000000000 +0100
  75. +++ lmms-1.1.3/debian/patches/find-vst_base.patch   2016-04-05 23:56:20.000000000 +0200
  76. @@ -0,0 +1,49 @@
  77. +Description: Find vstbase library at runtime
  78. + The NEEDED entry was ../vst_base/libvstbase.so. The library was searched in
  79. + ../vst_base, which is relative to the invocation directory. The patch sets the
  80. + RUNPATH entry.
  81. +Author: Javier Serrano Polo <[email protected]>
  82. +
  83. +Index: lmms-1.1.3/plugins/CMakeLists.txt
  84. +===================================================================
  85. +--- lmms-1.1.3.orig/plugins/CMakeLists.txt 2016-04-05 23:41:16.000000000 +0200
  86. ++++ lmms-1.1.3/plugins/CMakeLists.txt  2016-04-05 23:52:36.000000000 +0200
  87. +@@ -33,8 +33,9 @@
  88. + ADD_SUBDIRECTORY(stereo_matrix)
  89. + ADD_SUBDIRECTORY(stk)
  90. + ADD_SUBDIRECTORY(triple_oscillator)
  91. +-ADD_SUBDIRECTORY(vestige)
  92. ++# dependency is not detected
  93. + ADD_SUBDIRECTORY(vst_base)
  94. ++ADD_SUBDIRECTORY(vestige)
  95. + ADD_SUBDIRECTORY(VstEffect)
  96. + ADD_SUBDIRECTORY(watsyn)
  97. + ADD_SUBDIRECTORY(waveshaper)
  98. +Index: lmms-1.1.3/plugins/VstEffect/CMakeLists.txt
  99. +===================================================================
  100. +--- lmms-1.1.3.orig/plugins/VstEffect/CMakeLists.txt   2015-03-08 03:47:14.000000000 +0100
  101. ++++ lmms-1.1.3/plugins/VstEffect/CMakeLists.txt    2016-04-05 23:27:04.000000000 +0200
  102. +@@ -2,7 +2,8 @@
  103. + INCLUDE(BuildPlugin)
  104. + INCLUDE_DIRECTORIES("${CMAKE_CURRENT_SOURCE_DIR}/../vst_base")
  105. + LINK_DIRECTORIES("${CMAKE_CURRENT_BINARY_DIR}/../vst_base")
  106. +-LINK_LIBRARIES(vstbase)
  107. ++LINK_LIBRARIES(-lvstbase -Wl,--enable-new-dtags)
  108. ++SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${PLUGIN_DIR}")
  109. + BUILD_PLUGIN(vsteffect VstEffect.cpp VstEffectControls.cpp VstEffectControlDialog.cpp VstSubPluginFeatures.cpp VstEffect.h VstEffectControls.h VstEffectControlDialog.h VstSubPluginFeatures.h MOCFILES VstEffectControlDialog.h VstEffectControls.h EMBEDDED_RESOURCES "${CMAKE_CURRENT_SOURCE_DIR}/*.png")
  110. + SET_TARGET_PROPERTIES(vsteffect PROPERTIES COMPILE_FLAGS "-Wno-attributes")
  111. +
  112. +Index: lmms-1.1.3/plugins/vestige/CMakeLists.txt
  113. +===================================================================
  114. +--- lmms-1.1.3.orig/plugins/vestige/CMakeLists.txt 2015-03-08 03:47:14.000000000 +0100
  115. ++++ lmms-1.1.3/plugins/vestige/CMakeLists.txt  2016-04-05 23:51:23.000000000 +0200
  116. +@@ -2,7 +2,8 @@
  117. +    INCLUDE(BuildPlugin)
  118. +    INCLUDE_DIRECTORIES("${CMAKE_CURRENT_SOURCE_DIR}/../vst_base")
  119. +    LINK_DIRECTORIES("${CMAKE_CURRENT_BINARY_DIR}/../vst_base")
  120. +-   LINK_LIBRARIES(vstbase)
  121. ++   LINK_LIBRARIES(-lvstbase -Wl,--enable-new-dtags)
  122. ++   SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${PLUGIN_DIR}")
  123. +    BUILD_PLUGIN(vestige vestige.cpp vestige.h MOCFILES vestige.h EMBEDDED_RESOURCES "${CMAKE_CURRENT_SOURCE_DIR}/*.png")
  124. + ENDIF(LMMS_SUPPORT_VST)
  125. +
  126. diff -Nru lmms-1.1.3.orig/debian/patches/series lmms-1.1.3/debian/patches/series
  127. --- lmms-1.1.3.orig/debian/patches/series   2015-09-21 13:52:26.000000000 +0200
  128. +++ lmms-1.1.3/debian/patches/series    2016-04-05 23:26:39.000000000 +0200
  129. @@ -2,3 +2,4 @@
  130.  find-fluid.patch
  131.  gcc5.patch
  132.  man-page-adjustment.patch
  133. +find-vst_base.patch
  134. diff -Nru lmms-1.1.3.orig/debian/rules lmms-1.1.3/debian/rules
  135. --- lmms-1.1.3.orig/debian/rules    2015-09-21 13:52:26.000000000 +0200
  136. +++ lmms-1.1.3/debian/rules 2016-04-05 23:26:39.000000000 +0200
  137. @@ -4,13 +4,20 @@
  138.  
  139.  DH_CMAKE_BUILD_DIR=obj -${DEB_BUILD_GNU_TYPE}
  140.  DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
  141. +DEB_HOST_ARCH      ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
  142.  DEB_HOST_ARCH_OS   ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
  143.  
  144. -CMAKE_OPTS=
  145. +CMAKE_OPTS=-DWANT_CALF=0 -DWANT_CAPS=0 -DWANT_CMT=0 -DWANT_SWH=0 -DWANT_TAP=0
  146.  ifneq ($(DEB_HOST_ARCH_OS),linux)
  147.  CMAKE_OPTS+= -DWANT_ALSA=0
  148.  endif
  149.  
  150. +ifeq ($(DEB_HOST_ARCH),i386)
  151. +export PATH := $(PATH):/usr/lib/$(DEB_HOST_MULTIARCH)/wine
  152. +else
  153. +CMAKE_OPTS+= -DWANT_VST_NOWINE=1
  154. +endif
  155. +
  156.  %:
  157.     dh $@ --buildsystem cmake
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement