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.
55 lines
2.1 KiB
55 lines
2.1 KiB
# Copyright (C) 2020-2021 Alexandros Theodotou <alex at zrythm dot org> |
|
# |
|
# This file is part of Zrythm |
|
# |
|
# Zrythm is free software: you can redistribute it and/or modify |
|
# it under the terms of the GNU Affero General Public License as published by |
|
# the Free Software Foundation, either version 3 of the License, or |
|
# (at your option) any later version. |
|
# |
|
# Zrythm is distributed in the hope that it will be useful, |
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
# GNU Affero General Public License for more details. |
|
# |
|
# You should have received a copy of the GNU Affero General Public License |
|
# along with Zrythm. If not, see <https://www.gnu.org/licenses/>. |
|
# |
|
class CarlaGit < Formula |
|
desc "Audio plugin host supporting LADSPA, LV2, VST2/3, SF2 and more" |
|
homepage "https://kxstudio.linuxaudio.org/Applications:Carla" |
|
url "https://github.com/falkTX/Carla/archive/@CARLA_GIT_VER@.zip" |
|
sha256 "@CARLA_BREW_SHA256@" |
|
head "https://github.com/falkTX/Carla.git" |
|
version "@CARLA_BOTTLE_VER@" |
|
|
|
bottle do |
|
# Fix: Calling `sha256 "digest" => :tag` in a bottle block is disabled! Use `brew style --fix` on the formula to update the style or use `sha256 tag: "digest"` instead. |
|
#cellar :any |
|
sha256 catalina: "0149197353ef0d86c25623d77688a0f3ce045263d76213e7174a3107d10222ea" |
|
sha256 mojave: "097ebd9b6fbb10cbcf46cd10b58f8305159ef090d68ae8d89049f0c0b8998d9c" |
|
sha256 high_sierra: "51ee66c8406766f33784fe139c292bad745ff43581164168f30f5ffa77171a06" |
|
end |
|
|
|
depends_on "pkg-config" => :build |
|
depends_on "fluid-synth" |
|
depends_on "liblo" |
|
depends_on "libmagic" |
|
depends_on "pyqt@5" |
|
depends_on "python@3.9" |
|
|
|
def install |
|
system "make" |
|
system "make", "install", "PREFIX=#{prefix}" |
|
|
|
inreplace bin/"carla", "PYTHON=$(which python3 2>/dev/null)", |
|
"PYTHON=#{Formula["python@3.9"].opt_bin}/python3" |
|
system "cp", "#{lib}/carla/carla-discovery-native", |
|
"#{bin}/" |
|
end |
|
|
|
test do |
|
system bin/"carla", "--version" |
|
system lib/"carla/carla-discovery-native", "internal", ":all" |
|
end |
|
end
|
|
|