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:
Alexis Hildebrandt 2015-08-14 18:46:11 +02:00 committed by Dominyk Tiller
parent a28287516f
commit 31c37d06f5

View file

@ -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"