mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-21 19:41:15 +00:00
aedi: move tiff to tier 3
This commit is contained in:
parent
7685db24f5
commit
50842a187d
3 changed files with 34 additions and 34 deletions
|
@ -84,7 +84,6 @@ def targets():
|
|||
Sdl2MixerTarget(),
|
||||
Sdl2NetTarget(),
|
||||
SodiumTarget(),
|
||||
TiffTarget(),
|
||||
VulkanHeadersTarget(),
|
||||
VulkanLoaderTarget(),
|
||||
WebpTarget(),
|
||||
|
@ -102,6 +101,7 @@ def targets():
|
|||
LuaTarget(),
|
||||
Sdl2TtfTarget(),
|
||||
SfmlTarget(),
|
||||
TiffTarget(),
|
||||
WxWidgetsTarget(),
|
||||
|
||||
# Tools
|
||||
|
|
|
@ -359,39 +359,6 @@ class SodiumTarget(ConfigureMakeStaticDependencyTarget):
|
|||
return state.has_source_file('libsodium.pc.in')
|
||||
|
||||
|
||||
class TiffTarget(CMakeStaticDependencyTarget):
|
||||
def __init__(self, name='tiff'):
|
||||
super().__init__(name)
|
||||
|
||||
def prepare_source(self, state: BuildState):
|
||||
state.download_source(
|
||||
'https://download.osgeo.org/libtiff/tiff-4.3.0.tar.gz',
|
||||
'0e46e5acb087ce7d1ac53cf4f56a09b221537fc86dfc5daaad1c2e89e1b37ac8',
|
||||
patches='tiff-remove-useless')
|
||||
|
||||
def configure(self, state: BuildState):
|
||||
opts = state.options
|
||||
opts['cxx'] = 'NO'
|
||||
opts['lzma'] = 'YES'
|
||||
|
||||
super().configure(state)
|
||||
|
||||
@staticmethod
|
||||
def _process_pkg_config(pcfile: Path, line: str) -> str:
|
||||
version = 'Version:'
|
||||
cflags = 'Cflags:'
|
||||
libs = 'Libs:'
|
||||
|
||||
if line.startswith(version):
|
||||
return version + ' 4.3.0\n'
|
||||
elif line.startswith(cflags):
|
||||
return cflags + ' -I${includedir}\nRequires.private: libjpeg liblzma libwebp libzstd zlib\n'
|
||||
elif line.startswith(libs):
|
||||
return libs + ' -L${libdir} -ltiff\n'
|
||||
|
||||
return line
|
||||
|
||||
|
||||
class VulkanHeadersTarget(CMakeStaticDependencyTarget):
|
||||
def __init__(self, name='vulkan-headers'):
|
||||
super().__init__(name)
|
||||
|
|
|
@ -293,6 +293,39 @@ class SfmlTarget(CMakeStaticDependencyTarget):
|
|||
super().configure(state)
|
||||
|
||||
|
||||
class TiffTarget(CMakeStaticDependencyTarget):
|
||||
def __init__(self, name='tiff'):
|
||||
super().__init__(name)
|
||||
|
||||
def prepare_source(self, state: BuildState):
|
||||
state.download_source(
|
||||
'https://download.osgeo.org/libtiff/tiff-4.3.0.tar.gz',
|
||||
'0e46e5acb087ce7d1ac53cf4f56a09b221537fc86dfc5daaad1c2e89e1b37ac8',
|
||||
patches='tiff-remove-useless')
|
||||
|
||||
def configure(self, state: BuildState):
|
||||
opts = state.options
|
||||
opts['cxx'] = 'NO'
|
||||
opts['lzma'] = 'YES'
|
||||
|
||||
super().configure(state)
|
||||
|
||||
@staticmethod
|
||||
def _process_pkg_config(pcfile: Path, line: str) -> str:
|
||||
version = 'Version:'
|
||||
cflags = 'Cflags:'
|
||||
libs = 'Libs:'
|
||||
|
||||
if line.startswith(version):
|
||||
return version + ' 4.3.0\n'
|
||||
elif line.startswith(cflags):
|
||||
return cflags + ' -I${includedir}\nRequires.private: libjpeg liblzma libwebp libzstd zlib\n'
|
||||
elif line.startswith(libs):
|
||||
return libs + ' -L${libdir} -ltiff\n'
|
||||
|
||||
return line
|
||||
|
||||
|
||||
class WxWidgetsTarget(CMakeStaticDependencyTarget):
|
||||
def __init__(self, name='wxwidgets'):
|
||||
super().__init__(name)
|
||||
|
|
Loading…
Reference in a new issue