diff options
Diffstat (limited to 'games-strategy/openra/files/openra-20120315-makefile.patch')
-rw-r--r-- | games-strategy/openra/files/openra-20120315-makefile.patch | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/games-strategy/openra/files/openra-20120315-makefile.patch b/games-strategy/openra/files/openra-20120315-makefile.patch new file mode 100644 index 000000000..4dacda35d --- /dev/null +++ b/games-strategy/openra/files/openra-20120315-makefile.patch @@ -0,0 +1,46 @@ +From: hasufell <julian.ospald@googlemail.com> +Date: Sat Mar 31 21:32:07 CEST 2012 +Subject: paths and install rules + +fix non-modifable paths and broken install-rules + +--- Makefile ++++ Makefile +@@ -180,10 +180,10 @@ + # + # 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 @@ + @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) |