diff options
author | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2001-01-30 22:02:46 +0000 |
---|---|---|
committer | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2001-01-30 22:02:46 +0000 |
commit | 77649ac69a45f204ec15070c2b521b83787489f1 (patch) | |
tree | 33d9c6e958cdfec8bb228c5a6650b2eb61905164 /games | |
parent | Update to version 1.2.0. (diff) |
add mahjong, a networked Mah Jong program, together with a computer player
Notes
Notes:
svn path=/head/; revision=37819
Diffstat (limited to 'games')
-rw-r--r-- | games/Makefile | 1 | ||||
-rw-r--r-- | games/mahjong/Makefile | 25 | ||||
-rw-r--r-- | games/mahjong/distinfo | 1 | ||||
-rw-r--r-- | games/mahjong/files/patch-Makefile | 40 | ||||
-rw-r--r-- | games/mahjong/pkg-comment | 1 | ||||
-rw-r--r-- | games/mahjong/pkg-descr | 17 | ||||
-rw-r--r-- | games/mahjong/pkg-plist | 3 |
7 files changed, 88 insertions, 0 deletions
diff --git a/games/Makefile b/games/Makefile index 0708f3250788..2f27a5b207d2 100644 --- a/games/Makefile +++ b/games/Makefile @@ -119,6 +119,7 @@ SUBDIR += madbomber SUBDIR += maelstrom SUBDIR += magiccube4d + SUBDIR += mahjong SUBDIR += mangband SUBDIR += merlin SUBDIR += mindfocus diff --git a/games/mahjong/Makefile b/games/mahjong/Makefile new file mode 100644 index 000000000000..82624879ce3c --- /dev/null +++ b/games/mahjong/Makefile @@ -0,0 +1,25 @@ +# ex:ts=8 +# New ports collection makefile for: mahjong +# Date created: Jan 31, 2001 +# Whom: Ying-Chieh Liao <ijliao@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= mahjong +PORTVERSION= 1.0.1 +CATEGORIES= games net +MASTER_SITES= http://www.dcs.ed.ac.uk/home/jcb/stevens-bradfield/MahJong/Downloads/ +DISTNAME= mj-${PORTVERSION}-src + +MAINTAINER= ijliao@FreeBSD.org + +USE_GTK= yes + +USE_GMAKE= yes + +INSTALL_TARGET= install install.man + +MAN1= xmj.1 mj-player.1 mj-server.1 + +.include <bsd.port.mk> diff --git a/games/mahjong/distinfo b/games/mahjong/distinfo new file mode 100644 index 000000000000..9d8226192ed8 --- /dev/null +++ b/games/mahjong/distinfo @@ -0,0 +1 @@ +MD5 (mj-1.0.1-src.tar.gz) = 662a6e80a349cbdeb4fd99e79d8af013 diff --git a/games/mahjong/files/patch-Makefile b/games/mahjong/files/patch-Makefile new file mode 100644 index 000000000000..8ba7755eb56d --- /dev/null +++ b/games/mahjong/files/patch-Makefile @@ -0,0 +1,40 @@ +--- Makefile.orig Mon Jan 29 17:16:27 2001 ++++ Makefile Wed Jan 31 05:53:24 2001 +@@ -32,7 +32,7 @@ + # (Don't bother with this on Windows; I don't have an install target + # for Windows.) + # The binaries go into $(DESTDIR)$(BINDIR) +-DESTDIR = /usr/local/ ++DESTDIR = ${PREFIX}/ + BINDIR = bin + # The man pages go into $(DESTDIR)$(MANDIR) + MANDIR = man/man1 +@@ -52,7 +52,7 @@ + # C debugging and optimization flags. + # This code is supposed to be reasonably safe, so we turn on all + # reasonable warnings: you shouldn't see any warnings with these. +-CDEBUGFLAGS = -g -O2 -Wall -W -Wstrict-prototypes -Wmissing-prototypes ++#CDEBUGFLAGS = -g -O2 -Wall -W -Wstrict-prototypes -Wmissing-prototypes + # The -Wconversion flag is also useful to detect (more than usual) + # abuse of enums, but it generates many superfluous warnings, so + # is not on by default. +@@ -92,8 +92,8 @@ + GUILIBS=-LC:/gtk -lgtk-1.3 -lgdk-1.3 -lglib-1.3 -lgmodule-1.3 -Wl,-subsystem,windows + else + # Not Windows. If gtk+ is properly installed, this is all that's needed. +-EXTRA_INCLUDES=`gtk-config --cflags` +-GUILIBS=`gtk-config --libs` ++EXTRA_INCLUDES=`${GTK_CONFIG} --cflags` ++GUILIBS=`${GTK_CONFIG} --libs` + endif + + # We use gcc to link as well +@@ -102,7 +102,7 @@ + # don't mess with these + ALLINCLUDES = $(INCLUDES) $(EXTRA_INCLUDES) + ALLDEFINES = $(ALLINCLUDES) $(EXTRA_DEFINES) $(DEFINES) +-CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(ALLDEFINES) ++CFLAGS += $(CDEBUGFLAGS) $(CCOPTIONS) $(ALLDEFINES) + LDOPTIONS = $(CDEBUGFLAGS) $(CCOPTIONS) $(EXTRA_LDOPTIONS) + + # various auxiliary program and settings. diff --git a/games/mahjong/pkg-comment b/games/mahjong/pkg-comment new file mode 100644 index 000000000000..35410c43aca0 --- /dev/null +++ b/games/mahjong/pkg-comment @@ -0,0 +1 @@ +A networked Mah Jong program, together with a computer player diff --git a/games/mahjong/pkg-descr b/games/mahjong/pkg-descr new file mode 100644 index 000000000000..a0a32e23769e --- /dev/null +++ b/games/mahjong/pkg-descr @@ -0,0 +1,17 @@ +This is a set of three programs which provide a networked Mah Jong +program, together with a computer player. Thus the game can be played +by four humans, by a human and three computer players, or any other +combination. There is a server program, which handles the game - only +one game, since I'm not trying to compete with Yahoo! and friends -, +an X client to allow humans to play naturally, and a computer player. +The version of Mah Jong is that generally called Chinese Classical. +Of course, there are many variants within this; I intend to +accommodate most of the more interesting variants via options, but +this is future work. In the longer term, I might also be interested +in adding Hong Kong and Japanese versions. I'm not interested in +adding American versions, though somebody else might be. + +WWW: http://www.stevens-bradfield.com/MahJong/ + +-- Ying-Chieh Liao + ijliao@FreeBSD.org diff --git a/games/mahjong/pkg-plist b/games/mahjong/pkg-plist new file mode 100644 index 000000000000..556f27cbd296 --- /dev/null +++ b/games/mahjong/pkg-plist @@ -0,0 +1,3 @@ +bin/mj-server +bin/mj-player +bin/xmj |