mirror of
https://frontier.innolan.net/github/amigaos-cross-toolchain6.git
synced 2024-10-19 10:29:55 +00:00
attempt to fix problems on Windows 10
This commit is contained in:
+21
-2
@@ -18,6 +18,7 @@ URLS = \
|
|||||||
'ftp://ftp.gnu.org/gnu/texinfo/texinfo-4.12.tar.gz',
|
'ftp://ftp.gnu.org/gnu/texinfo/texinfo-4.12.tar.gz',
|
||||||
'http://isl.gforge.inria.fr/isl-0.12.2.tar.bz2',
|
'http://isl.gforge.inria.fr/isl-0.12.2.tar.bz2',
|
||||||
'http://www.bastoul.net/cloog/pages/download/cloog-0.18.4.tar.gz',
|
'http://www.bastoul.net/cloog/pages/download/cloog-0.18.4.tar.gz',
|
||||||
|
'ftp://ftp.gnu.org/gnu/automake/automake-1.15.tar.gz',
|
||||||
('http://hyperion-entertainment.biz/index.php/downloads' +
|
('http://hyperion-entertainment.biz/index.php/downloads' +
|
||||||
'?view=download&format=raw&file=69', 'SDK_53.24.lha'),
|
'?view=download&format=raw&file=69', 'SDK_53.24.lha'),
|
||||||
('svn://svn.code.sf.net/p/adtools/code/trunk/binutils', 'binutils-2.18'),
|
('svn://svn.code.sf.net/p/adtools/code/trunk/binutils', 'binutils-2.18'),
|
||||||
@@ -30,6 +31,12 @@ URLS = \
|
|||||||
from common import * # NOQA
|
from common import * # NOQA
|
||||||
|
|
||||||
|
|
||||||
|
def update_autotools(dst):
|
||||||
|
remove(path.join(dst, 'config.guess'), path.join(dst, 'config.sub'))
|
||||||
|
copy('{sources}/{automake}/lib/config.guess', path.join(dst, 'config.guess'))
|
||||||
|
copy('{sources}/{automake}/lib/config.sub', path.join(dst, 'config.sub'))
|
||||||
|
|
||||||
|
|
||||||
@recipe('{sdk}-prepare')
|
@recipe('{sdk}-prepare')
|
||||||
def prepare_sdk():
|
def prepare_sdk():
|
||||||
info('preparing {sdk}')
|
info('preparing {sdk}')
|
||||||
@@ -79,15 +86,22 @@ def build():
|
|||||||
name = path.basename(url)
|
name = path.basename(url)
|
||||||
fetch(name, url)
|
fetch(name, url)
|
||||||
|
|
||||||
|
unpack('{automake}')
|
||||||
|
|
||||||
|
py_ver = 'python%d.%d' % (sys.version_info.major, sys.version_info.minor)
|
||||||
|
require_header([path.join(py_ver, 'Python.h')],
|
||||||
|
lang='c', errmsg='python-dev package missing')
|
||||||
unpack('python-lha', work_dir='{build}')
|
unpack('python-lha', work_dir='{build}')
|
||||||
python_setup('python-lha')
|
python_setup('python-lha')
|
||||||
|
|
||||||
unpack('{texinfo}')
|
unpack('{texinfo}')
|
||||||
|
update_autotools('{sources}/{texinfo}/build-aux')
|
||||||
configure('{texinfo}', '--prefix={host}')
|
configure('{texinfo}', '--prefix={host}')
|
||||||
make('{texinfo}')
|
make('{texinfo}')
|
||||||
make('{texinfo}', 'install')
|
make('{texinfo}', 'install')
|
||||||
|
|
||||||
unpack('{gmp}')
|
unpack('{gmp}')
|
||||||
|
update_autotools('{sources}/{gmp}')
|
||||||
configure('{gmp}',
|
configure('{gmp}',
|
||||||
'--disable-shared',
|
'--disable-shared',
|
||||||
'--prefix={host}')
|
'--prefix={host}')
|
||||||
@@ -95,6 +109,7 @@ def build():
|
|||||||
make('{gmp}', 'install')
|
make('{gmp}', 'install')
|
||||||
|
|
||||||
unpack('{mpfr}')
|
unpack('{mpfr}')
|
||||||
|
update_autotools('{sources}/{mpfr}')
|
||||||
configure('{mpfr}',
|
configure('{mpfr}',
|
||||||
'--disable-shared',
|
'--disable-shared',
|
||||||
'--prefix={host}',
|
'--prefix={host}',
|
||||||
@@ -103,6 +118,7 @@ def build():
|
|||||||
make('{mpfr}', 'install')
|
make('{mpfr}', 'install')
|
||||||
|
|
||||||
unpack('{mpc}')
|
unpack('{mpc}')
|
||||||
|
update_autotools('{sources}/{mpc}')
|
||||||
configure('{mpc}',
|
configure('{mpc}',
|
||||||
'--disable-shared',
|
'--disable-shared',
|
||||||
'--prefix={host}',
|
'--prefix={host}',
|
||||||
@@ -112,6 +128,7 @@ def build():
|
|||||||
make('{mpc}', 'install')
|
make('{mpc}', 'install')
|
||||||
|
|
||||||
unpack('{isl}')
|
unpack('{isl}')
|
||||||
|
update_autotools('{sources}/{isl}')
|
||||||
configure('{isl}',
|
configure('{isl}',
|
||||||
'--disable-shared',
|
'--disable-shared',
|
||||||
'--prefix={host}',
|
'--prefix={host}',
|
||||||
@@ -120,6 +137,7 @@ def build():
|
|||||||
make('{isl}', 'install')
|
make('{isl}', 'install')
|
||||||
|
|
||||||
unpack('{cloog}')
|
unpack('{cloog}')
|
||||||
|
update_autotools('{sources}/{cloog}')
|
||||||
configure('{cloog}',
|
configure('{cloog}',
|
||||||
'--disable-shared',
|
'--disable-shared',
|
||||||
'--prefix={host}',
|
'--prefix={host}',
|
||||||
@@ -178,8 +196,8 @@ if __name__ == "__main__":
|
|||||||
if not sys.version_info[:2] == (2, 7):
|
if not sys.version_info[:2] == (2, 7):
|
||||||
panic('I need Python 2.7 to run!')
|
panic('I need Python 2.7 to run!')
|
||||||
|
|
||||||
if not (platform.system() in ['Darwin', 'Linux'] or
|
if not any(fnmatch(platform.system(), pat)
|
||||||
fnmatch(platform.system(), 'CYGWIN*')):
|
for pat in ['Darwin', 'Linux', 'CYGWIN_NT*', 'MSYS_NT*']):
|
||||||
panic('Build on %s not supported!', platform.system())
|
panic('Build on %s not supported!', platform.system())
|
||||||
|
|
||||||
if platform.machine() not in ['i686', 'x86_64']:
|
if platform.machine() not in ['i686', 'x86_64']:
|
||||||
@@ -209,6 +227,7 @@ if __name__ == "__main__":
|
|||||||
isl='isl-0.12.2',
|
isl='isl-0.12.2',
|
||||||
cloog='cloog-0.18.4',
|
cloog='cloog-0.18.4',
|
||||||
texinfo='texinfo-4.12',
|
texinfo='texinfo-4.12',
|
||||||
|
automake='automake-1.15',
|
||||||
binutils='binutils-{binutils_ver}',
|
binutils='binutils-{binutils_ver}',
|
||||||
sdk='SDK_53.24',
|
sdk='SDK_53.24',
|
||||||
gcc='gcc-{gcc_ver}',
|
gcc='gcc-{gcc_ver}',
|
||||||
|
|||||||
Reference in New Issue
Block a user