Skip to content

Commit

Permalink
Add salvador & lzsa compressors
Browse files Browse the repository at this point in the history
  • Loading branch information
cahirwpz committed Apr 7, 2024
1 parent 9cc4ee3 commit e29a53d
Showing 1 changed file with 28 additions and 2 deletions.
30 changes: 28 additions & 2 deletions toolchain-m68k
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ URLS = \
'https://ftp.gnu.org/gnu/automake/automake-1.15.tar.gz',
('https://github.com/askeksa/Shrinkler/archive/refs/tags/v4.7.tar.gz',
'Shrinkler-4.7.tar.gz'),
('ftp://ftp.uk.freesbie.org/sites/distfiles.gentoo.org/distfiles/' +
'flex-2.5.4a.tar.gz', 'flex-2.5.4.tar.gz'),
('https://github.com/emmanuel-marty/salvador/archive/refs/tags/1.4.2.tar.gz',
'salvador-1.4.2.tar.gz'),
('https://github.com/emmanuel-marty/lzsa/archive/refs/tags/1.4.1.tar.gz',
'lzsa-1.4.1.tar.gz'),
'https://ftp.gnu.org/old-gnu/gnu-0.2/src/flex-2.5.4.tar.gz',
('http://hp.alinea-computer.de/AmigaOS/NDK39.lha', 'NDK_3.9.lha'),
('http://phoenix.owl.de/tags/vasm1_9c.tar.gz', 'vasm.tar.gz')]
Expand Down Expand Up @@ -107,6 +109,20 @@ def install_shrinkler():
copy('{build}/{shrinkler}/build/native/Shrinkler', '{prefix}/bin/Shrinkler')


@recipe('salvador-install')
def install_salvador():
info('installing salvador')

copy('{build}/{salvador}/salvador', '{prefix}/bin/salvador')


@recipe('lzsa-install')
def install_lzsa():
info('installing lzsa')

copy('{build}/{lzsa}/lzsa', '{prefix}/bin/lzsa')


@recipe('fs-uae-bootstrap')
def fs_uae_bootstrap():
info('bootstrapping fs-uae')
Expand Down Expand Up @@ -355,6 +371,14 @@ def build():
make('{shrinkler}')
install_shrinkler()

unpack('{salvador}', work_dir='{build}')
make('{salvador}', CC='gcc')
install_salvador()

unpack('{lzsa}', work_dir='{build}')
make('{lzsa}', CC='gcc')
install_lzsa()


def clean():
rmtree('{stamps}')
Expand Down Expand Up @@ -403,6 +427,8 @@ if __name__ == "__main__":
fsuae='fs-uae',
gcc='gcc-2.95.3',
shrinkler='Shrinkler-4.7',
salvador='salvador-1.4.2',
lzsa='lzsa-1.4.1',
target='m68k-amigaos',
python=sys.executable,
patches=path.join('{top}', 'patches'),
Expand Down

0 comments on commit e29a53d

Please sign in to comment.