homebrew-core/Formula/suil.rb

39 lines
1.1 KiB
Ruby
Raw Normal View History

class Suil < Formula
desc "lightweight C library for loading and wrapping LV2 plugin UIs"
2016-02-28 01:56:20 +00:00
homepage "https://drobilla.net/software/suil/"
url "https://download.drobilla.net/suil-0.8.2.tar.bz2"
sha256 "787608c1e5b1f5051137dbf77c671266088583515af152b77b45e9c3a36f6ae8"
2015-12-12 11:10:19 +00:00
bottle do
2016-02-28 19:42:17 +00:00
revision 1
sha256 "30069bffb5c8f3903f4888135c3d1939f1329a19fda93b3bc8bf244827413995" => :el_capitan
sha256 "30c20891f724dfe103704e1b3c4e17b068a152fb3098560462a156fba29474c7" => :yosemite
sha256 "0f82a7cf59da98e7dfbdf437ee22c412eb5e52a821acba2f92b65de4ea7a5fe6" => :mavericks
2015-12-12 11:10:19 +00:00
end
2015-12-12 13:25:20 +00:00
depends_on "pkg-config" => :build
depends_on "lv2"
2015-12-12 13:25:20 +00:00
depends_on "gtk+" => :recommended
depends_on "qt" => :optional
depends_on "qt5" => :optional
depends_on :x11 => :optional
def install
system "./waf", "configure", "--prefix=#{prefix}"
system "./waf", "install"
end
test do
(testpath/"test.c").write <<-EOS.undent
#include <suil/suil.h>
int main()
{
return suil_ui_supported("my-host", "my-ui");
}
EOS
system ENV.cc, "-I#{include}/suil-0", "-L#{lib}", "-lsuil-0", "test.c", "-o", "test"
system "./test"
end
end