Build Lua on Darwin

This commit is contained in:
Erik Schnetter 2016-01-10 19:37:44 -05:00
parent 9f2dbc9df4
commit 23c5a1e6e9

View file

@ -22,9 +22,13 @@ class Lua(Package):
depends_on('readline')
def install(self, spec, prefix):
if spec.satisfies("=darwin-i686") or spec.satisfies("=darwin-x86_64"):
target = 'macosx'
else:
target = 'linux'
make('INSTALL_TOP=%s' % prefix,
'MYLDFLAGS=-L%s -lncurses' % spec['ncurses'].prefix.lib,
'linux')
target)
make('INSTALL_TOP=%s' % prefix,
'MYLDFLAGS=-L%s -lncurses' % spec['ncurses'].prefix.lib,
'install')