diff options
author | tron <tron> | 1998-04-15 21:40:49 +0000 |
---|---|---|
committer | tron <tron> | 1998-04-15 21:40:49 +0000 |
commit | 438ab57a231371257455bc9638a4c53636aceaf1 (patch) | |
tree | 566f1c377e1114149fa9d35e4547dacd6dbbe134 /games/xmahjongg | |
parent | 1d42fd615dbd6d3bc470897a4e6ef321b0d2334a (diff) | |
download | pkgsrc-438ab57a231371257455bc9638a4c53636aceaf1.tar.gz |
Initial import of FreeBSD's "xmahjongg" port.
Diffstat (limited to 'games/xmahjongg')
-rw-r--r-- | games/xmahjongg/Makefile | 26 | ||||
-rw-r--r-- | games/xmahjongg/files/md5 | 1 | ||||
-rw-r--r-- | games/xmahjongg/patches/patch-aa | 31 | ||||
-rw-r--r-- | games/xmahjongg/patches/patch-ab | 46 | ||||
-rw-r--r-- | games/xmahjongg/pkg/COMMENT | 1 | ||||
-rw-r--r-- | games/xmahjongg/pkg/DESCR | 13 | ||||
-rw-r--r-- | games/xmahjongg/pkg/PLIST | 6 |
7 files changed, 124 insertions, 0 deletions
diff --git a/games/xmahjongg/Makefile b/games/xmahjongg/Makefile new file mode 100644 index 00000000000..a71374c2c15 --- /dev/null +++ b/games/xmahjongg/Makefile @@ -0,0 +1,26 @@ +# New ports collection makefile for: xmahjongg +# Version required: +# Date created: 16 Aug 1996 +# Whom: joerg@freebsd.org +# +# $FreeBSD Id: Makefile,v 1.3 1996/12/08 01:11:27 max Exp +# + +DISTNAME= xmahjongg +PKGNAME= xmahjongg-1.0 +CATEGORIES= games +# Most Usenet archive sites don't store it as a .tar.gz, but Slackware +# and it's mirrors do. +MASTER_SITES= ftp://wcarchive.cdrom.com/pub/linux/slackware/source/xap/xgames/ + +MAINTAINER= joerg@freebsd.org + +WRKSRC= ${WRKDIR}/xmahjongg +USE_IMAKE= yes + +NO_CDROM= "Restrictive copyright" + +post-extract: + @${CP} ${WRKSRC}/xmahjongg.6 ${WRKSRC}/xmahjongg.man + +.include <bsd.port.mk> diff --git a/games/xmahjongg/files/md5 b/games/xmahjongg/files/md5 new file mode 100644 index 00000000000..2d54ae81d73 --- /dev/null +++ b/games/xmahjongg/files/md5 @@ -0,0 +1 @@ +MD5 (xmahjongg.tar.gz) = 969200f399e9c5d28a7c1239a068fef0 diff --git a/games/xmahjongg/patches/patch-aa b/games/xmahjongg/patches/patch-aa new file mode 100644 index 00000000000..c3917492b04 --- /dev/null +++ b/games/xmahjongg/patches/patch-aa @@ -0,0 +1,31 @@ +--- Imakefile.orig Sat Dec 11 03:35:21 1993 ++++ Imakefile Fri Aug 16 18:41:38 1996 +@@ -5,7 +5,26 @@ + # copyright laws of the United States. + # + LOCAL_LIBRARIES = $(XLIB) +-SRCS = xmahjongg.c draw.c event.c initial.c packet.c play.c random.c sysdep.c variables.c +-OBJS = xmahjongg.o draw.o event.o initial.o packet.o play.o random.o sysdep.o variables.o ++ LAYOUT = $(LIBDIR)/xmahjongg ++ EXTRA_DEFINES = -DLAYOUT=\"$(LAYOUT)\" ++ BOARDS = bridge default wedges ++ FONT = xmahjongg.bdf ++ MANSUFFIX = 6 ++ ++SRCS = xmahjongg.c draw.c event.c initial.c packet.c \ ++ play.c random.c sysdep.c variables.c ++OBJS = xmahjongg.o draw.o event.o initial.o packet.o \ ++ play.o random.o sysdep.o variables.o ++ ++all:: $(FONT) ++$(FONT): x.bdf.1 x.bdf.2 x.bdf.3 ++ @echo "Creating xmahjongg.bdf..."; \ ++ cat x.bdf.1 x.bdf.2 x.bdf.3 > $(FONT) + + ComplexProgramTarget(xmahjongg) ++InstallTarget(install,$(FONT),$(INSTDATFLAGS),$(FONTDIR)/misc) ++MakeDirectories(install,$(LAYOUT)) ++InstallMultipleDestFlags(install,$(BOARDS),$(LAYOUT),$(INSTDATFLAGS)) ++ ++install:: ++ RunProgram(MKFONTDIR,$(FONTDIR)/misc) diff --git a/games/xmahjongg/patches/patch-ab b/games/xmahjongg/patches/patch-ab new file mode 100644 index 00000000000..a3d38fb8567 --- /dev/null +++ b/games/xmahjongg/patches/patch-ab @@ -0,0 +1,46 @@ +--- variables.c.orig Sat Dec 11 03:35:04 1993 ++++ variables.c Fri Aug 16 17:38:24 1996 +@@ -7,17 +7,18 @@ + ****************************************************************************** + */ + +-#ifdef GLOBAL +-#undef GLOBAL +-#endif +-#define GLOBAL +- + #include <pwd.h> + #include <stdio.h> + #include <string.h> + #include <X11/Xlib.h> + #include <X11/Xutil.h> + #include "xmahjongg.h" ++ ++#ifdef GLOBAL ++#undef GLOBAL ++#endif ++#define GLOBAL ++ + #include "variables.h" + + variables() +--- xmahjongg.h.orig Sun Jun 18 03:07:25 1995 ++++ xmahjongg.h Fri Aug 16 17:47:28 1996 +@@ -14,7 +14,9 @@ + /* + * Path used for layout files + */ ++#ifndef LAYOUT /* to be passed from Imakefile */ + #define LAYOUT "/usr/X11R6/lib/xmahjongg" ++#endif + + /* + * Fundamental definitions +@@ -34,6 +36,7 @@ + #define FREE 0 + #define USED 1 + ++#define GLOBAL extern + /* + * Dimensions for boxes, tiles and options + */ diff --git a/games/xmahjongg/pkg/COMMENT b/games/xmahjongg/pkg/COMMENT new file mode 100644 index 00000000000..c91bc3346f6 --- /dev/null +++ b/games/xmahjongg/pkg/COMMENT @@ -0,0 +1 @@ +The Chinese game of Mahjongg for X11 diff --git a/games/xmahjongg/pkg/DESCR b/games/xmahjongg/pkg/DESCR new file mode 100644 index 00000000000..14ac911fd2c --- /dev/null +++ b/games/xmahjongg/pkg/DESCR @@ -0,0 +1,13 @@ +Mah jongg is an ancient chinese game usually played by four players +with tiles similar to dominos. This is an X windows version for +the solitaire game originally seen on the PC and later ported to +SunView. It also has a new tournament option. + +THEORY OF PLAY +The object of the game is to remove all the tiles from the board. +Tiles are removed in by matching two identical tiles which have +either an open left edge or open right edge. The only exception +to this rule is that any open "flower" tile (bamboo, orchid, plum, +or chrysanthemum) matches any other open "flower" tile and any open +"season" tile (spring, summer, autumn, or winter) matches any other +open "season" tile. diff --git a/games/xmahjongg/pkg/PLIST b/games/xmahjongg/pkg/PLIST new file mode 100644 index 00000000000..5228884a862 --- /dev/null +++ b/games/xmahjongg/pkg/PLIST @@ -0,0 +1,6 @@ +bin/xmahjongg +man/man6/xmahjongg.6.gz +lib/X11/xmahjongg +@dirrm lib/X11/xmahjongg +lib/X11/fonts/misc/xmahjongg.bdf +@exec /usr/X11R6/bin/mkfontdir %B |