From bd237f3faca8436ac7c6918ba33e86fbd4e294ff Mon Sep 17 00:00:00 2001 From: Ron Mordechai Date: Wed, 12 Apr 2017 15:19:01 +0300 Subject: [PATCH] stone-soup: make lua@5.1 recommended not required (#12286) --- Formula/stone-soup.rb | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Formula/stone-soup.rb b/Formula/stone-soup.rb index 7d646d21982..6ed1ab2a78b 100644 --- a/Formula/stone-soup.rb +++ b/Formula/stone-soup.rb @@ -13,9 +13,10 @@ class StoneSoup < Formula end option "with-tiles", "Enable graphic tiles and sound" + option "without-lua@5.1", "Disable Lua bindings for user scripts" depends_on "pkg-config" => :build - depends_on "lua@5.1" + depends_on "lua@5.1" => :recommended depends_on "pcre" if build.with? "tiles" @@ -37,7 +38,6 @@ class StoneSoup < Formula DATADIR=data NO_PKGCONFIG= BUILD_ZLIB= - BUILD_LUA= BUILD_SQLITE=yes BUILD_FREETYPE= BUILD_LIBPNG= @@ -53,6 +53,12 @@ class StoneSoup < Formula args << "SOUND=y" end + if build.with? "lua@5.1" + args << "BUILD_LUA=y" + else + args << "NO_LUA_BINDINGS=y" + end + # FSF GCC doesn't support the -rdynamic flag args << "NO_RDYNAMIC=y" unless ENV.compiler == :clang