aboutsummaryrefslogtreecommitdiff
path: root/games/xshisen/Makefile
diff options
context:
space:
mode:
authorHiroki Sato <hrs@FreeBSD.org>2011-10-01 07:54:08 +0000
committerHiroki Sato <hrs@FreeBSD.org>2011-10-01 07:54:08 +0000
commit0a7dee1561da4e08d3323a746e3f4a055fd25d94 (patch)
tree3f229497ef8dd4960baea474f0a7b49c077debc9 /games/xshisen/Makefile
parenta5cde5de513fb318cd2e68581a86e29507e1c6af (diff)
downloadports-0a7dee1561da4e08d3323a746e3f4a055fd25d94.tar.gz
ports-0a7dee1561da4e08d3323a746e3f4a055fd25d94.zip
Notes
Diffstat (limited to 'games/xshisen/Makefile')
-rw-r--r--games/xshisen/Makefile55
1 files changed, 55 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>