mirror of
https://frontier.innolan.net/github/amigaos-cross-toolchain6.git
synced 2024-10-19 10:29:55 +00:00
Fix issue with python-lhafile installation.
This commit is contained in:
+18
-18
@@ -197,6 +197,24 @@ def build():
|
|||||||
environ['LANG'] = 'C'
|
environ['LANG'] = 'C'
|
||||||
environ['TERM'] = 'xterm'
|
environ['TERM'] = 'xterm'
|
||||||
|
|
||||||
|
find_executable('perl')
|
||||||
|
find_executable('patch')
|
||||||
|
find_executable('make')
|
||||||
|
find_executable('git')
|
||||||
|
|
||||||
|
with cwd('{archives}'):
|
||||||
|
for url in URLS:
|
||||||
|
if type(url) == tuple:
|
||||||
|
url, name = url[0], url[1]
|
||||||
|
else:
|
||||||
|
name = path.basename(url)
|
||||||
|
fetch(name, url)
|
||||||
|
|
||||||
|
unpack('python-lha', work_dir='{build}')
|
||||||
|
python_setup('python-lha')
|
||||||
|
|
||||||
|
add_site_dir('{host}')
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Make sure we always choose known compiler (from the distro) and not one in
|
Make sure we always choose known compiler (from the distro) and not one in
|
||||||
user's path that could shadow the original one.
|
user's path that could shadow the original one.
|
||||||
@@ -218,28 +236,10 @@ def build():
|
|||||||
environ['CC'] = ' '.join([find_executable(CC), ARCH])
|
environ['CC'] = ' '.join([find_executable(CC), ARCH])
|
||||||
environ['CXX'] = ' '.join([find_executable(CXX), ARCH])
|
environ['CXX'] = ' '.join([find_executable(CXX), ARCH])
|
||||||
|
|
||||||
find_executable('perl')
|
|
||||||
find_executable('patch')
|
|
||||||
find_executable('make')
|
|
||||||
find_executable('git')
|
|
||||||
|
|
||||||
environ['PATH'] = ":".join([path.join('{target}', 'bin'),
|
environ['PATH'] = ":".join([path.join('{target}', 'bin'),
|
||||||
path.join('{host}', 'bin'),
|
path.join('{host}', 'bin'),
|
||||||
environ['PATH']])
|
environ['PATH']])
|
||||||
|
|
||||||
add_site_dir('{host}')
|
|
||||||
|
|
||||||
with cwd('{archives}'):
|
|
||||||
for url in URLS:
|
|
||||||
if type(url) == tuple:
|
|
||||||
url, name = url[0], url[1]
|
|
||||||
else:
|
|
||||||
name = path.basename(url)
|
|
||||||
fetch(name, url)
|
|
||||||
|
|
||||||
unpack('python-lha', work_dir='{build}')
|
|
||||||
python_setup('python-lha')
|
|
||||||
|
|
||||||
unpack('{m4}')
|
unpack('{m4}')
|
||||||
configure('{m4}', '--prefix={host}')
|
configure('{m4}', '--prefix={host}')
|
||||||
make('{m4}')
|
make('{m4}')
|
||||||
|
|||||||
Reference in New Issue
Block a user