mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-21 11:31:07 +00:00
aedi: move instpatch target to tier 2
zmusic since version 1.1.11 uses own version of fluidsynth with instpatch disabled
This commit is contained in:
parent
85cef98d27
commit
b5cdda3a49
3 changed files with 27 additions and 27 deletions
|
@ -58,7 +58,6 @@ def targets():
|
|||
FlacTarget(),
|
||||
GlibTarget(),
|
||||
IconvTarget(),
|
||||
InstPatchTarget(),
|
||||
IntlTarget(),
|
||||
JpegTurboTarget(),
|
||||
LameTarget(),
|
||||
|
@ -79,6 +78,7 @@ def targets():
|
|||
DumbTarget(),
|
||||
FluidSynthTarget(),
|
||||
FmtTarget(),
|
||||
InstPatchTarget(),
|
||||
MadTarget(),
|
||||
MikmodTarget(),
|
||||
ModPlugTarget(),
|
||||
|
|
|
@ -164,32 +164,6 @@ class IconvTarget(base.ConfigureMakeStaticDependencyTarget):
|
|||
super().configure(state)
|
||||
|
||||
|
||||
class InstPatchTarget(base.CMakeStaticDependencyTarget):
|
||||
def __init__(self, name='instpatch'):
|
||||
super().__init__(name)
|
||||
|
||||
def prepare_source(self, state: BuildState):
|
||||
state.download_source(
|
||||
'https://github.com/swami/libinstpatch/archive/v1.1.6.tar.gz',
|
||||
'8e9861b04ede275d712242664dab6ffa9166c7940fea3b017638681d25e10299')
|
||||
|
||||
def configure(self, state: BuildState):
|
||||
state.options['LIB_SUFFIX'] = None
|
||||
|
||||
# Workaround for missing frameworks in dependencies, no clue what's wrong at the moment
|
||||
state.environment['LDFLAGS'] = '-framework CoreFoundation -framework Foundation'
|
||||
|
||||
super().configure(state)
|
||||
|
||||
def post_build(self, state: BuildState):
|
||||
super().post_build(state)
|
||||
|
||||
# Remove extra directory from include path
|
||||
include_path = state.install_path / 'include'
|
||||
include_subpath = include_path / 'libinstpatch-2/libinstpatch'
|
||||
shutil.move(str(include_subpath), include_path)
|
||||
|
||||
|
||||
class IntlTarget(GettextTarget):
|
||||
def __init__(self, name='intl'):
|
||||
super().__init__(name)
|
||||
|
|
|
@ -88,6 +88,32 @@ class FmtTarget(base.CMakeStaticDependencyTarget):
|
|||
super().configure(state)
|
||||
|
||||
|
||||
class InstPatchTarget(base.CMakeStaticDependencyTarget):
|
||||
def __init__(self, name='instpatch'):
|
||||
super().__init__(name)
|
||||
|
||||
def prepare_source(self, state: BuildState):
|
||||
state.download_source(
|
||||
'https://github.com/swami/libinstpatch/archive/v1.1.6.tar.gz',
|
||||
'8e9861b04ede275d712242664dab6ffa9166c7940fea3b017638681d25e10299')
|
||||
|
||||
def configure(self, state: BuildState):
|
||||
state.options['LIB_SUFFIX'] = None
|
||||
|
||||
# Workaround for missing frameworks in dependencies, no clue what's wrong at the moment
|
||||
state.environment['LDFLAGS'] = '-framework CoreFoundation -framework Foundation'
|
||||
|
||||
super().configure(state)
|
||||
|
||||
def post_build(self, state: BuildState):
|
||||
super().post_build(state)
|
||||
|
||||
# Remove extra directory from include path
|
||||
include_path = state.install_path / 'include'
|
||||
include_subpath = include_path / 'libinstpatch-2/libinstpatch'
|
||||
shutil.move(str(include_subpath), include_path)
|
||||
|
||||
|
||||
class MadTarget(base.ConfigureMakeStaticDependencyTarget):
|
||||
def __init__(self, name='mad'):
|
||||
super().__init__(name)
|
||||
|
|
Loading…
Reference in a new issue