cairo: add with-x11 option
to include cairo-xcb. Kudos to @mistydemeo. Closes Homebrew/homebrew#42949. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
This commit is contained in:
parent
a28287516f
commit
31c37d06f5
1 changed files with 2 additions and 1 deletions
|
@ -18,6 +18,7 @@ class Cairo < Formula
|
|||
option :universal
|
||||
|
||||
depends_on "pkg-config" => :build
|
||||
depends_on :x11 => :optional if MacOS.version > :leopard
|
||||
depends_on "freetype"
|
||||
depends_on "fontconfig"
|
||||
depends_on "libpng"
|
||||
|
@ -38,7 +39,7 @@ class Cairo < Formula
|
|||
--enable-quartz-image
|
||||
]
|
||||
|
||||
args << "--enable-xcb=no" if MacOS.version <= :leopard
|
||||
args << (build.with?("x11") ? "--enable-xcb=yes" : "--enable-xcb=no")
|
||||
|
||||
system "./configure", *args
|
||||
system "make", "install"
|
||||
|
|
Loading…
Reference in a new issue