Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Formula/o/opencv.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class Opencv < Formula

Check warning on line 1 in Formula/o/opencv.rb

View workflow job for this annotation

GitHub Actions / macOS 15-arm64

No bottle built for opencv!

opencv has unbottled dependencies, so a bottle will not be built.
desc "Open source computer vision library"
homepage "https://opencv.org/"
license "Apache-2.0"
revision 1
revision 2

stable do
url "https://github.com/opencv/opencv/archive/refs/tags/4.11.0.tar.gz"
Expand Down Expand Up @@ -88,6 +88,9 @@
def install
resource("contrib").stage buildpath/"opencv_contrib"

# cmake 4 build patch
ENV["CMAKE_POLICY_VERSION_MINIMUM"] = "3.5"

# Avoid Accelerate.framework
ENV["OpenBLAS_HOME"] = Formula["openblas"].opt_prefix

Expand Down Expand Up @@ -179,7 +182,7 @@
inreplace lib/"pkgconfig/opencv#{version.major}.pc", prefix, opt_prefix
end

test do

Check failure on line 185 in Formula/o/opencv.rb

View workflow job for this annotation

GitHub Actions / Linux x86_64

`brew test --verbose opencv` failed on Linux x86_64!

/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/test.rb:54:in '<main>'
(testpath/"test.cpp").write <<~CPP
#include <opencv2/core.hpp>
#include <opencv2/imgcodecs.hpp>
Expand Down
21 changes: 15 additions & 6 deletions Formula/o/openvino.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

desc "Open Visual Inference And Optimization toolkit for AI inference"
homepage "https://docs.openvino.ai"
url "https://github.com/openvinotoolkit/openvino/archive/refs/tags/2025.0.0.tar.gz"
sha256 "d2cbff5a0ac1bc738c33ba103569f8daf20d3a17d3db94da11ae207ffb9e4395"
url "https://github.com/openvinotoolkit/openvino/archive/refs/tags/2025.1.0.tar.gz"
sha256 "246c68e1799d035c85f773c986e4eb08f867d821c287abc638b9828e94852457"
license "Apache-2.0"
head "https://github.com/openvinotoolkit/openvino.git", branch: "master"

Expand All @@ -24,6 +24,7 @@

depends_on "cmake" => [:build, :test]
depends_on "flatbuffers" => :build
depends_on "nlohmann-json" => :build
depends_on "pkgconf" => [:build, :test]
depends_on "pybind11" => :build
depends_on "python-setuptools" => :build
Expand All @@ -43,8 +44,8 @@
depends_on "opencl-icd-loader"

resource "onednn_gpu" do
url "https://github.com/oneapi-src/oneDNN/archive/706a3ce3b391cf1d8a904a8efa981c70078719eb.tar.gz"
sha256 "1a656eb32f383cef82b703c355d762b2162f5aaa7b6f54b2c1e47995a9cee1f2"
url "https://github.com/oneapi-src/oneDNN/archive/refs/tags/v3.8-pc.tar.gz"
sha256 "dcf8382b520b1e23c7c450128533feaea8145d341be14671c8dbc9ede2f59912"
end
end

Expand All @@ -55,6 +56,10 @@
url "https://github.com/ARM-software/ComputeLibrary/archive/refs/tags/v24.09.tar.gz"
sha256 "49b8620f21cbbe49e825a131d9eacd548532646289b50e070b83860bd88087fe"
end
resource "arm_kleidiai" do
url "https://github.com/ARM-software/kleidiai/archive/eaf63a6ae9a903fb4fa8a4d004a974995011f444.tar.gz"
sha256 "756fa3040ff23f78a4c3f4c1984a3814d78d302b0b5dc3f0b255322368aefc58"
end
end

on_intel do
Expand All @@ -67,8 +72,8 @@
end

resource "onednn_cpu" do
url "https://github.com/openvinotoolkit/oneDNN/archive/1789b1e0ae441de15d793123003a900a35d1dc71.tar.gz"
sha256 "551070032ce5d2ed6adc2216e9b061782da097b1ce28c403eaa16b230b09f6a7"
url "https://github.com/openvinotoolkit/oneDNN/archive/5baba714e16e11309774a62783f363cad30e97c7.tar.gz"
sha256 "4430875c1690abecc57d9cc8464be690430e217a0453c69e030c667e5801e749"
end

resource "openvino-telemetry" do
Expand All @@ -86,6 +91,9 @@
end

def install
# cmake 4 build patch for third parties
ENV["CMAKE_POLICY_VERSION_MINIMUM"] = "3.5"

# Remove git cloned 3rd party to make sure formula dependencies are used
dependencies = %w[thirdparty/ocl
thirdparty/xbyak thirdparty/gflags
Expand All @@ -104,6 +112,7 @@

if Hardware::CPU.arm?
resource("arm_compute").stage buildpath/"src/plugins/intel_cpu/thirdparty/ComputeLibrary"
resource("arm_kleidiai").stage buildpath/"src/plugins/intel_cpu/thirdparty/kleidiai"
elsif OS.linux?
resource("onednn_gpu").stage buildpath/"src/plugins/intel_gpu/thirdparty/onednn_gpu"
end
Expand Down Expand Up @@ -147,7 +156,7 @@
(prefix/Language::Python.site_packages(python3)/"homebrew-openvino.pth").write venv.site_packages
end

test do

Check failure on line 159 in Formula/o/openvino.rb

View workflow job for this annotation

GitHub Actions / Linux x86_64

`brew test --verbose openvino` failed on Linux x86_64!

/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/test.rb:54:in '<main>'
pkg_config_flags = shell_output("pkgconf --cflags --libs openvino tbb pugixml").chomp.split

(testpath/"openvino_available_devices.c").write <<~C
Expand Down
Loading