From 80a96fd90d8b6306d025300f291122d341a000d8 Mon Sep 17 00:00:00 2001 From: Hubert Maier Date: Mon, 21 Oct 2019 20:38:24 +0200 Subject: 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 --- backends/platform/sdl/amigaos/amigaos.mk | 39 +++++++++++++++++++------------- 1 file changed, 23 insertions(+), 16 deletions(-) (limited to 'backends/platform/sdl') 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 -- cgit v1.2.3