mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2025-01-19 06:30:53 +00:00
build script: create bzip2 .pc file
This commit is contained in:
parent
62996171e8
commit
09d12f9c95
1 changed files with 18 additions and 0 deletions
18
build.py
18
build.py
|
@ -686,6 +686,24 @@ class Bzip2Target(MakeTarget):
|
|||
self.options['PREFIX'] = self.prefix
|
||||
self.install(builder, self.options)
|
||||
|
||||
# Write .pc file
|
||||
pkgconfig_path = self.prefix + '/lib/pkgconfig/'
|
||||
os.makedirs(pkgconfig_path, exist_ok=True)
|
||||
|
||||
pc_content = '''prefix=
|
||||
exec_prefix=${prefix}
|
||||
libdir=${exec_prefix}/lib
|
||||
includedir=${prefix}/include
|
||||
|
||||
Name: bzip2
|
||||
Description: bzip2 compression library
|
||||
Version: 1.0.8
|
||||
Libs: -L${libdir} -lbz2
|
||||
Cflags: -I${includedir}
|
||||
'''
|
||||
with open(pkgconfig_path + 'bzip2.pc', 'w') as f:
|
||||
f.write(pc_content)
|
||||
|
||||
|
||||
class DumbTarget(CMakeStaticDependencyTarget):
|
||||
def __init__(self, name='dumb'):
|
||||
|
|
Loading…
Reference in a new issue