openbsd-ports/games/vitetris/patches/patch-Makefile
2009-04-01 08:30:45 +00:00

62 lines
1.8 KiB
Plaintext

$OpenBSD: patch-Makefile,v 1.2 2009/04/01 08:30:45 martin Exp $
--- Makefile.orig Sat Sep 13 11:45:37 2008
+++ Makefile Mon Mar 30 20:59:06 2009
@@ -1,11 +1,11 @@
include config.mk
-PROGNAME = tetris$(EXE)
+PROGNAME = vitetris$(EXE)
# Uncomment to change the default. (Only used in Unix-like systems.)
-#HISCORE_FILENAME = /var/games/vitetris-hiscores
+HISCORE_FILENAME = /var/games/vitetris-hiscores
-INSTALL = install -oroot -groot
+INSTALL = install -oroot -gwheel
default: build
@echo Done.
@@ -15,13 +15,13 @@ $(PROGNAME):
$(MAKE) build
build: src/src-conf.mk
- $(MAKE) -Csrc tetris
+ cd src; $(MAKE) tetris
mv -f src/tetris$(EXE) $(PROGNAME)
@echo stripping symbols to reduce program size:
- -strip --strip-all $(PROGNAME)
+ -strip $(PROGNAME)
gameserver: src/netw/gameserver.c
- $(MAKE) -Csrc/netw gameserver
+ cd src/netw; $(MAKE) gameserver
mv -f src/netw/gameserver .
src/src-conf.mk: config.mk Makefile src-conf.sh
@@ -54,12 +54,12 @@ src/src-conf.mk: config.mk Makefile src-conf.sh
./src-conf.sh obj pctimer $(PCTIMER)
install: $(PROGNAME)
- $(INSTALL) -d $(bindir) $(docdir)
- $(INSTALL) -m755 $(PROGNAME) $(bindir)
- $(INSTALL) -m644 README licence.txt $(docdir)
+ $(INSTALL) -d $(DESTDIR)$(bindir) $(DESTDIR)$(docdir)
+ $(INSTALL) -m755 $(PROGNAME) $(DESTDIR)$(bindir)
+ $(INSTALL) -m644 README licence.txt $(DESTDIR)$(docdir)
if [ -n "$(ALLEGRO)" ]; then \
- $(INSTALL) -d $(datadir); \
- $(INSTALL) -m644 pc8x16.fnt $(datadir); \
+ $(INSTALL) -d $(DESTDIR)$(datadir); \
+ $(INSTALL) -m644 pc8x16.fnt $(DESTDIR)$(datadir); \
fi
@echo Done.
@echo You may also wish to create the system-wide highscore file
@@ -84,6 +84,6 @@ uninstall:
-rmdir $(datadir)
clean:
rm -f systest systest.exe
- $(MAKE) -Csrc clean
+ cd src; $(MAKE) clean
.PHONY: default build install install-hiscores uninstall clean