1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-22 00:35:15 +00:00

Resurrect games/xshisen and update maintainership.

PR:	ports/161144
This commit is contained in:
Hiroki Sato 2011-10-01 07:54:08 +00:00
parent a5cde5de51
commit 0a7dee1561
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=282723
5 changed files with 160 additions and 0 deletions

55
games/xshisen/Makefile Normal file
View File

@ -0,0 +1,55 @@
# New ports collection makefile for: xshisen
# Date created: 9 Oct 1996
# Whom: Yukihiro Nakai <Nakai@Mlab.t.u-tokyo.ac.jp>
#
# $FreeBSD$
#
PORTNAME= xshisen
PORTVERSION= 1.51
PORTREVISION= 3
CATEGORIES= games
MASTER_SITES= LOCAL
MASTER_SITE_SUBDIR= hrs
MAINTAINER= turutani@scphys.kyoto-u.ac.jp
COMMENT= Shisen-sho puzzle game for X11
USE_XORG= xpm
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --sharedstatedir="${DATADIR}"
INSTALL_TARGET= install-prog
MANLANG= "" ja
MAN6= xshisen.6
.if !defined(WITHOUT_MOTIF)
USE_MOTIF= yes
CONFIGURE_ARGS+= --with-motif
.endif
post-patch:
@${REINPLACE_CMD} -e \
's|XSHISEN_VERSION|${PORTVERSION}|g' ${WRKSRC}/lang/XShisen.ad*
post-install:
@${CHOWN} root:games ${PREFIX}/bin/xshisen
@${CHMOD} 2555 ${PREFIX}/bin/xshisen
@${CHOWN} root:games ${DATADIR}/xshisen.scores
@${CHMOD} 0660 ${DATADIR}/xshisen.scores
${INSTALL_MAN} ${WRKSRC}/man/xshisen.6 \
${MAN6PREFIX}/man/man6/xshisen.6
${INSTALL_MAN} ${WRKSRC}/man/xshisen.6.ja_JP.eucJP \
${MAN6PREFIX}/man/ja/man6/xshisen.6
@${MKDIR} ${PREFIX}/lib/X11/app-defaults
${INSTALL_DATA} ${WRKSRC}/lang/XShisen.ad \
${PREFIX}/lib/X11/app-defaults/XShisen
@${MKDIR} ${PREFIX}/lib/X11/ja_JP.eucJP/app-defaults
${INSTALL_DATA} ${WRKSRC}/lang/XShisen.ad.ja_JP.eucJP \
${PREFIX}/lib/X11/ja_JP.eucJP/app-defaults/XShisen
-${TEST} -d ${PREFIX}/lib/X11/ja_JP.EUC/ -a \
-d ${PREFIX}/lib/X11/ja_JP.EUC/app-defaults && \
${LN} -s ${PREFIX}/lib/X11/ja_JP.eucJP/app-defaults/XShisen \
${PREFIX}/lib/X11/ja_JP.EUC/app-defaults || ${TRUE}
.include <bsd.port.mk>

2
games/xshisen/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (xshisen-1.51.tar.gz) = b7c42e2e835303d31d04e9b768036d7964e93e79c0ffcf752f040fef5374a957
SIZE (xshisen-1.51.tar.gz) = 85350

View File

@ -0,0 +1,14 @@
$FreeBSD$
--- readxpm.C.orig Sun Jul 7 01:34:47 2002
+++ readxpm.C Thu Sep 15 13:56:38 2005
@@ -12,7 +12,7 @@
char buffer[1024];
for(int i=0; i<PKIND; i++) {
- sprintf(buffer, "%s/%s/%s.xpm", directory, subdir, files[i]);
+ snprintf(buffer, sizeof(buffer), "%s/%s/%s.xpm", directory, subdir, files[i]);
Mp[i].ReadFile(w, buffer, i, globRes.colorCloseness);
}
}

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

@ -0,0 +1,6 @@
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.

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

