mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-22 03:51:33 +00:00
aedi: add xmp target
This commit is contained in:
parent
220e402879
commit
2340ed4c69
2 changed files with 18 additions and 0 deletions
|
@ -96,6 +96,7 @@ def targets():
|
|||
TiffTarget(),
|
||||
WebpTarget(),
|
||||
WxWidgetsTarget(),
|
||||
XmpTarget(),
|
||||
ZstdTarget(),
|
||||
|
||||
# Tools
|
||||
|
|
|
@ -758,6 +758,23 @@ class WxWidgetsTarget(CMakeStaticDependencyTarget):
|
|||
self.update_text_file(wx_config_path, patch_wx_config)
|
||||
|
||||
|
||||
class XmpTarget(ConfigureMakeStaticDependencyTarget):
|
||||
def __init__(self, name='xmp'):
|
||||
super().__init__(name)
|
||||
|
||||
def prepare_source(self, state: BuildState):
|
||||
state.download_source(
|
||||
'https://sourceforge.net/projects/xmp/files/libxmp/4.5.0/libxmp-4.5.0.tar.gz',
|
||||
'7847d262112d14e8442f44e5ac6ed9ddbca54c251284720b563c852b31f26e75')
|
||||
|
||||
def detect(self, state: BuildState) -> bool:
|
||||
return state.has_source_file('libxmp.pc.in')
|
||||
|
||||
def configure(self, state: BuildState):
|
||||
state.options['--enable-static'] = None
|
||||
super().configure(state)
|
||||
|
||||
|
||||
class ZstdTarget(CMakeStaticDependencyTarget):
|
||||
def __init__(self, name='zstd'):
|
||||
super().__init__(name)
|
||||
|
|
Loading…
Reference in a new issue