Files

47 lines
1.3 KiB
Ruby

class Libxrender < Formula
bottle do
root_url "https://homebrew.hyprnet/bottles"
sha256 cellar: :any, arm64_sequoia: "edcb8884f9d33219d276051be3b5ad64f390cdf3abe9794d9a0050c02895c3a7"
sha256 cellar: :any, arm64_tahoe: "6405639931b8924b009e16163b7d99f50a10274189cb7f7eba12a4585d1ef255"
sha256 cellar: :any_skip_relocation, x86_64_linux: "44bddde0557643e137ddd5aa00d60bf220527719d2cb9263e397098dee2664c5"
end
desc "X.Org: Library for the Render Extension to the X11 protocol"
homepage "https://www.x.org/"
url "https://xorg.freedesktop.org/archive/individual/lib/libXrender-0.9.12.tar.gz"
sha256 "0fff64125819c02d1102b6236f3d7d861a07b5216d8eea336c3811d31494ecf7"
license "MIT"
compatibility_version 1
depends_on "pkgconf" => :build
depends_on "libx11"
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/Xrender.h"
int main(int argc, char* argv[]) {
XRenderColor color;
return 0;
}
C
system ENV.cc, "test.c"
assert_equal 0, $CHILD_STATUS.exitstatus
end
end