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 end
option "with-tiles", "Enable graphic tiles and sound" 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 "pkg-config" => :build
depends_on "lua@5.1" depends_on "lua@5.1" => :recommended
depends_on "pcre" depends_on "pcre"
if build.with? "tiles" if build.with? "tiles"
@ -37,7 +38,6 @@ class StoneSoup < Formula
DATADIR=data DATADIR=data
NO_PKGCONFIG= NO_PKGCONFIG=
BUILD_ZLIB= BUILD_ZLIB=
BUILD_LUA=
BUILD_SQLITE=yes BUILD_SQLITE=yes
BUILD_FREETYPE= BUILD_FREETYPE=
BUILD_LIBPNG= BUILD_LIBPNG=
@ -53,6 +53,12 @@ class StoneSoup < Formula
args << "SOUND=y" args << "SOUND=y"
end 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 # FSF GCC doesn't support the -rdynamic flag
args << "NO_RDYNAMIC=y" unless ENV.compiler == :clang args << "NO_RDYNAMIC=y" unless ENV.compiler == :clang