mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-10 06:31:37 +00:00
aedi: move fluidsynth target to tier 2
zmusic since version 1.1.11 uses own version of fluidsynth gzdoom and raze no longer depend on external fluidsynth library
This commit is contained in:
parent
184a19f742
commit
85cef98d27
3 changed files with 24 additions and 24 deletions
|
@ -56,7 +56,6 @@ def targets():
|
|||
Bzip2Target(),
|
||||
FfiTarget(),
|
||||
FlacTarget(),
|
||||
FluidSynthTarget(),
|
||||
GlibTarget(),
|
||||
IconvTarget(),
|
||||
InstPatchTarget(),
|
||||
|
@ -78,6 +77,7 @@ def targets():
|
|||
|
||||
# Libraries needed for other targets
|
||||
DumbTarget(),
|
||||
FluidSynthTarget(),
|
||||
FmtTarget(),
|
||||
MadTarget(),
|
||||
MikmodTarget(),
|
||||
|
|
|
@ -95,29 +95,6 @@ class FlacTarget(base.CMakeStaticDependencyTarget):
|
|||
super().configure(state)
|
||||
|
||||
|
||||
class FluidSynthTarget(base.CMakeStaticDependencyTarget):
|
||||
def __init__(self, name='fluidsynth'):
|
||||
super().__init__(name)
|
||||
|
||||
def prepare_source(self, state: BuildState):
|
||||
state.download_source(
|
||||
'https://github.com/FluidSynth/fluidsynth/archive/refs/tags/v2.3.2.tar.gz',
|
||||
'cd610810f30566e28fb98c36501f00446a06fa6bae3dc562c8cd3868fe1c0fc7')
|
||||
|
||||
def configure(self, state: BuildState):
|
||||
opts = state.options
|
||||
opts['DEFAULT_SOUNDFONT'] = 'default.sf2'
|
||||
opts['enable-framework'] = 'NO'
|
||||
opts['enable-readline'] = 'NO'
|
||||
opts['enable-sdl2'] = 'NO'
|
||||
|
||||
super().configure(state)
|
||||
|
||||
def post_build(self, state: BuildState):
|
||||
super().prepare_source(state)
|
||||
self.keep_module_target(state, 'FluidSynth::libfluidsynth')
|
||||
|
||||
|
||||
class GettextTarget(base.ConfigureMakeStaticDependencyTarget):
|
||||
def __init__(self, name='gettext'):
|
||||
super().__init__(name)
|
||||
|
|
|
@ -48,6 +48,29 @@ class DumbTarget(base.CMakeStaticDependencyTarget):
|
|||
return 'Libs: -L${libdir} -ldumb\n' if line.startswith('Libs:') else line
|
||||
|
||||
|
||||
class FluidSynthTarget(base.CMakeStaticDependencyTarget):
|
||||
def __init__(self, name='fluidsynth'):
|
||||
super().__init__(name)
|
||||
|
||||
def prepare_source(self, state: BuildState):
|
||||
state.download_source(
|
||||
'https://github.com/FluidSynth/fluidsynth/archive/refs/tags/v2.3.2.tar.gz',
|
||||
'cd610810f30566e28fb98c36501f00446a06fa6bae3dc562c8cd3868fe1c0fc7')
|
||||
|
||||
def configure(self, state: BuildState):
|
||||
opts = state.options
|
||||
opts['DEFAULT_SOUNDFONT'] = 'default.sf2'
|
||||
opts['enable-framework'] = 'NO'
|
||||
opts['enable-readline'] = 'NO'
|
||||
opts['enable-sdl2'] = 'NO'
|
||||
|
||||
super().configure(state)
|
||||
|
||||
def post_build(self, state: BuildState):
|
||||
super().prepare_source(state)
|
||||
self.keep_module_target(state, 'FluidSynth::libfluidsynth')
|
||||
|
||||
|
||||
class FmtTarget(base.CMakeStaticDependencyTarget):
|
||||
def __init__(self, name='fmt'):
|
||||
super().__init__(name)
|
||||
|
|
Loading…
Reference in a new issue