From: Sughosha via Guix-patches via <guix-patches@gnu.org>
To: 74723@debbugs.gnu.org
Cc: Sughosha <sughosha@disroot.org>
Subject: [bug#74723] [PATCH 18/19] gnu: Add lmms-1.3.
Date: Sat, 7 Dec 2024 17:50:32 +0530 [thread overview]
Message-ID: <b5265694094c9f2232c1e387238af87239433f99.1733563475.git.sughosha@disroot.org> (raw)
In-Reply-To: <cover.1733563475.git.sughosha@disroot.org>
* gnu/packages/music.scm (lmms-1.3): New variable.
Change-Id: Ia921c482948d6d18d88ef1cba3630a7994fac5a3
---
gnu/packages/music.scm | 84 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 84 insertions(+)
diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm
index 5ec58119ff..42688f2eac 100644
--- a/gnu/packages/music.scm
+++ b/gnu/packages/music.scm
@@ -163,6 +163,7 @@ (define-module (gnu packages music)
#:use-module (gnu packages llvm)
#:use-module (gnu packages lua)
#:use-module (gnu packages man)
+ #:use-module (gnu packages maths)
#:use-module (gnu packages mp3)
#:use-module (gnu packages mpd)
#:use-module (gnu packages ncurses)
@@ -213,6 +214,7 @@ (define-module (gnu packages music)
#:use-module (gnu packages xiph)
#:use-module (gnu packages xml)
#:use-module (gnu packages xorg)
+ #:use-module (ice-9 match)
#:use-module ((srfi srfi-1) #:select (last)))
(define-public alsa-scarlett-gui
@@ -5374,6 +5376,88 @@ (define-public lmms
can receive input from a MIDI keyboard.")
(license license:gpl2+)))
+;;; This package variant tracks the latest in-development 1.3 release.
+(define-public lmms-1.3
+ (let ((commit "d9737881cf482e89969948f56da954cbf5c11aca") ;from master branch
+ (revision "0"))
+ (package/inherit lmms
+ (version (git-version "1.3.0-alpha.1" revision commit))
+ (source
+ (origin
+ (inherit (package-source lmms))
+ (uri (git-reference
+ (url "https://github.com/LMMS/lmms")
+ (commit commit)
+ ;; Clone recursively for optional plugins.
+ (recursive? #t)))
+ (file-name (git-file-name (package-name lmms) version))
+ (sha256
+ (base32 "0hscgnbladrkbvv551bv7vzi5949gjhf397j35wghd07hwd2lrb0"))
+ (modules '((guix build utils)))
+ (snippet
+ '(begin
+ ;; Delete the bundled 3rd party libraries.
+ (for-each delete-file-recursively
+ (list "plugins/CarlaBase/carla"
+ "plugins/OpulenZ/adplug"
+ "plugins/Xpressive/exprtk"
+ "src/3rdparty"))
+ (substitute* "CMakeLists.txt"
+ ;; Do not check the submodules.
+ ((".*CheckSubmodules.*") "")
+ ;; Unuse the bundled weakjack.
+ (("JACK libraries\" ON") "JACK libraries\" OFF"))
+ (substitute* "src/CMakeLists.txt"
+ ((".*3rdparty.*") "")
+ ;; Use adplug and ringbuffer from the system.
+ (("\\$\\{EXTRA_LIBRARIES\\}")
+ "${EXTRA_LIBRARIES}\n\tadplug\n\tringbuffer"))
+ (with-directory-excursion "plugins"
+ ;; Use carla from the system.
+ (substitute* "CarlaBase/Carla.h"
+ (("#include <CarlaDefines")
+ "#include <carla/includes/CarlaDefines")
+ (("#include <CarlaNative")
+ "#include <carla/includes/CarlaNative")
+ (("#include <CarlaBackend") "#include <carla/CarlaBackend")
+ (("#include <CarlaUtils") "#include <carla/CarlaUtils"))
+ (with-directory-excursion "OpulenZ"
+ ;; Unuse the bundled adplug.
+ (substitute* "CMakeLists.txt"
+ ((".*adplug .*") "")
+ ((".*adplug/.*") "")
+ (("^\\)") "")
+ (("\\.png\"") ".png\"\n)"))
+ ;; Use adplug from the system.
+ (substitute* "OpulenZ.cpp"
+ (("<opl\\.h>") "<adplug/opl.h>")
+ (("<temuopl\\.h>") "<adplug/temuopl.h>")
+ (("<mididata\\.h>") "<adplug/mididata.h>")))
+ ;; Unuse the bundled exprtk.
+ (substitute* "Xpressive/CMakeLists.txt"
+ ((".*\\(exprtk .*") "")
+ ((".*xpressive exprtk.*") "")))))))
+ (inputs
+ (modify-inputs (package-inputs lmms)
+ (delete "rpmalloc")
+ (replace "carla" carla)
+ (replace "sdl12-compat" sdl2)
+ (append adplug
+ exprtk
+ lame
+ libxml2
+ lilv
+ lv2
+ perl
+ perl-list-moreutils
+ perl-xml-parser
+ ringbuffer
+ suil)))
+ (native-search-paths
+ (list (search-path-specification
+ (variable "LV2_PATH")
+ (files '("lib/lv2"))))))))
+
(define-public stargate
(package
(name "stargate")
--
2.46.0
next prev parent reply other threads:[~2024-12-07 12:26 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-07 12:07 [bug#74723] [PATCH 00/19] gnu: lmms, carla: New features, fixes and updates Sughosha via Guix-patches via
2024-12-07 12:20 ` [bug#74723] [PATCH 01/19] gnu: lmms: Fix building carla plugins Sughosha via Guix-patches via
2024-12-07 12:20 ` [bug#74723] [PATCH 02/19] gnu: carla: Fix making carla executable Sughosha via Guix-patches via
2024-12-07 12:20 ` [bug#74723] [PATCH 03/19] gnu: lmms: Enable libsoundio and PulseAudio support Sughosha via Guix-patches via
2024-12-07 12:20 ` [bug#74723] [PATCH 04/19] gnu: carla: Enable " Sughosha via Guix-patches via
2024-12-07 12:20 ` [bug#74723] [PATCH 05/19] gnu: lmms: Enable MP3 file format support for project export Sughosha via Guix-patches via
2024-12-07 12:20 ` [bug#74723] [PATCH 06/19] gnu: carla: Add native-search-paths Sughosha via Guix-patches via
2024-12-07 12:20 ` [bug#74723] [PATCH 07/19] gnu: Add stk Sughosha via Guix-patches via
2024-12-07 12:20 ` [bug#74723] [PATCH 08/19] gnu: lmms: Enable Stk Mallets and GIG Player Sughosha via Guix-patches via
2024-12-07 12:20 ` [bug#74723] [PATCH 09/19] gnu: lmms: Enable Wayland support Sughosha via Guix-patches via
2024-12-07 12:20 ` [bug#74723] [PATCH 10/19] gnu: carla: " Sughosha via Guix-patches via
2024-12-07 12:20 ` [bug#74723] [PATCH 11/19] gnu: Add ringbuffer Sughosha via Guix-patches via
2024-12-07 12:20 ` [bug#74723] [PATCH 12/19] gnu: Add libbinio Sughosha via Guix-patches via
2024-12-07 12:20 ` [bug#74723] [PATCH 13/19] gnu: Add adplug Sughosha via Guix-patches via
2024-12-07 12:20 ` [bug#74723] [PATCH 14/19] gnu: Add exprtk Sughosha via Guix-patches via
2024-12-07 12:20 ` [bug#74723] [PATCH 15/19] gnu: carla: Update to 2.5.9 Sughosha via Guix-patches via
2024-12-07 12:20 ` [bug#74723] [PATCH 16/19] gnu: Add carla-2.4 Sughosha via Guix-patches via
2024-12-07 12:20 ` [bug#74723] [PATCH 17/19] gnu: lmms: Replace carla with carla-2.4 Sughosha via Guix-patches via
2024-12-07 12:20 ` Sughosha via Guix-patches via [this message]
2024-12-07 12:20 ` [bug#74723] [PATCH 19/19] gnu: carla-2.6: Update to 2.6.0-1.17000e7 Sughosha via Guix-patches via
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b5265694094c9f2232c1e387238af87239433f99.1733563475.git.sughosha@disroot.org \
--to=guix-patches@gnu.org \
--cc=74723@debbugs.gnu.org \
--cc=sughosha@disroot.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).