libgd (package): update configure to find jpeg dependency (#17655)
This commit is contained in:
parent
1fe07891e3
commit
1bbf8c0635
@ -36,3 +36,12 @@ class Libgd(AutotoolsPackage):
|
|||||||
depends_on('jpeg')
|
depends_on('jpeg')
|
||||||
depends_on('libtiff')
|
depends_on('libtiff')
|
||||||
depends_on('fontconfig')
|
depends_on('fontconfig')
|
||||||
|
|
||||||
|
def patch(self):
|
||||||
|
p = self.spec['jpeg'].libs.search_flags
|
||||||
|
filter_file(
|
||||||
|
'LIBJPEG_LIBS " -ljpeg"',
|
||||||
|
'LIBJPEG_LIBS "{0} -ljpeg"'.format(p),
|
||||||
|
'configure',
|
||||||
|
string=True
|
||||||
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user