View | Details | Raw Unified | Return to bug 193037
Collapse All | Expand All

(-)games/xmris/Makefile (-12 / +25 lines)
Lines 3-12 Link Here
3
3
4
PORTNAME=	xmris
4
PORTNAME=	xmris
5
PORTVERSION=	4.04
5
PORTVERSION=	4.04
6
PORTREVISION=	3
6
PORTREVISION=	4
7
CATEGORIES=	games
7
CATEGORIES=	games
8
MASTER_SITES=	${MASTER_SITE_XCONTRIB}
8
MASTER_SITES=	XCONTRIB/games
9
MASTER_SITE_SUBDIR=	games
10
DISTNAME=	${PORTNAME}.${PORTVERSION}
9
DISTNAME=	${PORTNAME}.${PORTVERSION}
11
10
12
MAINTAINER=	ports@FreeBSD.org
11
MAINTAINER=	ports@FreeBSD.org
Lines 14-30 Link Here
14
13
15
USES=		imake tar:tgz
14
USES=		imake tar:tgz
16
USE_XORG=	x11 xext xaw xmu xt sm ice
15
USE_XORG=	x11 xext xaw xmu xt sm ice
17
MAKE_FLAGS=	XAPPLOADDIR=${PREFIX}/lib/X11/app-defaults -f
16
MAKE_ARGS=	XAPPLOADDIR=${PREFIX}/lib/X11/app-defaults
18
ALL_TARGET=	xmris xmred
17
ALL_TARGET=	xmris xmred
19
MAN6=		xmred.6 xmris.6 xmsit.6
20
18
21
NO_STAGE=	yes
19
DESKTOP_ENTRIES="XMRis" "" "" "${PORTNAME}" "" ""
22
post-configure:
23
	cd ${WRKSRC} && ${REINPLACE_CMD} -e 's/MANSUFFIX = 1/MANSUFFIX = 6/' \
24
	  -e 's/OWNER = -o games/OWNER = -g games/' \
25
	  -e 's/^INSTMRISFLAGS.*/INSTMRISFLAGS = \$(OWNER) -m 2555/' Makefile
26
20
27
post-install:
21
post-build:
28
	@${CHMOD} g+w ${LOCALBASE}/lib/X11/xmris
22
	@${LN} -sf Xmris-ad.src ${WRKSRC}/Xmris
23
24
do-install:
25
.for i in xmred xmris
26
	(cd ${WRKSRC} && ${INSTALL_PROGRAM} ${i} \
27
		${STAGEDIR}${PREFIX}/bin)
28
.endfor
29
	@${LN} -sf xmris ${STAGEDIR}${PREFIX}/bin/xmsit
30
.for i in xmred xmris
31
	(cd ${WRKSRC} && ${INSTALL_MAN} ${i}.man \
32
		${STAGEDIR}${MANPREFIX}/man/man6/${i}.6)
33
.endfor
34
	@${LN} -sf xmris.6 ${STAGEDIR}${MANPREFIX}/man/man6/xmsit.6
35
	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/X11/app-defaults
36
	(cd ${WRKSRC} && ${INSTALL_DATA} Xmris \
37
		${STAGEDIR}${PREFIX}/lib/X11/app-defaults)
38
	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/X11/app-defaults/xmris
39
	(cd ${WRKSRC} && ${INSTALL_DATA} *.gdn \
40
		${STAGEDIR}${PREFIX}/lib/X11/app-defaults/xmris)
41
	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/X11/xmris
29
42
30
.include <bsd.port.mk>
43
.include <bsd.port.mk>
(-)games/xmris/pkg-plist (-3 / +9 lines)
Lines 1-12 Link Here
1
@group games
2
@mode 2555
1
bin/xmris
3
bin/xmris
2
bin/xmsit
4
bin/xmsit
3
bin/xmred
5
bin/xmred
4
@exec mkdir -p %D/lib/X11/xmris
6
@mode
5
@exec chmod  775 %D/lib/X11/xmris
7
@group
6
@unexec rm -rf %D/lib/X11/xmris
8
man/man6/xmred.6.gz
9
man/man6/xmris.6.gz
10
man/man6/xmsit.6.gz
7
lib/X11/app-defaults/Xmris
11
lib/X11/app-defaults/Xmris
8
lib/X11/app-defaults/xmris/alphabet.gdn
12
lib/X11/app-defaults/xmris/alphabet.gdn
9
lib/X11/app-defaults/xmris/digits.gdn
13
lib/X11/app-defaults/xmris/digits.gdn
10
lib/X11/app-defaults/xmris/puzzle.gdn
14
lib/X11/app-defaults/xmris/puzzle.gdn
11
lib/X11/app-defaults/xmris/xmred.gdn
15
lib/X11/app-defaults/xmris/xmred.gdn
16
@exec install -d -g games -m 775 %D/lib/X11/xmris
17
@dirrmtry lib/X11/xmris
12
@dirrm lib/X11/app-defaults/xmris
18
@dirrm lib/X11/app-defaults/xmris
(-)games/xmris/scripts/pre-configure (-10 lines)
Lines 1-10 Link Here
1
#!/bin/sh
2
3
mv ${WRKSRC}/Imakefile ${WRKSRC}/Imakefile.orig
4
5
echo "LOCAL=$PREFIX" >${WRKSRC}/Imakefile || exit 1;
6
7
# remove extra space after \ in continuation lines
8
sed -e 's/\\ $/\\/' <${WRKSRC}/Imakefile.orig >>${WRKSRC}/Imakefile || exit 1
9
10
exit 0

Return to bug 193037