Add libs properties to a few packages (#20163)
This commit is contained in:
parent
a2d156902b
commit
aca8508056
@ -25,3 +25,8 @@ class Libxi(AutotoolsPackage, XorgPackage):
|
||||
depends_on('xproto@7.0.13:', type='build')
|
||||
depends_on('xextproto@7.0.3:', type='build')
|
||||
depends_on('inputproto@2.2.99.1:', type='build')
|
||||
|
||||
@property
|
||||
def libs(self):
|
||||
return find_libraries(
|
||||
'libXi', self.prefix, shared=True, recursive=True)
|
||||
|
@ -23,3 +23,8 @@ class Libxrandr(AutotoolsPackage, XorgPackage):
|
||||
depends_on('renderproto', type='build')
|
||||
depends_on('pkgconfig', type='build')
|
||||
depends_on('util-macros', type='build')
|
||||
|
||||
@property
|
||||
def libs(self):
|
||||
return find_libraries(
|
||||
'libXrandr', self.prefix, shared=True, recursive=True)
|
||||
|
@ -22,3 +22,8 @@ class Libxxf86vm(AutotoolsPackage, XorgPackage):
|
||||
depends_on('xf86vidmodeproto@2.2.99.1:', type='build')
|
||||
depends_on('pkgconfig', type='build')
|
||||
depends_on('util-macros', type='build')
|
||||
|
||||
@property
|
||||
def libs(self):
|
||||
return find_libraries(
|
||||
'libXxf86vm', self.prefix, shared=True, recursive=True)
|
||||
|
@ -91,8 +91,5 @@ def fetcher(self):
|
||||
|
||||
@property
|
||||
def libs(self):
|
||||
for dir in ['lib64', 'lib']:
|
||||
libs = find_libraries('libGL', join_path(self.prefix, dir),
|
||||
shared=True, recursive=False)
|
||||
if libs:
|
||||
return libs
|
||||
return find_libraries(
|
||||
'libGL', self.prefix, shared=True, recursive=True)
|
||||
|
@ -61,8 +61,5 @@ def fetcher(self):
|
||||
|
||||
@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
|
||||
return find_libraries(
|
||||
'libGLU', self.prefix, shared=True, recursive=True)
|
||||
|
Loading…
Reference in New Issue
Block a user