Skip to content

Commit 64bcbbe

Browse files
committed
Update lsl formula to install framework
1 parent 3030df5 commit 64bcbbe

1 file changed

Lines changed: 7 additions & 20 deletions

File tree

Formula/lsl.rb

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,19 @@
1-
# https://github.com/syhw/homebrew/blob/master/Library/Contributions/example-formula.rb
21
class Lsl < Formula
32
desc "Library for multi-modal time-synched data transmission over the network"
43
homepage "https://labstreaminglayer.readthedocs.io/"
5-
url "https://github.com/sccn/liblsl", using: :git, branch: "main"
6-
version "1.16.2"
7-
sha256 "923aa4c81c0fef651c325e3c27aa5b96771540ca2a0933d1b327db27c6dac839"
4+
url "https://github.com/sccn/liblsl/archive/refs/tags/v1.17.1.tar.gz"
5+
sha256 "d397f943be164f587bc9139427ea54173f28ac1b5505044ae11fd9977442e5be"
86
license "MIT"
9-
# NOTE: use `openssl dgst -sha256 <targ.gz file downloaded from release>` to get sha256
10-
117
head "https://github.com/sccn/liblsl.git", branch: "main"
128

13-
# To make a bottle:
14-
# 1 - `brew install --build-bottle lsl`
15-
# 2 - `brew bottle --root-url="https://github.com/labstreaminglayer/homebrew-tap/releases/download/v1.15.0" lsl`
16-
# 3 - Upload produced bottle to GH release page above. If there's a double-dash in the filename
17-
# then you have to remove that first.
18-
# 4 - Copy the printed information into this block. git add and push this updated formula.
19-
# Commented out until we can build bottles that are signed and certified.
20-
# bottle do
21-
# root_url "https://github.com/labstreaminglayer/homebrew-tap/releases/download/v1.15.0"
22-
# rebuild 1
23-
# sha256 cellar: :any, big_sur: "8fc06564bd013f15150a3eabbd7606f49fe5bd3360e7da7efa0d2bc8542df396"
24-
# end
25-
269
depends_on "cmake" => :build
2710

2811
def install
29-
system "cmake", "-S", ".", "-B", "build", *std_cmake_args
12+
args = %W[
13+
-DLSL_FRAMEWORK=ON
14+
-DCMAKE_INSTALL_FRAMEWORK_DIR=#{frameworks}
15+
]
16+
system "cmake", "-S", ".", "-B", "build", *std_cmake_args, *args
3017
system "cmake", "--build", "build", "--target", "install", "--config", "Release", "-j"
3118
end
3219

0 commit comments

Comments
 (0)