49 lines
1.4 KiB
Ruby
49 lines
1.4 KiB
Ruby
class Libxrandr < Formula
|
|
bottle do
|
|
root_url "https://homebrew.hyprnet/bottles"
|
|
sha256 cellar: :any, arm64_sequoia: "c332c9afd47eff9b36b52ab2f318e020d140179bff663d8a224897b9782ace43"
|
|
sha256 cellar: :any, arm64_tahoe: "36b7a9f0da5208be5b9b39138d0e0eba832e843d40c0f2e69f6d09b495741ddf"
|
|
sha256 cellar: :any_skip_relocation, x86_64_linux: "bed6ab672a51a09e7b6da5d5d824dba33704ce745889d4eebf4917aa009a3b02"
|
|
end
|
|
desc "X.Org: X Resize, Rotate and Reflection extension library"
|
|
homepage "https://www.x.org/"
|
|
url "https://xorg.freedesktop.org/archive/individual/lib/libXrandr-1.5.5.tar.xz"
|
|
sha256 "72b922c2e765434e9e9f0960148070bd4504b288263e2868a4ccce1b7cf2767a"
|
|
license "MIT"
|
|
compatibility_version 1
|
|
|
|
|
|
|
|
depends_on "pkgconf" => :build
|
|
depends_on "libx11"
|
|
depends_on "libxext"
|
|
depends_on "libxrender"
|
|
depends_on "xorgproto"
|
|
|
|
def install
|
|
args = %W[
|
|
--sysconfdir=#{etc}
|
|
--localstatedir=#{var}
|
|
--disable-silent-rules
|
|
]
|
|
|
|
system "./configure", *args, *std_configure_args
|
|
system "make"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
(testpath/"test.c").write <<~C
|
|
#include "X11/Xlib.h"
|
|
#include "X11/extensions/Xrandr.h"
|
|
|
|
int main(int argc, char* argv[]) {
|
|
XRRScreenSize size;
|
|
return 0;
|
|
}
|
|
C
|
|
system ENV.cc, "test.c"
|
|
assert_equal 0, $CHILD_STATUS.exitstatus
|
|
end
|
|
end
|