homebrew-core/Formula/x11vnc.rb

44 lines
1.9 KiB
Ruby

class X11vnc < Formula
desc "VNC server for real X displays"
homepage "https://github.com/LibVNC/x11vnc"
url "https://github.com/LibVNC/x11vnc/archive/0.9.16.tar.gz"
sha256 "885e5b5f5f25eec6f9e4a1e8be3d0ac71a686331ee1cfb442dba391111bd32bd"
license "GPL-2.0"
bottle do
sha256 cellar: :any, arm64_monterey: "056f5811d473464e1642e707b0e9f970ab8a4d21a39643e417e65795a36cbc5f"
sha256 cellar: :any, arm64_big_sur: "f066915a77e9635f0f1394566b2b825bcb0a02207e6393e3c0c5a62b7f8a03ae"
sha256 cellar: :any, monterey: "8e50851314ec0ed46b747c489a54b56d2ec2af9e74be8458022612f0a7e236b1"
sha256 cellar: :any, big_sur: "50270ae1fd7681db301b3449748f46108d5eb93df535be7085ef6498f936555d"
sha256 cellar: :any, catalina: "66ddb190e2e2a183ba662d4c7ac2de508b6ebe3c3c827078a5eec5b550477e5e"
sha256 cellar: :any, mojave: "cd3d5d0047a8fb2e7b66ac94baf08c2da16aa8e135b8180acacce2d1bf366e58"
sha256 cellar: :any, high_sierra: "2660aa48f9545eef71c5a42f9985720629d0391eaef37155264ec4c71cf13b29"
sha256 cellar: :any, sierra: "4e974a6cbc6bd9c03e90ed2f991a40c4589489ccbd01bd20552bf0a66773f924"
sha256 cellar: :any_skip_relocation, x86_64_linux: "36d3452462763535cb378ae0034b45aea20cfc186aa883c84a5a15bbe7b736fc"
end
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "pkg-config" => :build
depends_on "libvncserver"
depends_on "openssl@1.1"
def install
ENV.prepend_path "PKG_CONFIG_PATH", Formula["openssl@1.1"].opt_lib/"pkgconfig"
args = %W[
--disable-dependency-tracking
--prefix=#{prefix}
--mandir=#{man}
--without-x
]
system "./autogen.sh", *args
system "make", "install"
end
test do
system bin/"x11vnc", "--version"
end
end