libvdpau: let `meson` handle build steps

master
Michael Cho 2023-01-18 16:34:22 -08:00 committed by Rui Chen
parent 1ec18c78d2
commit 8082159021
1 changed files with 4 additions and 6 deletions

View File

@ -6,7 +6,7 @@ class Libvdpau < Formula
license "MIT"
livecheck do
url "https://gitlab.freedesktop.org/vdpau/libvdpau.git"
url :stable
regex(/^(?:libvdpau[._-])?v?(\d+(?:\.\d+)+)$/i)
end
@ -29,11 +29,9 @@ class Libvdpau < Formula
depends_on "xorgproto"
def install
mkdir "build" do
system "meson", *std_meson_args, ".."
system "ninja"
system "ninja", "install"
end
system "meson", "setup", "build", *std_meson_args
system "meson", "compile", "-C", "build", "--verbose"
system "meson", "install", "-C", "build"
end
test do
assert_match "-I#{include}", shell_output("pkg-config --cflags vdpau")