lzo: ensure #include <lzo/lzo1x.h> works with pkgconf cflags

This commit is contained in:
Wouter Deconinck
2024-05-12 19:19:22 -05:00
committed by GitHub
parent 32b3e91ef7
commit 2fe09235a2

View File

@@ -33,3 +33,10 @@ def configure_args(self):
args = ["--disable-dependency-tracking"]
args += self.enable_or_disable("libs")
return args
@run_after('install')
def postinstall(self):
# ensure e.g. #include <lzo/lzo1x.h> works with Cflags: -I${includedir}/lzo in pkgconf
# by creating symlink ${includedir}/lzo/lzo -> ${includedir}/lzo
with working_dir(self.prefix.include.lzo):
symlink(".", "lzo")