freebsd-ports/games/trojka/files/patch-aa
Kevin Lo 802185c16a Initial import of trojka-1.0
trojka is a game of skill

PR: 19911
Submitted by: Edwin Mons <edwinme@ik.nu>
Reviewed by: sobomax
2000-07-18 09:45:05 +00:00

37 lines
867 B
Plaintext

--- Makefile.orig Sat Oct 21 05:17:43 1995
+++ Makefile Tue Jul 18 11:39:08 2000
@@ -6,14 +6,25 @@
#
-
+SCOREDIR=$(PREFIX)/share/trojka
+SCOREFILE=$(SCOREDIR)/trojka.scores
+CFLAGS+= -DSCOREFILE=\"$(SCOREFILE)\"
OBJS= trojka.o screen.o scan.o hiscore.o system.o
+all: freebsd trojka.6.out
+
make:
@echo please specify: hpux, xenix68, linux or sunos
install:
- cp trojka /usr/games
+ install -c -d -m 0755 $(SCOREDIR)
+ install -c -m 2755 -g games -s trojka $(PREFIX)/bin
+ install -c -m 0644 COPYRIGHT README $(SCOREDIR)
+ install -c -m 0664 -g games /dev/null $(SCOREFILE)
+ install -c -m 0444 trojka.6.out $(PREFIX)/man/man6/trojka.6
+
+trojka.6.out: trojka.6
+ sed "s|%%PREFIX%%|$(PREFIX)|" trojka.6 > trojka.6.out
clean:
rm -f $(PROGS) *.o core a.out trojka.scores
@@ -53,3 +64,5 @@
linux:
make trojka "CFLAGS=-DLINUX"
+
+freebsd: trojka