diff options
-rw-r--r-- | var/spack/repos/builtin/packages/likwid/package.py | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/likwid/package.py b/var/spack/repos/builtin/packages/likwid/package.py index 124d3b388b..edba82da40 100644 --- a/var/spack/repos/builtin/packages/likwid/package.py +++ b/var/spack/repos/builtin/packages/likwid/package.py @@ -45,8 +45,7 @@ class Likwid(Package): # The reason is that the internal hwloc is patched to contain extra # functionality and functions are prefixed with "likwid_". - # TODO: how to specify those? - # depends_on('lua') + depends_on('lua', when='@4.2.0:') # TODO: check # depends_on('gnuplot', type='run') @@ -88,5 +87,22 @@ class Likwid(Package): 'INSTALL_CHOWN = -o $(USER)', '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('install') |