-
Notifications
You must be signed in to change notification settings - Fork 0
/
cineform.rb
35 lines (31 loc) · 1011 Bytes
/
cineform.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# typed: true
# frozen_string_literal: true
# alternate static and shared CineForm librairies
class Cineform < Formula
desc "Alternate static and shared CineForm librairies"
homepage "https://github.com/emericg/libcineform"
url "https://github.com/emericg/libcineform/archive/v0.2.tar.gz"
sha256 "7749cc6ccbd2b05ac8c942045396f06735dda5a87f5cd0166752570fd2be0cac"
head "https://github.com/emericg/libcineform.git"
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "cmake" => :build
depends_on "libtool" => :build
depends_on "pkg-config" => :build
def install
cd "build" do
system "cmake",
"-DBUILD_STATIC_LIBS:BOOL=ON",
"-DBUILD_SHARED_LIBS:BOOL=ON",
".."
system "make"
lib.install "libcineform.a"
lib.install "libcineform.so" if OS.linux?
lib.install "libcineform.dylib" if OS.mac?
# lib.install "libcineform.dll" if OS.windows?
end
end
test do
system "echo"
end
end