mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-25 05:11:49 +00:00
build script: use automated patching for ogg target
This commit is contained in:
parent
490a7e86f5
commit
9b5bb88f7c
2 changed files with 0 additions and 9 deletions
9
build.py
9
build.py
|
@ -725,15 +725,6 @@ class OggTarget(ConfigureMakeStaticDependencyTarget):
|
||||||
'https://downloads.xiph.org/releases/ogg/libogg-1.3.4.tar.gz',
|
'https://downloads.xiph.org/releases/ogg/libogg-1.3.4.tar.gz',
|
||||||
'fe5670640bd49e828d64d2879c31cb4dde9758681bb664f9bdbf159a01b0c76e')
|
'fe5670640bd49e828d64d2879c31cb4dde9758681bb664f9bdbf159a01b0c76e')
|
||||||
|
|
||||||
test_arg = '--dry-run'
|
|
||||||
os_types_path = builder.source_path + 'include/ogg/os_types.h'
|
|
||||||
patch_path = builder.root_source_path + 'ogg.patch'
|
|
||||||
args = ['patch', test_arg, os_types_path, patch_path]
|
|
||||||
|
|
||||||
if subprocess.call(args) == 0:
|
|
||||||
args.remove(test_arg)
|
|
||||||
subprocess.check_call(args)
|
|
||||||
|
|
||||||
def detect(self, builder: 'Builder') -> bool:
|
def detect(self, builder: 'Builder') -> bool:
|
||||||
return os.path.exists(builder.source_path + 'ogg.pc.in')
|
return os.path.exists(builder.source_path + 'ogg.pc.in')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue