xmahjongg port
This commit is contained in:
parent
2af443e1ca
commit
6cefdde278
25
games/xmahjongg/Makefile
Normal file
25
games/xmahjongg/Makefile
Normal file
@ -0,0 +1,25 @@
|
||||
# OpenBSD makefile for: xmahjongg
|
||||
# Date created: 16 Aug 1996
|
||||
# Whom: Angelos D. Keromytis
|
||||
#
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 1998/05/20 03:22:42 angelos 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= angelos@openbsd.org
|
||||
|
||||
WRKSRC= ${WRKDIR}/xmahjongg
|
||||
USE_IMAKE= yes
|
||||
|
||||
NO_CDROM= "Restrictive copyright"
|
||||
|
||||
post-extract:
|
||||
@${CP} ${WRKSRC}/xmahjongg.6 ${WRKSRC}/xmahjongg.man
|
||||
|
||||
.include <bsd.port.mk>
|
1
games/xmahjongg/files/md5
Normal file
1
games/xmahjongg/files/md5
Normal file
@ -0,0 +1 @@
|
||||
MD5 (xmahjongg.tar.gz) = 969200f399e9c5d28a7c1239a068fef0
|
31
games/xmahjongg/patches/patch-aa
Normal file
31
games/xmahjongg/patches/patch-aa
Normal file
@ -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)
|
46
games/xmahjongg/patches/patch-ab
Normal file
46
games/xmahjongg/patches/patch-ab
Normal file
@ -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
|
||||
*/
|
1
games/xmahjongg/pkg/COMMENT
Normal file
1
games/xmahjongg/pkg/COMMENT
Normal file
@ -0,0 +1 @@
|
||||
The Chinese game of Mahjongg for X11
|
13
games/xmahjongg/pkg/DESCR
Normal file
13
games/xmahjongg/pkg/DESCR
Normal file
@ -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.
|
6
games/xmahjongg/pkg/PLIST
Normal file
6
games/xmahjongg/pkg/PLIST
Normal file
@ -0,0 +1,6 @@
|
||||
bin/xmahjongg
|
||||
man/man6/xmahjongg.6
|
||||
lib/X11/xmahjongg
|
||||
@dirrm lib/X11/xmahjongg
|
||||
lib/X11/fonts/misc/xmahjongg.bdf
|
||||
@exec /usr/X11R6/bin/mkfontdir %B
|
Loading…
Reference in New Issue
Block a user