stone-soup: make lua@5.1 recommended not required (#12286)
parent
4ac217db23
commit
bd237f3fac
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue