Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
46 lines (42 sloc) 1.29 KB
class Gerbera < Formula
desc "UPnP Media Server for 2021"
homepage "https://gerbera.io"
url "https://github.com/gerbera/gerbera/archive/v1.7.0.tar.gz"
sha256 "6d40b840d015ba5c512f41442957c1c0fdbba07c18724cf00a45e0a579ddeb7f"
depends_on "cmake" => :build
depends_on "duktape"
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_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