1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-20 20:09:11 +00:00

Import of Shisen-sho puzzle game for X11

Reviewed by:	jfitz@FreeBSD.ORG
Submitted by:	Nakai@Mlab.t.u-tokyo.ac.jp
This commit is contained in:
James FitzGibbon 1996-11-03 21:11:09 +00:00
parent cada467f15
commit 12b6234620
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=4285
6 changed files with 226 additions and 0 deletions

30
games/xshisen/Makefile Normal file
View File

@ -0,0 +1,30 @@
# New ports collection makefile for: xshisen
# Version required: 1.35
# Date created: 9 Oct 1996
# Whom: Yukihiro Nakai <Nakai@Mlab.t.u-tokyo.ac.jp>
#
# $Id$
#
DISTNAME= xshisen-1.35
CATEGORIES+= games
MASTER_SITES= ftp://ftp.iis.u-tokyo.ac.jp/pub1/X/contrib/games/
MAINTAINER= Nakai@Mlab.t.u-tokyo.ac.jp
LIB_DEPENDS= Xpm\\.4\\.:${PORTSDIR}/graphics/xpm
USE_X11= yes
GNU_CONFIGURE= yes
#CONFIGURE_ARGS=--enable-japanese=euc #Japanese char set euc, jis sjis
post-install:
@ strip ${PREFIX}/bin/xshisen
@ /bin/chmod 755 ${PREFIX}/bin/xshisen
@ /usr/sbin/chown bin.bin ${PREFIX}/bin/xshisen
.if !defined(NOMANCOMPRESS)
gzip -9nf ${PREFIX}/man/man6/xshisen.6
gzip -9nf ${PREFIX}/man/ja_JP.JIS7/man6/xshisen.6
.endif
.include <bsd.port.mk>

1
games/xshisen/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (xshisen-1.35.tar.gz) = 36c979ccb5b958b6ae1f3807a26ffabd

View File

