openbsd-ports/games/tornado/patches/patch-Makefile
jolan 2a87095093 import of tornado-1.3:
Tornado is a clone of Ouranos (Weather War).  The goal of the game is to
destroy the opponent's house with certain weather phenomenons: rain,
snow, hail, lightning, and tornadoes.  The game can be played together
(two players), against the computer (or two computer players against
each other) or over a TCP connection.

WWW: http://home.kcore.de/~kiza/linux/tornado/
2003-11-27 06:07:37 +00:00

41 lines
1.4 KiB
Plaintext

$OpenBSD: patch-Makefile,v 1.1.1.1 2003/11/27 06:07:37 jolan Exp $
--- Makefile.orig 2003-11-20 07:26:22.000000000 -0600
+++ Makefile 2003-11-26 21:00:05.000000000 -0600
@@ -1,10 +1,10 @@
-CC = gcc
-MAKE = make
-LDFLAGS = -lncurses
+#CC = gcc
+#MAKE = make
+LDFLAGS = -L${LOCALBASE}/lib -lncurses -lintl -liconv
OBJFILES = main.o draw.o erwin.o network.o scores.o
-PREFIX = /usr/local
-LOCALEPATH = /usr/local/share/locale
-CFLAGS = -Wall -O2 -DPREFIX="\"$(PREFIX)\"" -DLOCALEPATH="\"$(LOCALEPATH)\""
+#PREFIX = /usr/local
+LOCALEPATH = ${PREFIX}/share/locale
+CFLAGS+= -Wall -I${LOCALBASE}/include -DPREFIX="\"$(PREFIX)\"" -DLOCALEPATH="\"$(LOCALEPATH)\""
VERSION = `grep " VERSION" version.h | sed s/\"//g | sed s/\#define\ VERSION\ //`
LOCALES = de
MAN = doc/man
@@ -50,19 +50,6 @@ install: tornado tornado.6 install-local
$(MAKE) -C $(MAN) install-man
- if [ -f "/var/games/tornado.scores" ]; then \
- echo "Skipping install of the highscores file. File exists."; \
- cat /var/games/tornado.scores | ./convert-highscorefile > score.tmp; \
- mv -f score.tmp /var/games/tornado.scores; \
- chmod a+rw-x "/var/games/tornado.scores"; \
- else \
- if [ ! -d "/var/games" ]; then \
- mkdir /var/games; \
- fi; \
- install tornado.scores /var/games; \
- chmod a+w-x "/var/games/tornado.scores"; \
- fi
-
install-locale-data:
$(MAKE) -C po install-locale-data