likwid: Use external lua if possible (#6009)
This commit is contained in:
parent
47b15feec3
commit
450f2fa034
@ -45,8 +45,7 @@ class Likwid(Package):
|
|||||||
# The reason is that the internal hwloc is patched to contain extra
|
# The reason is that the internal hwloc is patched to contain extra
|
||||||
# functionality and functions are prefixed with "likwid_".
|
# functionality and functions are prefixed with "likwid_".
|
||||||
|
|
||||||
# TODO: how to specify those?
|
depends_on('lua', when='@4.2.0:')
|
||||||
# depends_on('lua')
|
|
||||||
|
|
||||||
# TODO: check
|
# TODO: check
|
||||||
# depends_on('gnuplot', type='run')
|
# depends_on('gnuplot', type='run')
|
||||||
@ -88,5 +87,22 @@ def install(self, spec, prefix):
|
|||||||
'INSTALL_CHOWN = -o $(USER)',
|
'INSTALL_CHOWN = -o $(USER)',
|
||||||
'config.mk')
|
'config.mk')
|
||||||
|
|
||||||
|
if spec.satisfies('^lua'):
|
||||||
|
filter_file('^#LUA_INCLUDE_DIR.*',
|
||||||
|
'LUA_INCLUDE_DIR = {0}'.format(
|
||||||
|
spec['lua'].prefix.include),
|
||||||
|
'config.mk')
|
||||||
|
filter_file('^#LUA_LIB_DIR.*',
|
||||||
|
'LUA_LIB_DIR = {0}'.format(
|
||||||
|
spec['lua'].prefix.lib),
|
||||||
|
'config.mk')
|
||||||
|
filter_file('^#LUA_LIB_NAME.*',
|
||||||
|
'LUA_LIB_NAME = lua',
|
||||||
|
'config.mk')
|
||||||
|
filter_file('^#LUA_BIN.*',
|
||||||
|
'LUA_BIN = {0}'.format(
|
||||||
|
spec['lua'].prefix.bin),
|
||||||
|
'config.mk')
|
||||||
|
|
||||||
make()
|
make()
|
||||||
make('install')
|
make('install')
|
||||||
|
Loading…
Reference in New Issue
Block a user