aboutsummaryrefslogtreecommitdiffstats
path: root/games/xshisen
diff options
context:
space:
mode:
authorhrs <hrs@FreeBSD.org>2011-10-01 15:54:08 +0800
committerhrs <hrs@FreeBSD.org>2011-10-01 15:54:08 +0800
commit56acde35782a8af5e95f9a497356a5f33a9f84c1 (patch)
treede812aed9f409c012d1e8987be31adec67477edb /games/xshisen
parentf5bec264e89c02f00c10383bfad03117b017583e (diff)
downloadfreebsd-ports-gnome-56acde35782a8af5e95f9a497356a5f33a9f84c1.tar.gz
freebsd-ports-gnome-56acde35782a8af5e95f9a497356a5f33a9f84c1.tar.zst
freebsd-ports-gnome-56acde35782a8af5e95f9a497356a5f33a9f84c1.zip
Resurrect games/xshisen and update maintainership.
PR: ports/161144
Diffstat (limited to 'games/xshisen')
-rw-r--r--games/xshisen/Makefile55
-rw-r--r--games/xshisen/distinfo2
-rw-r--r--games/xshisen/files/patch-readxpm.C14
-rw-r--r--games/xshisen/pkg-descr6
-rw-r--r--games/xshisen/pkg-plist83
5 files changed, 160 insertions, 0 deletions
diff --git a/games/xshisen/Makefile b/games/xshisen/Makefile
new file mode 100644
index 000000000000..efa5105bc610
--- /dev/null
+++ b/games/xshisen/Makefile
@@ -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>
diff --git a/games/xshisen/distinfo b/games/xshisen/distinfo
new file mode 100644
index 000000000000..221fbe055c4f
--- /dev/null
+++ b/games/xshisen/distinfo
@@ -0,0 +1,2 @@
+SHA256 (xshisen-1.51.tar.gz) = b7c42e2e835303d31d04e9b768036d7964e93e79c0ffcf752f040fef5374a957
+SIZE (xshisen-1.51.tar.gz) = 85350
diff --git a/games/xshisen/files/patch-readxpm.C b/games/xshisen/files/patch-readxpm.C
new file mode 100644
index 000000000000..d1ac1540fe1b
--- /dev/null
+++ b/games/xshisen/files/patch-readxpm.C
@@ -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);
+ }
+ }
diff --git a/games/xshisen/pkg-descr b/games/xshisen/pkg-descr
new file mode 100644
index 000000000000..ade7f587dc06
--- /dev/null
+++ b/games/xshisen/pkg-descr
@@ -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.
diff --git a/games/xshisen/pkg-plist b/games/xshisen/pkg-plist
new file mode 100644
index 000000000000..df3786b4af00
--- /dev/null
+++ b/games/xshisen/pkg-plist
@@ -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