mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-25 05:11:49 +00:00
build script: add mpg123 target
This commit is contained in:
parent
79c436f34a
commit
31ea8bc789
1 changed files with 15 additions and 0 deletions
15
build.py
15
build.py
|
@ -650,6 +650,20 @@ class JpegTurboTarget(CMakeStaticDependencyTarget):
|
|||
return os.path.exists(builder.source_path + 'turbojpeg.h')
|
||||
|
||||
|
||||
class Mpg123Target(ConfigureMakeStaticDependencyTarget):
|
||||
def __init__(self, name='mpg123'):
|
||||
super().__init__(name)
|
||||
self.options['--enable-modules'] = 'no'
|
||||
|
||||
def prepare_source(self, builder: 'Builder'):
|
||||
builder.download_source(
|
||||
'https://www.mpg123.de/download/mpg123-1.26.3.tar.bz2',
|
||||
'30c998785a898f2846deefc4d17d6e4683a5a550b7eacf6ea506e30a7a736c6e')
|
||||
|
||||
def detect(self, builder: 'Builder') -> bool:
|
||||
return os.path.exists(builder.source_path + 'libmpg123.pc.in')
|
||||
|
||||
|
||||
class NasmTarget(ConfigureMakeDependencyTarget):
|
||||
def __init__(self, name='nasm'):
|
||||
super().__init__(name)
|
||||
|
@ -928,6 +942,7 @@ class Builder(object):
|
|||
Bzip2Target(),
|
||||
FlacTarget(),
|
||||
JpegTurboTarget(),
|
||||
Mpg123Target(),
|
||||
NasmTarget(),
|
||||
OggTarget(),
|
||||
OpusTarget(),
|
||||
|
|
Loading…
Reference in a new issue