libgd (package): update configure to find jpeg dependency (#17655)

This commit is contained in:
ketsubouchi 2020-07-24 09:55:34 +09:00 committed by GitHub
parent 1fe07891e3
commit 1bbf8c0635
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
)