diff options
author | will <will@FreeBSD.org> | 2000-05-29 13:49:38 +0800 |
---|---|---|
committer | will <will@FreeBSD.org> | 2000-05-29 13:49:38 +0800 |
commit | a33715de72ab1a081b3df83a6d71fe3e036001ce (patch) | |
tree | 3c9ceb689c541db3e76031e4cc2009192676b894 | |
parent | 3aa255d8b871f94b902b56c0bfd6c4e199cd1dd1 (diff) | |
download | freebsd-ports-gnome-a33715de72ab1a081b3df83a6d71fe3e036001ce.tar.gz freebsd-ports-gnome-a33715de72ab1a081b3df83a6d71fe3e036001ce.tar.zst freebsd-ports-gnome-a33715de72ab1a081b3df83a6d71fe3e036001ce.zip |
Add xtrojka, a skill game similar to T*tris.
PR: 17547
Submitted by: Edwin Mons <e@ik.nu>
-rw-r--r-- | games/Makefile | 1 | ||||
-rw-r--r-- | games/xtrojka/Makefile | 27 | ||||
-rw-r--r-- | games/xtrojka/distinfo | 1 | ||||
-rw-r--r-- | games/xtrojka/files/patch-aa | 81 | ||||
-rw-r--r-- | games/xtrojka/pkg-comment | 1 | ||||
-rw-r--r-- | games/xtrojka/pkg-descr | 7 | ||||
-rw-r--r-- | games/xtrojka/pkg-plist | 3 |
7 files changed, 121 insertions, 0 deletions
diff --git a/games/Makefile b/games/Makefile index eaa3f82b67be..b23df4996219 100644 --- a/games/Makefile +++ b/games/Makefile @@ -256,6 +256,7 @@ SUBDIR += xtic SUBDIR += xtriangles SUBDIR += xtris + SUBDIR += xtrojka SUBDIR += xtron SUBDIR += xtruco SUBDIR += xvier diff --git a/games/xtrojka/Makefile b/games/xtrojka/Makefile new file mode 100644 index 000000000000..52e18d02f4be --- /dev/null +++ b/games/xtrojka/Makefile @@ -0,0 +1,27 @@ +# New ports collection makefile for: xtrojka +# Date created: 22 march 2000 +# Whom: Edwin Mons +# +# $FreeBSD$ +# + +PORTNAME= xtrojka +PORTVERSION= 1.1 +CATEGORIES= games +MASTER_SITES= ftp://ftp.funet.fi/pub/unix/games/ +DISTNAME= ${PORTNAME} + +MAINTAINER= e@ik.nu + +WRKSRC= ${WRKDIR} +MAN6= xtrojka.6 +MANCOMPRESSED= yes +USE_XLIB= yes + +pre-install: + @exec mkdirhier ${PREFIX}/share/xtrojka + +post-install: + strip ${PREFIX}/bin/xtrojka + +.include <bsd.port.mk> diff --git a/games/xtrojka/distinfo b/games/xtrojka/distinfo new file mode 100644 index 000000000000..2ee2e631eca8 --- /dev/null +++ b/games/xtrojka/distinfo @@ -0,0 +1 @@ +MD5 (xtrojka.tar.gz) = 05a5909483d97ff6431084cadff70a99 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 diff --git a/games/xtrojka/pkg-comment b/games/xtrojka/pkg-comment new file mode 100644 index 000000000000..8222b690c6f4 --- /dev/null +++ b/games/xtrojka/pkg-comment @@ -0,0 +1 @@ +Game of skill similar to T*tris diff --git a/games/xtrojka/pkg-descr b/games/xtrojka/pkg-descr new file mode 100644 index 000000000000..6b3645bbd5b6 --- /dev/null +++ b/games/xtrojka/pkg-descr @@ -0,0 +1,7 @@ +Trojka is a game of skill. The aim of the game is to control and place +falling blocks so that you get three patterns or colors in a row, +horizontally or diagonally. These patterns then disappear, the above +blocks collapse and you get points. + +- Edwin Mons +e@ik.nu diff --git a/games/xtrojka/pkg-plist b/games/xtrojka/pkg-plist new file mode 100644 index 000000000000..8675c31bec55 --- /dev/null +++ b/games/xtrojka/pkg-plist @@ -0,0 +1,3 @@ +bin/xtrojka +share/xtrojka/xtrojka.scores +@dirrm share/xtrojka |