@ -0,0 +1,51 @@
*** Makefile.in.orig Tue Jan 23 08:35:21 1996
--- Makefile.in Fri Oct 11 08:19:53 1996
***************
*** 39,52 ****
SCF = xshisen-scores
LIBS = @LIBS@
! CODECONV = ./$(exec_name) -KCONV jis
all: $(PROGS)
$(exec_name): $(OBJS)
$(CXX) $(LDFLAGS) $(OBJS) $(LIBS) -o $(exec_name)
! install: $(PROGS) $(AD) $(ADJ)
@echo "XShisen executable directory is " $(bindir)
@$(MKDIR) $(bindir)
@chmod 755 $(bindir)
--- 39,52 ----
SCF = xshisen-scores
LIBS = @LIBS@
! CODECONV = ./$(exec_name) -KCONV euc
all: $(PROGS)
$(exec_name): $(OBJS)
$(CXX) $(LDFLAGS) $(OBJS) $(LIBS) -o $(exec_name)
! install: $(PROGS) $(AD) $(ADJ) install.man
@echo "XShisen executable directory is " $(bindir)
@$(MKDIR) $(bindir)
@chmod 755 $(bindir)
***************
*** 63,73 ****
--- 63,77 ----
for file in pixmaps/*.xpm; do \
$(INSTALLD) $$file $(XSHISENLIB)/`basename $$file`; \
done
+ @$(MKDIR) $(XAD_DIR)/$(class_name)
+ @$(MKDIR) $(JXAD_DIR)/$(class_name)
$(INSTALLD) $(AD) $(XAD_DIR)/$(class_name)
$(INSTALLD) $(ADJ) $(JXAD_DIR)/$(class_name)
install.man: $(exec_name).jman $(exec_name).man
+ mkdir -p $(MANDIR)/man6
$(INSTALLD) $(exec_name).man $(MANDIR)/man6/$(exec_name).6
+ mkdir -p $(MANDIR)/$(JAPANESE)/man6
$(INSTALLD) $(exec_name).jman $(MANDIR)/$(JAPANESE)/man6/$(exec_name).6
clean:

View File

@ -0,0 +1 @@
Shisen-sho puzzle game for X11

100
games/xshisen/pkg-descr Normal file
View File

@ -0,0 +1,100 @@
xshisen - Shisen-sho puzzle game for X11
xshisen is a puzzle game for X11. Similar to the famous
"Shang-hai", your objective is to remove all the pieces on
the board.
The game will over when you remove all the pieces on the
board. The pieces can be removed only when both of the
following conditions are true.
(1) The 2 pieces have the same picture
(2) The 2 pieces can be connected with up to 3 lines which
do not go over other pieces.
It may seem difficult rule, but is easier than describing
in
words. "Auto-demo" mode must be very useful for you to
understand the rule.
OPTIONS
The following command line options are available.
standard Xt options
xshisen accepts standard toolkit options like
-display, or -iconic.
-demo Auto-demo mode. You cannot play game with this
mode, but the game will proceed by computer auto-
mated algorithm. This mode is quite useful for
you to understand rules.
-score Just displays the best score dialog and exits.
-mag number
Magnify main window by number times. The standard
window will be 640x400. Number may be a decimal,
but the range is limited from 0.5 to the display
size.
-fn fontlist
Use fontlist for menubar and times.
-large Play double sized game. Game size can be changed
with menubar after you started xshisen. Each game
size has independent best time records.
-huge Play quadruple sized game. Game size can be
changed with menubar after you started xshisen.
Each game size has independent best time records.
-trial Play as "Click Trial" mode. You can measure your
mouse operation speed with this feature.
-gravity
Enable gravity effect. All the pieces above the
removed pieces will fall down.
MENU BAR AND KEYBOARD
Start (Control + D)
Starts new game. The pieces are located at random
position.
Restart (Control + R)
Restarts the current game. The time of restarted
game will not be recorded as the best score.
Pause (Control + P)
Pauses the game. The time count will be stopped,
but also the pieces picture will be hidden. You
can resume your game to do "Pause" again.
Exit Exits the Shisen-sho.
Search (F1)
Teaches the pair you can remove now. You can use
"Search" anytime, but the time will not be
recorded as the best score if you use "Search"
even once.
Back (F5)
Backs one step. The time will not be recorded if
you use "Back".
MOUSE CONTROL
The following mouse control is available. You can change
mouse button bindings with XShisen*drawing.translations
resource.
Button 1
Specifies the piece to remove. You can cencel the
selection when you click the selected piece again.
Button 3
Cancels the selected piece. You can use button 3
after "Search", which cancels the search result.

43
games/xshisen/pkg-plist Normal file
View File

@ -0,0 +1,43 @@
bin/xshisen
share/xshisen/xshisen-scores
share/xshisen/chun.xpm
share/xshisen/haku.xpm
share/xshisen/hana.xpm
share/xshisen/hatsu.xpm
share/xshisen/hishi.xpm
share/xshisen/m1.xpm
share/xshisen/m2.xpm
share/xshisen/m3.xpm
share/xshisen/m4.xpm
share/xshisen/m5.xpm
share/xshisen/m6.xpm
share/xshisen/m7.xpm
share/xshisen/m8.xpm
share/xshisen/m9.xpm
share/xshisen/nan.xpm
share/xshisen/p1.xpm
share/xshisen/p2.xpm
share/xshisen/p3.xpm
share/xshisen/p4.xpm
share/xshisen/p5.xpm
share/xshisen/p6.xpm
share/xshisen/p7.xpm
share/xshisen/p8.xpm
share/xshisen/p9.xpm
share/xshisen/pei.xpm
share/xshisen/s1.xpm
share/xshisen/s2.xpm
share/xshisen/s3.xpm
share/xshisen/s4.xpm
share/xshisen/s5.xpm
share/xshisen/s6.xpm
share/xshisen/s7.xpm
share/xshisen/s8.xpm
share/xshisen/s9.xpm
share/xshisen/sha.xpm
share/xshisen/ton.xpm
lib/X11/app-defaults/XShisen/XShisen.ad
lib/X11/ja_JP.JIS7/app-defaults/XShisen/XShisen-j.ad
man/man6/xshisen.6.gz
man/ja_JP.JIS7/man6/xshisen.6.gz
@dirrm share/xshisen