pkgsrc/games/omega/patches/patch-aa
proff e5c33a41b0 Changes for NetBSD.
Omega is a complex rogue-style game of dungeon exploration.  Unlike
other such games, there are a number of ways to "win", depending on
various actions taken during play. The ways you can get your name on
the hiscore board include becoming the highest ranked head of a guild,
sect, college, etc., as well as gaining the most points figured from
possessions and experience. The game (via the oracle) may impose some
structure on your exploration, but you need not follow all of the
oracle's advice. There *is* a "total winner" status, by the way.

Omega, unlike lesser games is incredibly amusing to play. Laurence P.
Brothers (the primary author) is the Oscar Wilde of rouge-like games.
Many omega concepts, but not great sense of humor were later stolen
for use in ADOM.
1999-12-28 02:28:23 +00:00

51 lines
1.6 KiB
Text

$NetBSD: patch-aa,v 1.2 1999/12/28 02:28:23 proff Exp $
--- Makefile.orig Fri Jan 1 20:00:06 1999
+++ Makefile Mon Jul 5 19:51:50 1999
@@ -1,14 +1,14 @@
# These two definitions are used if you 'make install'
# the value of LIBDIR should be the same as OMEGALIB in defs.h
-BINDIR = /home/sdossey/omega/
-LIBDIR = /home/sdossey/omega/lib/
+BINDIR = ${PREFIX}/bin
+LIBDIR = ${PREFIX}/share/omega
# One of these should be uncommented, as appropriate, unless your compiler
# does it for you. You can test this by simply trying to 'make' omega -
# it will fail if none of them are defined. If you do uncomment
# one, make sure you comment out the other definition of CFLAGS lower down
-CFLAGS = -DBSD -ggdb
+CFLAGS+= -DBSD -DOMEGALIB=\"${LIBDIR}/\"
#CFLAGS = -DSYSV -O
# I also had to define -cckr (K&R style C) for system V
#CFLAGS = -DMSDOS -O
@@ -17,14 +17,14 @@
# CPP should contain the command to run the C preprocessor.
#CPP = cc -E
#CPP = /lib/cpp
-CPP = gcc -E
+CPP = ${CC} -E ${CFLAGS}
# If you have gcc and don't intend to hack around with the game,
# I recommend setting CC to gcc and using -O (as the CFLAGS).
#CFLAGS = -O
#LDFLAGS = -s
-CC = gcc
+#CC = gcc
# comment out one of the following two, after establishing whether your
# machine uses termcap (most BSD machines) or terminfo (System-V)
@@ -48,7 +48,10 @@
omega: $(OBJ)
$(CC) $(LDFLAGS) $(OBJ) $(LIBS) -o omega
-install: omega $(BINDIR) $(LIBDIR)
+install: omega
+ mkdir -p $(BINDIR)
+ mkdir -p $(LIBDIR)
+ chown games:games omega
cp omega $(BINDIR)
chmod 4711 $(BINDIR)/omega
- cp lib/* $(LIBDIR)