ladspa-sdk 1.15 (new formula)
parent
cb218bd924
commit
8fa24a2898
|
@ -3,6 +3,7 @@ on:
|
|||
pull_request:
|
||||
paths:
|
||||
- "Formula/alsa-lib.rb"
|
||||
- "Formula/ladspa-sdk.rb"
|
||||
- "Formula/libseccomp.rb"
|
||||
jobs:
|
||||
tests_linux:
|
||||
|
|
|
@ -0,0 +1,46 @@
|
|||
class LadspaSdk < Formula
|
||||
desc "Linux Audio Developer's Simple Plugin"
|
||||
homepage "https://ladspa.org"
|
||||
url "https://www.ladspa.org/download/ladspa_sdk_1.15.tgz"
|
||||
sha256 "4229959b09d20c88c8c86f4aa76427843011705df22d9c28b38359fd1829fded"
|
||||
license "LGPL-2.1-only"
|
||||
|
||||
depends_on :linux
|
||||
|
||||
def install
|
||||
args = %W[
|
||||
INSTALL_PLUGINS_DIR=#{lib}/ladspa
|
||||
INSTALL_INCLUDE_DIR=#{include}
|
||||
INSTALL_BINARY_DIR=#{bin}
|
||||
]
|
||||
cd "src" do
|
||||
system "make", "install", *args
|
||||
end
|
||||
bin.env_script_all_files libexec/"bin", LADSPA_PATH: opt_lib/"ladspa"
|
||||
end
|
||||
|
||||
test do
|
||||
output = shell_output("#{bin}/listplugins")
|
||||
assert_match "Mono Amplifier", output
|
||||
assert_match "Simple Delay Line", output
|
||||
assert_match "Simple Low Pass Filter", output
|
||||
assert_match "Simple High Pass Filter", output
|
||||
assert_match "Sine Oscillator", output
|
||||
assert_match "Stereo Amplifier", output
|
||||
assert_match "White Noise Source", output
|
||||
|
||||
expected_output = <<~EOS
|
||||
Plugin Name: "Mono Amplifier"
|
||||
Plugin Label: "amp_mono"
|
||||
Plugin Unique ID: 1048
|
||||
Maker: "Richard Furse (LADSPA example plugins)"
|
||||
Copyright: "None"
|
||||
Must Run Real-Time: No
|
||||
Has activate() Function: No
|
||||
Has deactivate() Function: No
|
||||
Has run_adding() Function: No
|
||||
Environment: Normal or Hard Real-Time
|
||||
EOS
|
||||
assert_match expected_output, shell_output("#{bin}/analyseplugin amp")
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue