Skip to content

Commit

Permalink
mesa: add missing deps
Browse files Browse the repository at this point in the history
  • Loading branch information
maxim-belkin committed Mar 11, 2018
1 parent 3568584 commit b96045a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Formula/libva.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ class Libva < Formula
def install
args = %W[
--prefix=#{prefix}
--sysconfdir=#{etc}
--localstatedir=#{var}
--sysconfdir=#{prefix}/etc
--localstatedir=#{prefix}/var
--disable-dependency-tracking
--disable-silent-rules
--enable-static=#{build.with?("static") ? "yes" : "no"}
Expand Down
16 changes: 11 additions & 5 deletions Formula/mesa.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,27 @@ class Mesa < Formula
depends_on "bison" => :build
depends_on "libtool" => :build
depends_on "linuxbrew/xorg/libpthread-stubs" => :build
depends_on "linuxbrew/xorg/dri2proto" => :build
depends_on "linuxbrew/xorg/glproto" => :build
depends_on "linuxbrew/xorg/glproto" => :build
depends_on "linuxbrew/xorg/xextproto" => :build
depends_on "linuxbrew/xorg/damageproto" => :build
depends_on "linuxbrew/xorg/fixesproto" => :build
depends_on "linuxbrew/xorg/videoproto" => :build

depends_on "llvm" => :optional
depends_on "linuxbrew/xorg/wayland" => :optional
depends_on "linuxbrew/xorg/libglvnd" => :optional
depends_on "linuxbrew/xorg/libvdpau" => :optional
depends_on "linuxbrew/xorg/libva" => :recommended
depends_on "linuxbrew/xorg/libva" => [:recommended, :build]
depends_on "valgrind" => :recommended

depends_on "systemd" # provides libudev <= needed by "gbm"
depends_on "linuxbrew/xorg/libomxil-bellagio"
depends_on "linuxbrew/xorg/libdrm"

depends_on "libelf" if build.with? "llvm" # radeonsi requires libelf when using llvm
# Revisit later [@maxim-belkin, March 6, 2018]
# depends_on "linuxbrew/xorg/wayland-protocols" => :recommended
# Revisit later [@maxim-belkin, March 6, 2018]: depends_on "linuxbrew/xorg/wayland-protocols" => :recommended

# There is a circular dependency between Mesa and libva:
# libva should be installed:
Expand Down Expand Up @@ -125,8 +131,8 @@ def install
resource("libva").stage do
args = %W[
--prefix=#{Formula["libva"].opt_prefix}
--sysconfdir=#{etc}
--localstatedir=#{var}
--sysconfdir=#{Formula["libva"].opt_prefix}/etc
--localstatedir=#{Formula["libva"].opt_prefix}/var
--disable-dependency-tracking
--disable-silent-rules
--enable-static=#{build.with?("static") ? "yes" : "no"}
Expand Down

0 comments on commit b96045a

Please sign in to comment.