aedi: add ftgl target

This commit is contained in:
alexey.lysiuk 2021-06-22 17:24:13 +03:00
parent 33d37652cc
commit c56cd132ef
2 changed files with 19 additions and 0 deletions

View file

@ -70,6 +70,7 @@ def targets():
DumbTarget(),
FmtTarget(),
FreeTypeTarget(),
FtglTarget(),
GlewTarget(),
LzmaTarget(),
MadTarget(),

View file

@ -78,6 +78,24 @@ class FreeTypeTarget(CMakeStaticDependencyTarget):
shutil.copy(state.patch_path + 'freetype-config', bin_path)
class FtglTarget(ConfigureMakeStaticDependencyTarget):
def __init__(self, name='ftgl'):
super().__init__(name)
opts = self.options
opts['--with-glut-inc'] = '/dev/null'
opts['--with-glut-lib'] = '/dev/null'
def prepare_source(self, state: BuildState):
state.download_source(
'https://downloads.sourceforge.net/project/ftgl/FTGL%20Source/2.1.3~rc5/ftgl-2.1.3-rc5.tar.gz',
'5458d62122454869572d39f8aa85745fc05d5518001bcefa63bd6cbb8d26565b',
patches='ftgl-support-arm64')
def detect(self, state: BuildState) -> bool:
return os.path.exists(state.source + 'ftgl.pc.in')
class GlewTarget(CMakeStaticDependencyTarget):
def __init__(self, name='glew'):
super().__init__(name)