1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-16 07:58:04 +00:00
freebsd-ports/games/openra/files/patch-Makefile
Jan Beich f53f2edd14 games/openra: update to 20150424
- thirdparty/*.dll were removed upstream in favor of NuGet
- SharpFont-3.0 upstream patch to simplify sed(1) line
- Verbose build/stage

Changes:	https://github.com/OpenRA/OpenRA/wiki/Changelog#release-20150424
2015-05-24 17:45:55 +00:00

36 lines
1.6 KiB
Plaintext

# Without zenity(1) fallback to either WinForms or no crash dialog
--- Makefile~
+++ Makefile
@@ -381,10 +381,28 @@ install-linux-mime:
install-linux-scripts:
@echo "#!/bin/sh" > openra
@echo 'cd "$(gameinstalldir)"' >> openra
- @echo 'mono OpenRA.Game.exe "$$@"' >> openra
+ @echo 'ZENITY=`which zenity`' >> openra
+ @echo 'if [ -z "$$ZENITY" ] && (' >> openra
+ @echo ' # from mono/io-layer/processes.c' >> openra
+ @echo ' hash xdg-open 2>/dev/null ||' >> openra
+ @echo ' hash gnome-open 2>/dev/null ||' >> openra
+ @echo ' hash kfmclient 2>/dev/null)' >> openra
+ @echo 'then' >> openra
+ @echo ' mono OpenRA.exe "$$@"' >> openra
+ @echo 'else' >> openra
+ @echo ' mono OpenRA.Game.exe "$$@"' >> openra
+ @echo 'fi' >> openra
@echo 'if [ $$? != 0 -a $$? != 1 ]' >> openra
@echo 'then' >> openra
- @echo 'ZENITY=`which zenity` || echo "OpenRA needs zenity installed to display a graphical error dialog. See ~/.openra. for log files."' >> openra
+ @echo ' if [ -z "$$ZENITY" ]' >> openra
+ @echo ' then' >> openra
+ @echo ' echo' >> openra
+ @echo ' echo "OpenRA has encountered a fatal error."' >> openra
+ @echo ' echo "Log Files are available in ~/.openra."' >> openra
+ @echo ' echo' >> openra
+ @echo ' echo "See https://github.com/OpenRA/OpenRA/wiki/FAQ"' >> openra
+ @echo ' exit 1' >> openra
+ @echo ' fi' >> openra
@echo '$$ZENITY --question --title "OpenRA" --text "OpenRA has encountered a fatal error.\nLog Files are available in ~/.openra." --ok-label "Quit" --cancel-label "View FAQ" || xdg-open https://github.com/OpenRA/OpenRA/wiki/FAQ' >> openra
@echo 'exit 1' >> openra
@echo 'fi' >> openra