blob: c656b0c9774054a238d12d6a41a7a54f2a5b6ac9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Created by: Yukihiro Nakai <Nakai@Mlab.t.u-tokyo.ac.jp>
# $FreeBSD$
PORTNAME= xshisen
PORTVERSION= 1.51
PORTREVISION= 4
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)
USES= motif
CONFIGURE_ARGS+= --with-motif
.endif
NO_STAGE= yes
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>
|