AmanithVG-sdk
OpenVGの商用ライブラリーの見本らしい。
現在わかっている問題は、これが存在している時にcairoを"--enable-vg=yes"を付けてビルドするとコンパイルエラーで止まってしまう。これはAmanithVG-sdkが悪い訳ではなく、本家(?)ShivavgのlibOpenVGを使っても同じこととなる。cairo側の問題。
masterのbranchしかないため、HEADを使う必要があります。
$ brew install -s amanithvg-sdk --HEAD
class AmanithvgSdk < Formula desc "A commercial implementation of OpenVG 1.1 and 1.0.1" homepage "http://www.amanithvg.com/" head "https://github.com/Mazatech/amanithvg-sdk.git" option "software-engine", "Build for using original software engine instead of OpenGL.frameworks" option "with-tutorials", "Build with \"tutorials-app\"s" depends_on "cmake" => :build keg_only "Beacuse this Formula has only HEAD" def install backend_type = (build.with?("software-engine") ? "sre" :"gle") if build.with? "tutorials" args = std_cmake_args args << (build.with?("software-engine") ? "-DENGINE_SRE=1" : "-DENGINE_GLE=1") args << "-DCMAKE_TOOLCHAIN_FILE=./CMake/toolchain/osx_ub.cmake" << "--no-warn-unused-cli" mkdir prefix/"share/tutorials" Pathname.glob("tutorials/*"){|subdir| cd subdir do system "cmake", ".", *args, "-G", "Unix Makefiles" system "make" end } mkdir_p prefix/"share/amanithvg-sdk/tutorials" (share/"amanithvg-sdk/tutorials").install Dir["bin/macosx/ub/#{backend_type}/standalone/*"] end lib.install Dir["lib/macosx/ub/#{backend_type}/standalone/*"] end end