mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-22 03:51:33 +00:00
build script: add .pc patching to jpeg-turbo target
This commit is contained in:
parent
d4da2a15c4
commit
050803ab47
1 changed files with 11 additions and 0 deletions
11
build.py
11
build.py
|
@ -898,6 +898,17 @@ class JpegTurboTarget(CMakeStaticDependencyTarget):
|
|||
def detect(self, builder: 'Builder') -> bool:
|
||||
return os.path.exists(builder.source_path + 'turbojpeg.h')
|
||||
|
||||
@staticmethod
|
||||
def _process_pkg_config(pcfile: str, line: str) -> str:
|
||||
if line.startswith('exec_prefix='):
|
||||
return 'exec_prefix=${prefix}\n'
|
||||
elif line.startswith('libdir='):
|
||||
return 'libdir=${exec_prefix}/lib\n'
|
||||
elif line.startswith('includedir='):
|
||||
return 'includedir=${prefix}/include\n'
|
||||
|
||||
return line
|
||||
|
||||
|
||||
class MadTarget(ConfigureMakeStaticDependencyTarget):
|
||||
def __init__(self, name='mad'):
|
||||
|
|
Loading…
Reference in a new issue