Add libs attribute to mesa and mesa-glu packages (#8904)

Also fix dependency version in glvis package.
Fixes build errors mentioned in #8454.
This commit is contained in:
Adam J. Stewart
2018-08-07 03:18:05 -05:00
committed by Massimiliano Culpo
parent 6ef2eb8f7e
commit 79e7359f4d
5 changed files with 17 additions and 10 deletions

View File

@@ -22,7 +22,6 @@
# License along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
##############################################################################
#
from spack import *
@@ -39,3 +38,11 @@ class MesaGlu(AutotoolsPackage):
depends_on('mesa', when='+mesa')
provides('glu@1.3')
@property
def libs(self):
for dir in ['lib64', 'lib']:
libs = find_libraries('libGLU', join_path(self.prefix, dir),
shared=True, recursive=False)
if libs:
return libs