forked from maxim-belkin/homebrew-xorg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
libxv.rb
36 lines (30 loc) · 1023 Bytes
/
libxv.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
class Libxv < Formula
desc "X.Org Libraries: libXv"
homepage "http://www.x.org/" ### http://www.linuxfromscratch.org/blfs/view/svn/x/x7lib.html
url "http://ftp.x.org/pub/individual/lib/libXv-1.0.10.tar.bz2"
sha256 "55fe92f8686ce8612e2c1bfaf58c057715534419da700bda8d517b1d97914525"
# tag "linuxbrew"
bottle do
cellar :any
sha256 "42d55fb18f9626930bca219df54d20b016c2931696d8bbb1d26ad75f8eedbb28" => :x86_64_linux
end
option "without-test", "Skip compile-time tests"
option "with-static", "Build static libraries (not recommended)"
depends_on "pkg-config" => :build
depends_on "libx11"
depends_on "libxext"
def install
args = %W[
--prefix=#{prefix}
--sysconfdir=#{etc}
--localstatedir=#{var}
--disable-dependency-tracking
--disable-silent-rules
]
args << "--disable-static" if !build.with?("static")
system "./configure", *args
system "make"
system "make", "check" if build.with?("test")
system "make", "install"
end
end