[debian-edu-commits] debian-edu/pkg-team/ 01/01: First draft for a VST plugin on i386, based on the work from Israel Dahl.
Petter Reinholdtsen
pere at moszumanska.debian.org
Mon Sep 21 10:26:35 UTC 2015
This is an automated email from the git hooks/post-receive script.
pere pushed a commit to branch plugin-vst-full
in repository lmms.
commit 48232a889d004215dc2e4c387d72f33ec237cfb5
Author: Petter Reinholdtsen <pere at hungry.com>
Date: Mon Sep 21 10:25:48 2015 +0000
First draft for a VST plugin on i386, based on the work from Israel Dahl.
---
debian/control | 22 +++++++++++++++++++++-
debian/lmms-plugin-vst-full.install | 1 +
debian/patches/01_vst_patch | 28 ++++++++++++++++++++++++++++
debian/patches/series | 1 +
debian/rules | 18 +++++++++++++++---
5 files changed, 66 insertions(+), 4 deletions(-)
diff --git a/debian/control b/debian/control
index f350f06..f49ac9a 100644
--- a/debian/control
+++ b/debian/control
@@ -31,6 +31,7 @@ Build-Depends:
libxft-dev,
portaudio19-dev,
qt4-qmake,
+ wine-dev[i386]
Standards-Version: 3.9.6
Homepage: http://lmms.io/
Vcs-Browser: http://anonscm.debian.org/cgit/debian-edu/pkg-team/lmms.git/
@@ -39,7 +40,7 @@ Vcs-Git: git://anonscm.debian.org/debian-edu/pkg-team/lmms.git
Package: lmms
Architecture: any
Depends: lmms-common (>= ${source:Version}) , ${shlibs:Depends}, ${misc:Depends}, stk
-Recommends: tap-plugins, caps
+Recommends: lmms-plugin-vst-full (=> ${source:Version}) [amd64 i386], tap-plugins, caps
Suggests: fil-plugins, mcp-plugins, omins, freepats, fluid-soundfont-gm
Replaces: lmms-common (<< 1.0.0-1)
Breaks: lmms-common (<< 1.0.0-1)
@@ -70,3 +71,22 @@ Description: Linux Multimedia Studio - common files
.
This package contains the platform independent files such as samples, presets
and some example projects.
+
+Package: lmms-plugin-vst-full
+Architecture: i386
+Multi-Arch: foreign
+Depends: lmms (>= ${source:Version}), ${shlibs:Depends}, ${misc:Depends}
+Breaks: lmms (<< 1.0.0~)
+Replaces: lmms (<< 1.0.0~)
+Description: Linux Multimedia Studio - full VST support using Wine
+ LMMS aims to be a free alternative to popular (but commercial and closed-
+ source) programs like FruityLoops, Cubase and Logic giving you the ability of
+ producing music with your computer by creating cool loops, synthesizing and
+ mixing sounds, arranging samples, having more fun with your MIDI-keyboard
+ and much more...
+ .
+ LMMS combines the features of a tracker-/sequencer-program (pattern-/channel-/
+ sample-/song-/effect-management) and those of powerful synthesizers and
+ samplers in a modern, user-friendly and easy to use graphical user-interface.
+ .
+ This package contains the plugin which provides full VST support using Wine.
diff --git a/debian/lmms-plugin-vst-full.install b/debian/lmms-plugin-vst-full.install
new file mode 100644
index 0000000..1b52047
--- /dev/null
+++ b/debian/lmms-plugin-vst-full.install
@@ -0,0 +1 @@
+usr/lib/*/lmms/RemoteVstPlugin*
diff --git a/debian/patches/01_vst_patch b/debian/patches/01_vst_patch
new file mode 100644
index 0000000..1c6ba55
--- /dev/null
+++ b/debian/patches/01_vst_patch
@@ -0,0 +1,28 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -309,14 +309,20 @@
+
+ # check for WINE
+ IF(WANT_VST)
+- FIND_PACKAGE(Wine)
+- IF(WINE_FOUND)
++ IF(WANT_VST_NOWINE)
+ SET(LMMS_SUPPORT_VST TRUE)
+ SET(STATUS_VST "OK")
+- ELSE(WINE_FOUND)
+- SET(STATUS_VST "not found, please install (lib)wine-dev (or similiar) - 64 bit systems additionally need gcc-multilib and g++-multilib")
+- ENDIF(WINE_FOUND)
++ ELSE(WANT_VST_NOWINE)
++ FIND_PACKAGE(Wine)
++ IF(WINE_FOUND)
++ SET(LMMS_SUPPORT_VST TRUE)
++ SET(STATUS_VST "OK")
++ ELSE(WINE_FOUND)
++ SET(STATUS_VST "not found, please install (lib)wine-dev (or similiar) - 64 bit systems additionally need gcc-multilib and g++-multilib")
++ ENDIF(WINE_FOUND)
++ ENDIF(WANT_VST_NOWINE)
+ ENDIF(WANT_VST)
++
+ IF(LMMS_BUILD_WIN32)
+ SET(LMMS_SUPPORT_VST TRUE)
+ SET(STATUS_VST "OK")
diff --git a/debian/patches/series b/debian/patches/series
index ee07457..157634d 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@ desktop-argument.patch
find-fluid.patch
gcc5.patch
man-page-adjustment.patch
+01_vst_patch
diff --git a/debian/rules b/debian/rules
index 9001a74..63ff8a7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,14 +5,26 @@
DH_CMAKE_BUILD_DIR=obj -${DEB_BUILD_GNU_TYPE}
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
+DEB_HOST_ARCH_CPU ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU)
+
+# Handle multi-arch by storing plugins in arch dependent directories.
+CMAKE_OPTS=-DCMAKE_INSTALL_LIBDIR=lib/$(DEB_HOST_MULTIARCH)
-CMAKE_OPTS=
ifneq ($(DEB_HOST_ARCH_OS),linux)
-CMAKE_OPTS+= -DWANT_ALSA=0
+ # Disable ALSA on non-linux platforms
+ CMAKE_OPTS += -DWANT_ALSA=0
+ ifeq ($(DEB_HOST_ARCH_CPU),i386)
+ # Enable VST on linux i386 (See BTS #763720)
+ CMAKE_OPTS += -DWANT_VST_NOWINE:BOOL=OFF
+ endif
endif
%:
dh $@ --buildsystem cmake
override_dh_auto_configure:
- dh_auto_configure -- -DCMAKE_INSTALL_LIBDIR=lib/$(DEB_HOST_MULTIARCH) $(CMAKE_OPTS)
+ dh_auto_configure -- $(CMAKE_OPTS)
+
+override_dh_install:
+ dh_install
+ rm -f debian/lmms/usr/lib/*/lmms/RemoteVstPlugin*
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/pkg-team/lmms.git
More information about the debian-edu-commits
mailing list