diff options
Diffstat (limited to 'backends')
-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 |