-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmediainfo-gui.rb
39 lines (34 loc) · 1.13 KB
/
mediainfo-gui.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
36
37
38
39
class MediainfoGui < Formula
desc "Unified display of technical and tag data for audio/video"
homepage "https://mediaarea.net/"
url "https://mediaarea.net/download/binary/mediainfo-gui/24.12/MediaInfo_GUI_24.12_GNU_FromSource.tar.xz"
sha256 "d78b8541133036955efdb92dd5e7a538ebc4cb38e8dce913c9f96be9c40e35a1"
depends_on "pkg-config" => :build
# fails to build against Leopard's older libcurl
depends_on "curl"
depends_on "wxwidgets"
def install
cd "ZenLib/Project/GNU/Library" do
args = ["--disable-debug",
"--enable-static",
"--disable-shared"]
system "./configure", *args
system "make"
end
cd "MediaInfoLib/Project/GNU/Library" do
args = ["--disable-debug",
"--with-libcurl=runtime",
"--enable-static",
"--disable-shared"]
system "./configure", *args
system "make"
end
cd "MediaInfo/Project/GNU/GUI" do
system "./configure", "--disable-debug", "--enable-staticlibs", "--prefix=#{prefix}"
system "make", "install"
end
end
test do
assert_predicate `bin/mediainfo-gui`, :exist?
end
end