stone-soup: make lua@5.1 recommended not required (#12286)

master
Ron Mordechai 2017-04-12 15:19:01 +03:00 committed by ilovezfs
parent 4ac217db23
commit bd237f3fac
1 changed files with 8 additions and 2 deletions

View File

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