diff options
Diffstat (limited to 'games/larn/larn-fixups.patch')
-rw-r--r-- | games/larn/larn-fixups.patch | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/games/larn/larn-fixups.patch b/games/larn/larn-fixups.patch new file mode 100644 index 0000000000000..3f9d6a26d8b5e --- /dev/null +++ b/games/larn/larn-fixups.patch @@ -0,0 +1,67 @@ +diff -u -r larn-linux-36219143703cced4961fdc2a435106c0aa1e0a55.old/larn.sh larn-linux-36219143703cced4961fdc2a435106c0aa1e0a55.new/larn.sh +--- larn-linux-36219143703cced4961fdc2a435106c0aa1e0a55.old/larn.sh 2014-06-09 18:11:59.000000000 +0100 ++++ larn-linux-36219143703cced4961fdc2a435106c0aa1e0a55.new/larn.sh 2017-05-04 11:28:35.200638538 +0100 +@@ -1,5 +1,5 @@ + #!/bin/bash +-LARNDIR="/usr/local/share/games/larn/lib/file/" ++LARNDIR="/usr/share/games/larn/lib/file/" + SAVEDIR="$HOME/.larn/save/" + SCOREDIR="$HOME/.larn/score/" + TMPDIR="/tmp/larn" +diff -u -r larn-linux-36219143703cced4961fdc2a435106c0aa1e0a55.old/src/makefile larn-linux-36219143703cced4961fdc2a435106c0aa1e0a55.new/src/makefile +--- larn-linux-36219143703cced4961fdc2a435106c0aa1e0a55.old/src/makefile 2014-06-09 18:11:59.000000000 +0100 ++++ larn-linux-36219143703cced4961fdc2a435106c0aa1e0a55.new/src/makefile 2017-05-04 11:27:48.542897675 +0100 +@@ -58,13 +58,14 @@ + + else + +-CFLAGS=-Os -Wall -fomit-frame-pointer +-LDFLAGS=-Wl,-O1 -lncurses ++CFLAGS := -Os -Wall -fomit-frame-pointer $(CFLAGS) ++LDFLAGS := -Wl,-O1 -lncurses $(LDLAGS) + + STRIP_BINARY=yes + + endif + ++PREFIX=/usr + + OBJ=$(SRC:.c=.o) + EXE=larn +@@ -79,8 +80,7 @@ + @echo Build complete! + + ifeq ($(STRIP_BINARY),yes) +- @echo Stripping binary.. +- @strip $(EXE) ++ strip $(EXE) + endif + + .PHONY: debug +@@ -96,10 +96,11 @@ + + .PHONY : install + install: +- mkdir -p /usr/local/share/games/larn/lib/file +- cp -R ../lib/file/* /usr/local/share/games/larn/lib/file/ +- cp larn /usr/local/share/games/larn/lib/file/ +- cp ../larn.sh /usr/local/games/ ++ mkdir -p $(DESTDIR)$(PREFIX)/share/games/larn/lib/file ++ cp -R ../lib/file/* $(DESTDIR)$(PREFIX)/share/games/larn/lib/file/ ++ cp larn $(DESTDIR)$(PREFIX)/share/games/larn/lib/file/ ++ mkdir -p $(DESTDIR)$(PREFIX)/games/ ++ cp ../larn.sh $(DESTDIR)$(PREFIX)/games/ + + #.PHONY : distro + #distro: +@@ -112,8 +113,7 @@ + # @$(CP) larn.* ..\\distro\\bin + + %.o: %.c +- @echo Building $< +- @$(CC) $(CFLAGS) -o $@ -c $< ++ $(CC) $(CFLAGS) -o $@ -c $< + + $(EXE): $(OBJ) +- @$(CC) $(OBJ) $(LDFLAGS) -o $@ ++ $(CC) $(OBJ) $(LDFLAGS) -o $@ |