@ -0,0 +1,83 @@
bin/xshisen
lib/X11/app-defaults/XShisen
lib/X11/ja_JP.eucJP/app-defaults/XShisen
%%DATADIR%%/s1/chun.xpm
%%DATADIR%%/s1/haku.xpm
%%DATADIR%%/s1/hana.xpm
%%DATADIR%%/s1/hatsu.xpm
%%DATADIR%%/s1/hishi.xpm
%%DATADIR%%/s1/m1.xpm
%%DATADIR%%/s1/m2.xpm
%%DATADIR%%/s1/m3.xpm
%%DATADIR%%/s1/m4.xpm
%%DATADIR%%/s1/m5.xpm
%%DATADIR%%/s1/m6.xpm
%%DATADIR%%/s1/m7.xpm
%%DATADIR%%/s1/m8.xpm
%%DATADIR%%/s1/m9.xpm
%%DATADIR%%/s1/nan.xpm
%%DATADIR%%/s1/p1.xpm
%%DATADIR%%/s1/p2.xpm
%%DATADIR%%/s1/p3.xpm
%%DATADIR%%/s1/p4.xpm
%%DATADIR%%/s1/p5.xpm
%%DATADIR%%/s1/p6.xpm
%%DATADIR%%/s1/p7.xpm
%%DATADIR%%/s1/p8.xpm
%%DATADIR%%/s1/p9.xpm
%%DATADIR%%/s1/pei.xpm
%%DATADIR%%/s1/s1.xpm
%%DATADIR%%/s1/s2.xpm
%%DATADIR%%/s1/s3.xpm
%%DATADIR%%/s1/s4.xpm
%%DATADIR%%/s1/s5.xpm
%%DATADIR%%/s1/s6.xpm
%%DATADIR%%/s1/s7.xpm
%%DATADIR%%/s1/s8.xpm
%%DATADIR%%/s1/s9.xpm
%%DATADIR%%/s1/sha.xpm
%%DATADIR%%/s1/ton.xpm
%%DATADIR%%/s2/chun.xpm
%%DATADIR%%/s2/haku.xpm
%%DATADIR%%/s2/hana.xpm
%%DATADIR%%/s2/hatsu.xpm
%%DATADIR%%/s2/hishi.xpm
%%DATADIR%%/s2/m1.xpm
%%DATADIR%%/s2/m2.xpm
%%DATADIR%%/s2/m3.xpm
%%DATADIR%%/s2/m4.xpm
%%DATADIR%%/s2/m5.xpm
%%DATADIR%%/s2/m6.xpm
%%DATADIR%%/s2/m7.xpm
%%DATADIR%%/s2/m8.xpm
%%DATADIR%%/s2/m9.xpm
%%DATADIR%%/s2/nan.xpm
%%DATADIR%%/s2/p1.xpm
%%DATADIR%%/s2/p2.xpm
%%DATADIR%%/s2/p3.xpm
%%DATADIR%%/s2/p4.xpm
%%DATADIR%%/s2/p5.xpm
%%DATADIR%%/s2/p6.xpm
%%DATADIR%%/s2/p7.xpm
%%DATADIR%%/s2/p8.xpm
%%DATADIR%%/s2/p9.xpm
%%DATADIR%%/s2/pei.xpm
%%DATADIR%%/s2/s1.xpm
%%DATADIR%%/s2/s2.xpm
%%DATADIR%%/s2/s3.xpm
%%DATADIR%%/s2/s4.xpm
%%DATADIR%%/s2/s5.xpm
%%DATADIR%%/s2/s6.xpm
%%DATADIR%%/s2/s7.xpm
%%DATADIR%%/s2/s8.xpm
%%DATADIR%%/s2/s9.xpm
%%DATADIR%%/s2/sha.xpm
%%DATADIR%%/s2/ton.xpm
%%DATADIR%%/xshisen.scores
@dirrm %%DATADIR%%/s2
@dirrm %%DATADIR%%/s1
@dirrm %%DATADIR%%
@dirrmtry lib/X11/ja_JP.eucJP/app-defaults
@dirrmtry lib/X11/ja_JP.eucJP
@exec [ -d %D/lib/X11/ja_JP.EUC/ -a -d %D/lib/X11/ja_JP.EUC/app-defaults ] && ln -s %D/lib/X11/ja_JP.eucJP/app-defaults/XShisen %D/lib/X11/ja_JP.EUC/app-defaults || true
@unexec rm %D/lib/X11/ja_JP.EUC/app-defaults/XShisen 2>/dev/null || true