Skip to content

Commit

Permalink
ola: declare indirect deps with linkage
Browse files Browse the repository at this point in the history
Signed-off-by: Rui Chen <[email protected]>

ola: add liblo 0.32 header compat patch

Signed-off-by: Rui Chen <[email protected]>
  • Loading branch information
chenrui333 committed Jul 22, 2024
1 parent e4b86a7 commit a3e216b
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions Formula/o/ola.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,23 @@ class Ola < Formula

desc "Open Lighting Architecture for lighting control information"
homepage "https://www.openlighting.org/ola/"
# TODO: Check if we can use unversioned `protobuf` at version bump
url "https://github.com/OpenLightingProject/ola/releases/download/0.10.9/ola-0.10.9.tar.gz"
sha256 "44073698c147fe641507398253c2e52ff8dc7eac8606cbf286c29f37939a4ebf"
license all_of: ["GPL-2.0-or-later", "LGPL-2.1-or-later"]
revision 1
head "https://github.com/OpenLightingProject/ola.git", branch: "master"

stable do
# TODO: Check if we can use unversioned `protobuf` at version bump
url "https://github.com/OpenLightingProject/ola/releases/download/0.10.9/ola-0.10.9.tar.gz"
sha256 "44073698c147fe641507398253c2e52ff8dc7eac8606cbf286c29f37939a4ebf"

# fix liblo 0.32 header compatibility
# upstream pr ref, https://github.com/OpenLightingProject/ola/pull/1954
patch do
url "https://github.com/OpenLightingProject/ola/commit/e083653d2d18018fe6ef42f757bc06462de87f28.patch?full_index=1"
sha256 "1276aded269497fab2e3fc95653b5b8203308a54c40fe2dcd2215a7f0d0369de"
end
end

bottle do
rebuild 1
sha256 arm64_sonoma: "9388c8bba01773aa91a9685a1cb4fc82e0a80dacf4f0414f5cc2a90db5302579"
Expand All @@ -25,6 +35,7 @@ class Ola < Formula
depends_on "automake" => :build
depends_on "libtool" => :build
depends_on "pkg-config" => :build

depends_on "liblo"
depends_on "libmicrohttpd"
depends_on "libusb"
Expand All @@ -34,6 +45,11 @@ class Ola < Formula

uses_from_macos "bison" => :build
uses_from_macos "flex" => :build
uses_from_macos "ncurses"

on_linux do
depends_on "util-linux"
end

def python3
"python3.12"
Expand Down

0 comments on commit a3e216b

Please sign in to comment.