|
1 | | -# https://github.com/syhw/homebrew/blob/master/Library/Contributions/example-formula.rb |
2 | 1 | class Lsl < Formula |
3 | 2 | desc "Library for multi-modal time-synched data transmission over the network" |
4 | 3 | 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" |
8 | 6 | license "MIT" |
9 | | - # NOTE: use `openssl dgst -sha256 <targ.gz file downloaded from release>` to get sha256 |
10 | | - |
11 | 7 | head "https://github.com/sccn/liblsl.git", branch: "main" |
12 | 8 |
|
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 | | - |
26 | 9 | depends_on "cmake" => :build |
27 | 10 |
|
28 | 11 | 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 |
30 | 17 | system "cmake", "--build", "build", "--target", "install", "--config", "Release", "-j" |
31 | 18 | end |
32 | 19 |
|
|
0 commit comments