From 1010276cd57bb02c827a5b0839de403df3c85e68 Mon Sep 17 00:00:00 2001 From: hasufell Date: Sun, 1 Apr 2012 01:46:21 +0200 Subject: [PATCH] make paths modifiable, fix broken install-rules, fix INSTALL --- INSTALL | 20 ++++++++------------ Makefile | 17 +++++++++++------ 2 files changed, 19 insertions(+), 18 deletions(-) diff --git a/INSTALL b/INSTALL index 83fe4c813a..cab43ddaab 100644 --- a/INSTALL +++ b/INSTALL @@ -41,23 +41,19 @@ UBUNTU (substitute comparable packages for other linux distros): OpenRA does not work with some older versions of Compiz. On affected systems, disable desktop effects before playing. This is fixed in Ubuntu Natty and later. -You will additionally need to copy the third party dependencies (.dll and .config) from the -thirdparty and thirdparty/Tao directories into the game root: - - cp -v thirdparty/*.dll thirdparty/Tao/* . - -Alternatively, the dlls can be installed into your system GAC. This is not +The following dlls can also be installed into your system GAC. This is not recommended because we ship a custom Tao.FreeType that can conflict with other applications that use Tao: - gacutil -i thirdparty/Tao/Tao.Cg.dll - gacutil -i thirdparty/Tao/Tao.OpenGl.dll - gacutil -i thirdparty/Tao/Tao.OpenAl.dll - gacutil -i thirdparty/Tao/Tao.Sdl.dll - gacutil -i thirdparty/Tao/Tao.FreeType.dll - gacutil -i thirdparty/ICSharpCode.SharpZipLib.dll + gacutil -i Tao.Cg.dll + gacutil -i Tao.OpenGl.dll + gacutil -i Tao.OpenAl.dll + gacutil -i Tao.Sdl.dll + gacutil -i Tao.FreeType.dll + gacutil -i ICSharpCode.SharpZipLib.dll To compile OpenRA, run `make' from the command line. +To install run 'make install'. Run the game with `mono OpenRA.Game.exe Game.Mods=ra` for Red Alert or `mono OpenRA.Game.exe Game.Mods=cnc` for Command & Conquer diff --git a/Makefile b/Makefile index fd9facd1ac..66109770b7 100644 --- a/Makefile +++ b/Makefile @@ -180,10 +180,10 @@ $(foreach prog,$(PROGRAMS),$(eval $(call BUILD_ASSEMBLY,$(prog)))) # # Install / Uninstall for *nix # -prefix = /usr/local -datarootdir = $(prefix)/share -datadir = $(datarootdir) -bindir = $(prefix)/bin +prefix ?= /usr/local +datarootdir ?= $(prefix)/share +datadir ?= $(datarootdir) +bindir ?= $(prefix)/bin BIN_INSTALL_DIR = $(DESTDIR)$(bindir) INSTALL_DIR = $(DESTDIR)$(datadir)/openra INSTALL = install @@ -219,15 +219,20 @@ install: all @cp -r glsl $(INSTALL_DIR) @cp -r cg $(INSTALL_DIR) @cp *.ttf $(INSTALL_DIR) - @cp --parents -r thirdparty/Tao $(INSTALL_DIR) + @cp thirdparty/Tao/* $(INSTALL_DIR) @$(INSTALL_PROGRAM) thirdparty/ICSharpCode.SharpZipLib.dll $(INSTALL_DIR) @echo "#!/bin/sh" > openra @echo "cd "$(datadir)"/openra" >> openra - @echo "mono "$(datadir)"/openra/OpenRA.Game.exe \"$$""@\"" >> openra + @echo "exec mono "$(datadir)"/openra/OpenRA.Game.exe \"$$""@\"" >> openra + + @echo "#!/bin/sh" > openra-editor + @echo "cd "$(datadir)"/openra" >> openra-editor + @echo "exec mono "$(datadir)"/openra/OpenRA.Editor.exe \"$$""@\"" >> openra-editor @$(INSTALL_PROGRAM) -d $(BIN_INSTALL_DIR) @$(INSTALL_PROGRAM) -m +rx openra $(BIN_INSTALL_DIR) + @$(INSTALL_PROGRAM) -m +rx openra-editor $(BIN_INSTALL_DIR) uninstall: @-rm -r $(INSTALL_DIR)