summaryrefslogtreecommitdiff
path: root/games/xtrojka/files
diff options
context:
space:
mode:
authorWill Andrews <will@FreeBSD.org>2000-05-29 05:49:38 +0000
committerWill Andrews <will@FreeBSD.org>2000-05-29 05:49:38 +0000
commitb671ad5dfe1aa9fcdbff3000530079d5acb03061 (patch)
tree1ec8f7ee92b2d059f19a30cd78a621ec2913fa93 /games/xtrojka/files
parentRemove share/locale directories. (diff)
Add xtrojka, a skill game similar to T*tris.
PR: 17547 Submitted by: Edwin Mons <e@ik.nu>
Notes
Notes: svn path=/head/; revision=28908
Diffstat (limited to 'games/xtrojka/files')
-rw-r--r--games/xtrojka/files/patch-aa81
1 files changed, 81 insertions, 0 deletions
diff --git a/games/xtrojka/files/patch-aa b/games/xtrojka/files/patch-aa
new file mode 100644
index 000000000000..59a5b83c2c3a
--- /dev/null
+++ b/games/xtrojka/files/patch-aa
@@ -0,0 +1,81 @@
+--- Makefile Sat Oct 21 17:38:22 1995
++++ Makefile.new Mon May 29 01:35:31 2000
+@@ -8,7 +8,7 @@
+
+ # your favorite C-compiler
+ #
+-CC=gcc
++CC?=gcc
+ #CC=cc
+
+
+@@ -22,13 +22,13 @@
+ # Touch 'hiscore.c' and 'score_status_mgr.c' when you change
+ # these variables!
+ #
+-HSFILE=/usr/local/games/lib/xtrojka.scores
++HSFILE=${PREFIX}/share/xtrojka/xtrojka.scores
+ #HSFILE=/tmp/xtrojka.scores
+ CFLAGS= -DSCOREFILE='"$(HSFILE)"'
+
+ # add library search path
+ #
+-CFLAGS+=-L/usr/X11/lib
++CFLAGS+=-L${X11BASE}/lib
+
+ # on some systems you might add this line, because gcc starts wining
+ # about 'sizeof(Display)', since Display might be an empty struct;
+@@ -42,24 +42,28 @@
+
+ # location of xtrojka game
+ #
+-TARGET_DIR=/usr/games
++TARGET_DIR=${PREFIX}/bin
+
+
+ # location of the manualpage
+ #
+-MANDIR=/usr/local/man/man6
++MANDIR=${PREFIX}/man/man6
+
+
+ # please comment out for the system you use
+ #
+ # sunos 4.1.3
+-XDIR=/usr/openwin/include
+-LIBS=-lm
++#XDIR=/usr/openwin/include
++#LIBS=-lm
+
+ # solaris
+ #XDIR=/usr/openwin/include
+ #LIBS=-lnsl
+
++# FreeBSD
++XDIR=${X11BASE}/include
++LIBS=-lm
++
+ #
+ #
+ # main
+@@ -101,11 +105,15 @@
+ #
+ #
+ install:
+- @echo $(HSFILE)|sed -e 's/\//\\\//g'>/tmp/hsn; \
+- sed -e "s/__SCOREDIR__/`cat /tmp/hsn`/g" manpage > xtrojka.6; \
+- cp xtrojka.6 $(MANDIR); chmod go+r xtrojka.6; \
+- cp xtrojka $(TARGET_DIR);chmod go+rx xtrojka; \
+- touch $(HSFILE); chmod go+rwx $(HSFILE);
++ echo $(HSFILE)|sed -e 's/\//\\\//g'>/tmp/hsn
++ sed -e "s/__SCOREDIR__/`cat /tmp/hsn`/g" manpage > xtrojka.6
++ gzip -c xtrojka.6 >$(MANDIR)/xtrojka.6.gz
++ cp xtrojka $(TARGET_DIR)
++ chmod 2755 $(TARGET_DIR)/xtrojka
++ chgrp games $(TARGET_DIR)/xtrojka
++ touch $(HSFILE)
++ chmod 664 $(HSFILE)
++ chgrp games $(HSFILE)
+
+ clean:
+ rm -rf *.o core xtrojka xtrojka.6