(#14548) libdeflate: fix installation for conan >=1.55.0

This commit is contained in:
SpaceIm
2022-12-13 09:46:02 +01:00
committed by GitHub
parent ec205f4e5d
commit 4283391deb

View File

@@ -106,7 +106,7 @@ class LibdeflateConan(ConanFile):
autotools = Autotools(self)
with chdir(self, self.source_folder):
# Note: not actually an autotools project, is a Makefile project.
autotools.install(args=[f"PREFIX={unix_path(self, self.package_folder)}"])
autotools.install(args=[f"DESTDIR={unix_path(self, self.package_folder)}", "PREFIX=/"])
rmdir(self, os.path.join(self.package_folder, "bin"))
rmdir(self, os.path.join(self.package_folder, "lib", "pkgconfig"))
rm(self, "*.a" if self.options.shared else "*.[so|dylib]*", os.path.join(self.package_folder, "lib") )