summaryrefslogtreecommitdiff
path: root/games/redeclipse/Makefile.patch
diff options
context:
space:
mode:
Diffstat (limited to 'games/redeclipse/Makefile.patch')
-rw-r--r--games/redeclipse/Makefile.patch60
1 files changed, 38 insertions, 22 deletions
diff --git a/games/redeclipse/Makefile.patch b/games/redeclipse/Makefile.patch
index afb6063328..6036f5844a 100644
--- a/games/redeclipse/Makefile.patch
+++ b/games/redeclipse/Makefile.patch
@@ -1,23 +1,28 @@
---- Makefile.orig 2012-08-30 23:59:06.000000000 -0600
-+++ Makefile 2012-12-24 13:15:46.139736132 -0700
-@@ -1,9 +1,10 @@
+--- Makefile.orig 2013-03-22 02:27:41.000000000 -0600
++++ Makefile 2013-04-03 13:52:08.721896778 -0600
+@@ -1,4 +1,5 @@
APPNAME=redeclipse
-+VERSION=@VERSION@
- APPCLIENT=reclient
- APPSERVER=reserver
++VERSION=1.4
+
+ all:
+
+--- core.mk.orig 2013-03-21 13:45:14.000000000 -0600
++++ core.mk 2013-04-03 13:52:08.723896754 -0600
+@@ -3,7 +3,7 @@
+ APPSERVER=$(APPNAME)_server
#CXXFLAGS= -ggdb3
-CXXFLAGS= -O3 -fomit-frame-pointer
-+CXXFLAGS= $(EXTRA_CXXFLAGS) -fomit-frame-pointer
++CXXFLAGS=$(EXTRA_CXXFLAGS) -fomit-frame-pointer
override CXXFLAGS+= -Wall -fsigned-char -fno-exceptions -fno-rtti
PLATFORM= $(shell uname -s)
---- system-install.mk.orig 2012-08-13 04:51:04.000000000 -0600
-+++ system-install.mk 2012-12-24 13:39:56.896599172 -0700
-@@ -3,15 +3,15 @@
- cappname=$(shell echo $(appname) | tr '[:lower:]' '[:upper:]')# Captial appname
- appclient=$(APPCLIENT)
+--- system-install.mk.orig 2013-03-20 16:21:57.000000000 -0600
++++ system-install.mk 2013-04-03 22:44:56.979810436 -0600
+@@ -6,15 +6,15 @@
appserver=$(APPSERVER)
+ appgamedir=game/$(APPSHORTNAME)
+
-prefix=/usr/local
+prefix=/usr
games=
@@ -28,14 +33,14 @@
-datadir=$(DESTDIR)$(prefix)/share$(games)
-docdir=$(DESTDIR)$(prefix)/share/doc
-mandir=$(DESTDIR)$(prefix)/share/man
-+libexecdir=$(DESTDIR)$(prefix)/libexec
-+datadir=$(DESTDIR)$(prefix)/share/games/$(appname)
++libexecdir=$(DESTDIR)$(prefix)/share/$(appname)-$(VERSION)/lib
++datadir=$(DESTDIR)$(prefix)/share/$(appname)-$(VERSION)
+docdir=$(DESTDIR)$(prefix)/doc/$(appname)-$(VERSION)
+mandir=$(DESTDIR)$(prefix)/man
menudir=$(DESTDIR)$(prefix)/share/applications
icondir=$(DESTDIR)$(prefix)/share/icons/hicolor
pixmapdir=$(DESTDIR)$(prefix)/share/pixmaps
-@@ -45,55 +45,55 @@
+@@ -54,62 +54,62 @@
icons: $(ICONS)
system-install-client: client
@@ -54,15 +59,19 @@
+ -e 's,@DOCDIR@/@APPNAME@,$(patsubst $(DESTDIR)%,%,$(docdir)),g' \
-e 's,@APPNAME@,$(appname),g' \
-i $(gamesbindir)/$(appname)
-- ln -s $(patsubst $(DESTDIR)%,%,$(datadir))/$(appname)/data \
+ ln -s $(patsubst $(DESTDIR)%,%,$(datadir))/$(appname)/data \
- $(libexecdir)/$(appname)/data
-+ ln -s $(patsubst $(DESTDIR)%,%,$(datadir))/data \
+ $(libexecdir)/data
+ ln -s $(patsubst $(DESTDIR)%,%,$(datadir))/$(appname)/game \
+- $(libexecdir)/$(appname)/game
++ $(libexecdir)/game
system-install-server: server
- install -d $(libexecdir)/$(appname)
+ install -d $(libexecdir)
install -d $(gamesbindir)
+- install -d $(datadir)/$(appname)
++ install -d $(datadir)
install -m755 $(appserver) \
- $(libexecdir)/$(appname)/$(appname)-server
+ $(libexecdir)/$(appname)-server
@@ -76,20 +85,26 @@
+ -e 's,@DOCDIR@/@APPNAME@,$(patsubst $(DESTDIR)%,%,$(docdir)),g' \
-e 's,@APPNAME@,$(appname),g' \
-i $(gamesbindir)/$(appname)-server
+ install -m644 ../$(appgamedir)/version.cfg \
+- $(datadir)/$(appname)/version.cfg
++ $(datadir)/version.cfg
system-install-data:
- install -d $(datadir)/$(appname)
+- install -d $(datadir)/$(appname)/game
- cp -r ../data $(datadir)/$(appname)/data
+- cp -r ../$(appgamedir) $(datadir)/$(appname)/game
+ install -d $(datadir)
++ install -d $(datadir)/game
+ cp -r ../data $(datadir)/data
++ cp -r ../$(appgamedir) $(datadir)/game
system-install-docs: $(MANPAGES)
install -d $(mandir)/man6
-- install -d $(docdir)/$(appname)
+ install -d $(docdir)/$(appname)
- sed -e 's,@LIBEXECDIR@,$(patsubst $(DESTDIR)%,%,$(libexecdir)),g' \
- -e 's,@DATADIR@,$(patsubst $(DESTDIR)%,%,$(datadir)),g' \
- -e 's,@DOCDIR@,$(patsubst $(DESTDIR)%,%,$(docdir)),g' \
-+ install -d $(docdir)
+ sed -e 's,@LIBEXECDIR@/@APPNAME@,$(patsubst $(DESTDIR)%,%,$(libexecdir)),g' \
+ -e 's,@DATADIR@/@APPNAME@,$(patsubst $(DESTDIR)%,%,$(datadir)),g' \
+ -e 's,@DOCDIR@/@APPNAME@,$(patsubst $(DESTDIR)%,%,$(docdir)),g' \
@@ -114,14 +129,15 @@
system-install-menus: icons
install -d $(menudir)
-@@ -103,9 +103,9 @@
+@@ -119,9 +119,9 @@
install -d $(icondir)/64x64/apps
install -d $(icondir)/128x128/apps
install -d $(pixmapdir)
- sed -e 's,@LIBEXECDIR@,$(patsubst $(DESTDIR)%,%,$(libexecdir)),g' \
-+ sed -e 's,@LIBEXECDIR@/@APPNAME@,$(patsubst $(DESTDIR)%,%,$(libexecdir)),g' \
- -e 's,@DATADIR@,$(patsubst $(DESTDIR)%,%,$(datadir)),g' \
+- -e 's,@DATADIR@,$(patsubst $(DESTDIR)%,%,$(datadir)),g' \
- -e 's,@DOCDIR@,$(patsubst $(DESTDIR)%,%,$(docdir)),g' \
++ sed -e 's,@LIBEXECDIR@/@APPNAME@,$(patsubst $(DESTDIR)%,%,$(libexecdir)),g' \
++ -e 's,@DATADIR@/@APPNAME@,$(patsubst $(DESTDIR)%,%,$(datadir)),g' \
+ -e 's,@DOCDIR@/@APPNAME@,$(patsubst $(DESTDIR)%,%,$(docdir)),g' \
-e 's,@APPNAME@,$(appname),g' \
install/nix/$(appsrcname).desktop.am > \