-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathgerbera.rb
48 lines (44 loc) · 1.35 KB
/
gerbera.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
40
41
42
43
44
45
46
47
48
class Gerbera < Formula
desc "UPnP Media Server for 2025"
homepage "https://gerbera.io"
url "https://github.com/gerbera/gerbera/archive/refs/tags/v2.4.0.tar.gz"
sha256 "f7b6fc5f9cb22c72d84b474a1a5027d110435bcfa4db0b3e770a62ecbbbdd58b"
depends_on "cmake" => :build
depends_on "duktape"
depends_on "exiv2"
depends_on "ffmpeg"
depends_on "ffmpegthumbnailer"
depends_on "libexif"
depends_on "libmagic"
depends_on "libmatroska"
depends_on "libupnp"
depends_on "lzlib"
depends_on "ossp-uuid"
depends_on "pugixml"
depends_on "spdlog"
depends_on "taglib"
def install
mkdir "build" do
args = std_cmake_args
args << "-DWITH_CURL=YES"
args << "-DWITH_JS=YES"
args << "-DWITH_TAGLIB=YES"
args << "-DWITH_AVCODEC=YES"
args << "-DWITH_EXIF=YES"
args << "-DWITH_EXIV2=NO"
args << "-DWITH_SYSTEMD=NO"
args << "-DWITH_INOTIFY=NO"
args << "-DWITH_MYSQL=NO"
args << "-DWITH_FFMPEGTHUMBNAILER=YES"
args << "-DCMAKE_FIND_FRAMEWORK=LAST"
args << "-DCMAKE_CXX_FLAGS=\"-stdlib=libc++\""
args << "-DCMAKE_CXX_COMPILER=/usr/bin/clang++"
args << "-DCMAKE_INSTALL_PREFIX:PATH=#{prefix}"
system "cmake", "..", *args
system "make", "install"
end
end
test do
assert_match(/Gerbera UPnP Server/, shell_output("#{bin}/gerbera --compile-info").strip)
end
end