diff options
author | Hubert Maier | 2019-10-21 20:38:24 +0200 |
---|---|---|
committer | Filippos Karapetis | 2019-10-21 21:38:24 +0300 |
commit | 80a96fd90d8b6306d025300f291122d341a000d8 (patch) | |
tree | 8d94af2faec7656b2da8d42445c328d532f7393a /backends/platform/sdl/amigaos/amigaos.mk | |
parent | 93a864f39a1d527525196fed66a2d16c83ee5f75 (diff) | |
download | scummvm-rg350-80a96fd90d8b6306d025300f291122d341a000d8.tar.gz scummvm-rg350-80a96fd90d8b6306d025300f291122d341a000d8.tar.bz2 scummvm-rg350-80a96fd90d8b6306d025300f291122d341a000d8.zip |
AMIGAOS4: Automate special target installation even more (#1901)
* AMIGAOS4: Update amigaos.mk
- reorg
- add stripping/copying engine plugins
- add Ext_Ins_so.rexx
* Ext_Inst_so.rexx
Add script to extract and install all compiled-in shared libraries to a local sobjs/ dir.
Reason is that not every AmigaOS4 installation, especially vanilla ones, feature all mandatory libraries (which has led to many bug reports and lots of gathering of the correct libraries for users in the past)
* AMIGAOS4: RM2AG.rexx
- Add automatic installation to the correct path
- Add deleting the temp file
- Typos and rewording
- Add I/O panic switches
Diffstat (limited to 'backends/platform/sdl/amigaos/amigaos.mk')
-rw-r--r-- | backends/platform/sdl/amigaos/amigaos.mk | 39 |
1 files changed, 23 insertions, 16 deletions
diff --git a/backends/platform/sdl/amigaos/amigaos.mk b/backends/platform/sdl/amigaos/amigaos.mk index 3522d59424..e9efe361c7 100644 --- a/backends/platform/sdl/amigaos/amigaos.mk +++ b/backends/platform/sdl/amigaos/amigaos.mk @@ -5,7 +5,18 @@ amigaosdist: $(EXECUTABLE) $(PLUGINS) mkdir -p $(AMIGAOSPATH)/extras cp ${srcdir}/dists/amiga/scummvm_drawer.info $(AMIGAOSPATH).info cp ${srcdir}/dists/amiga/scummvm.info $(AMIGAOSPATH)/$(EXECUTABLE).info +# Copy mandatory installation files. +# Prepare README.md for AmigaGuide conversion. + cat ${srcdir}/README.md | sed -f ${srcdir}/dists/amiga/convertRM.sed > README.conv +# AmigaOS AREXX has a problem when ${srcdir} is '.'. +# It will break with a "Program not found" error. +# Copy the script to cwd and, once it has finished, remove it. + cp ${srcdir}/dists/amiga/RM2AG.rexx . + rx RM2AG.rexx README.conv $(AMIGAOSPATH) + rm README.conv + rm RM2AG.rexx ifdef DIST_FILES_DOCS + mkdir -p $(AMIGAOSPATH)/doc cp -r $(srcdir)/doc/ $(AMIGAOSPATH) cp $(DIST_FILES_DOCS) $(AMIGAOSPATH)/doc/ endif @@ -18,24 +29,20 @@ endif ifdef DIST_FILES_VKEYBD cp $(DIST_FILES_VKEYBD) $(AMIGAOSPATH)/extras/ endif -# Copy shared library plugins, if available. -ifdef DYNAMIC_MODULES - mkdir -p $(AMIGAOSPATH)/plugins - cp $(PLUGINS) $(AMIGAOSPATH)/plugins/ -endif ifdef DIST_FILES_THEMES mkdir -p $(AMIGAOSPATH)/themes cp $(DIST_FILES_THEMES) $(AMIGAOSPATH)/themes/ endif +# Strip and copy engine plugins. +ifdef DYNAMIC_MODULES + mkdir -p $(AMIGAOSPATH)/plugins + $(foreach plugin, $(PLUGINS), $(STRIP) $(plugin) -o $(AMIGAOSPATH)/$(plugin);) +# Extract and install compiled-in shared libraries. +# Not every AmigaOS installation, especially vanilla ones, +# come with every mandatory shared library. + mkdir -p $(AMIGAOSPATH)/sobjs + cp ${srcdir}/dists/amiga/Ext_Inst_so.rexx . + rx Ext_Inst_so.rexx $(EXECUTABLE) $(AMIGAOSPATH) + rm Ext_Inst_so.rexx +endif $(STRIP) $(EXECUTABLE) -o $(AMIGAOSPATH)/$(EXECUTABLE) -# Prepare README.md for AmigaGuide conversion. - cat ${srcdir}/README.md | sed -f ${srcdir}/dists/amiga/convertRM.sed > README.conv -# AmigaOS AREXX has a problem when ${srcdir} is '.'. -# It will break with a "Program not found" error. -# We copy the script to cwd first and, once it has finished, remove it again. - cp ${srcdir}/dists/amiga/RM2AG.rexx . - rx RM2AG.rexx README.conv - cp README.guide $(AMIGAOSPATH) - rm RM2AG.rexx - rm README.conv - rm README.guide |