diff options
| author | blogabe | 2014-06-25 07:58:05 -0700 |
|---|---|---|
| committer | Jack Nagel | 2014-07-07 12:13:52 -0500 |
| commit | ac560b3d98e2e897a0d2ac19189224b713087df2 (patch) | |
| tree | a3d26005564a0f0a08fe46e8aee080243224abc3 /Library/Formula | |
| parent | aa49554f67a46582e37add95dc5521770fb3a27a (diff) | |
| download | homebrew-ac560b3d98e2e897a0d2ac19189224b713087df2.tar.bz2 | |
xplanet: configure with enabled/disabled options
Closes #30541.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/xplanet.rb | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/Library/Formula/xplanet.rb b/Library/Formula/xplanet.rb index 6a0ef560e..f76ee5747 100644 --- a/Library/Formula/xplanet.rb +++ b/Library/Formula/xplanet.rb @@ -27,9 +27,9 @@ class Xplanet < Formula depends_on "libpng" => :recommended depends_on "libtiff" => :recommended - depends_on "netpbm" if build.with?("netpbm") || build.with?("all") - depends_on "pango" if build.with?("pango") || build.with?("all") - depends_on "cspice" if build.with?("cspice") || build.with?("all") + depends_on "netpbm" => :optional + depends_on "pango" => :optional + depends_on "cspice" => :optional depends_on "freetype" depends_on :x11 => :optional @@ -38,12 +38,23 @@ class Xplanet < Formula args = %W[ --disable-dependency-tracking --prefix=#{prefix} + --without-cygwin ] - if build.with? "x11" - args << "--with-x" + if build.without?("all") + args << "--without-gif" if build.without?("giflib") + args << "--without-jpeg" if build.without?("jpeg") + args << "--without-libpng" if build.without?("libpng") + args << "--without-libtiff" if build.without?("libtiff") + args << "--without-pnm" if build.without?("netpbm") + args << "--without-pango" if build.without?("pango") + args << "--without-cspice" if build.without?("cspice") + end + + if build.with?("x11") + args << "--with-x" << "--with-xscreensaver" << "--without-aqua" else - args << "--with-aqua" << "--without-x" + args << "--with-aqua" << "--without-x" << "--without-xscreensaver" end if build.with?("netpbm") || build.with?("all") |
