View | Details | Raw Unified | Return to bug 207657 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-32 / +21 lines)
Lines 2-8 Link Here
2
# $FreeBSD: head/games/fairymax/Makefile 399915 2015-10-21 14:16:55Z mat $
2
# $FreeBSD: head/games/fairymax/Makefile 399915 2015-10-21 14:16:55Z mat $
3
3
4
PORTNAME=	fairymax
4
PORTNAME=	fairymax
5
PORTVERSION=	4.8V.9
5
PORTVERSION=	5.0b
6
CATEGORIES=	games
6
CATEGORIES=	games
7
MASTER_SITES=	http://freeheimdall.spdns.org/files/
7
MASTER_SITES=	http://freeheimdall.spdns.org/files/
8
# http://hgm.nubati.net/cgi-bin/gitweb.cgi?p=fairymax.git;a=snapshot;h=${COMMIT_HASH};sf=tgz
8
# http://hgm.nubati.net/cgi-bin/gitweb.cgi?p=fairymax.git;a=snapshot;h=${COMMIT_HASH};sf=tgz
Lines 13-58 Link Here
13
MAINTAINER=	kalten@gmx.at
13
MAINTAINER=	kalten@gmx.at
14
COMMENT=	Chess engine for shatranj, courier chess, and others
14
COMMENT=	Chess engine for shatranj, courier chess, and others
15
15
16
CONFLICTS=	fairymax-4.8[QST].*
16
CONFLICTS=	fairymax-4.*
17
17
18
COMMIT_HASH=	12bd72f
18
COMMIT_HASH=	f7a7847
19
19
20
OPTIONS_DEFINE=	OPTIMIZED_CFLAGS DOCS
20
OPTIONS_DEFINE=	DOCS
21
OPTIONS_DEFAULT=	OPTIMIZED_CFLAGS
22
21
23
PORTDOCS=	changelog copyright CVfairy.html README
22
PORTDOCS=	changelog copyright CVfairy.html README
24
23
25
PLUGINSDIR=	${PREFIX}/share/games/plugins
26
27
USES=		gmake perl5
24
USES=		gmake perl5
28
USE_PERL5=	build
25
USE_PERL5=	build
29
MAKE_ARGS+=	INI_F=${DATADIR}/fmax.ini \
26
MAKE_ARGS+=	prefix= \
30
		INI_Q=${DATADIR}/qmax.ini
27
		bindir=${PREFIX}/bin \
31
28
		mandir=${PREFIX}/man \
32
OPTIMIZED_CFLAGS_CFLAGS=	-O2
29
		datadir= \
30
		plugindir=${PREFIX}/share/games/plugins \
31
		fairydir=${DATADIR} \
32
		VERSION=${PORTVERSION}
33
33
34
post-patch:
34
post-patch:
35
	@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g'	\
35
	@${REINPLACE_CMD} -E 's|(#define VERSION ")[^"]+(".*)|\1${PORTVERSION}\2|' \
36
			-e 's|%%DATADIR%%|${DATADIR}|g'	\
36
		${WRKSRC}/fairymax.c
37
		${WRKSRC}/fairymax.pod
37
	@${REINPLACE_CMD} -E 's|^(prefix\|bindir\|mandir\|datadir\|plugindir\|fairydir) =|\1 ?=|' \
38
38
		${WRKSRC}/Makefile
39
do-install:
39
	@${REINPLACE_CMD} -E 's|^	cp (.{srcdir}/fairymax .{srcdir}/shamax .{srcdir}/maxqi .\(DESTDIR\).\(bindir\))|	${INSTALL_PROGRAM} \1|' \
40
	${INSTALL_PROGRAM} ${WRKSRC}/fairymax ${STAGEDIR}${PREFIX}/bin
40
		${WRKSRC}/Makefile
41
	${INSTALL_PROGRAM} ${WRKSRC}/shamax ${STAGEDIR}${PREFIX}/bin
41
	@${REINPLACE_CMD} -E 's|^	cp (.{srcdir}/data/)|	${INSTALL_DATA} \1|' \
42
	${INSTALL_PROGRAM} ${WRKSRC}/maxqi ${STAGEDIR}${PREFIX}/bin
42
		${WRKSRC}/Makefile
43
	@${MKDIR} ${STAGEDIR}${DATADIR}
43
	@${REINPLACE_CMD} -E 's|^	cp (.{srcdir}/fairymax.6.gz)|	${INSTALL_MAN} \1|' \
44
	${INSTALL_DATA} ${WRKSRC}/data/fmax.ini ${STAGEDIR}${DATADIR}/fmax.ini
44
		${WRKSRC}/Makefile
45
	${INSTALL_DATA} ${WRKSRC}/data/qmax.ini ${STAGEDIR}${DATADIR}/qmax.ini
46
	${INSTALL_MAN} ${WRKSRC}/fairymax.6.gz ${STAGEDIR}${MAN6PREFIX}/man/man6/
47
	${LN} -s ${MAN6PREFIX}/man/man6/${PORTNAME}.6 ${STAGEDIR}${MAN6PREFIX}/man/man6/shamax.6
48
	${LN} -s ${MAN6PREFIX}/man/man6/${PORTNAME}.6 ${STAGEDIR}${MAN6PREFIX}/man/man6/maxqi.6
49
	@${MKDIR} ${STAGEDIR}${PLUGINSDIR}
50
	@${MKDIR} ${STAGEDIR}${PLUGINSDIR}/logos
51
	@${MKDIR} ${STAGEDIR}${PLUGINSDIR}/xboard
52
	${INSTALL_DATA} ${WRKSRC}/data/logo.png ${STAGEDIR}${PLUGINSDIR}/logos/fairymax.png
53
	${LN} -s ${PLUGINSDIR}/logos/fairymax.png ${STAGEDIR}${PLUGINSDIR}/logos/shamax.png
54
	${LN} -s ${PLUGINSDIR}/logos/fairymax.png ${STAGEDIR}${PLUGINSDIR}/logos/maxqi.png
55
	${INSTALL_DATA} ${WRKSRC}/data/*.eng ${STAGEDIR}${PLUGINSDIR}/xboard/
56
45
57
post-install-DOCS-on:
46
post-install-DOCS-on:
58
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
47
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
(-)distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (fairymax-12bd72f.tar.gz) = d83444d67a9303bd1a7c7af8d5285a95e02cc9a3efd3dee6c63ec9f54a2a5768
1
SHA256 (fairymax-f7a7847.tar.gz) = 1afedf536bdf29ae249e34222f47c703b1700031c603a238be6ca5ef0ab46696
2
SIZE (fairymax-12bd72f.tar.gz) = 60492
2
SIZE (fairymax-f7a7847.tar.gz) = 67418
(-)pkg-plist (-2 / +1 lines)
Lines 2-11 Link Here
2
bin/maxqi
2
bin/maxqi
3
bin/shamax
3
bin/shamax
4
man/man6/fairymax.6.gz
4
man/man6/fairymax.6.gz
5
man/man6/maxqi.6.gz
6
man/man6/shamax.6.gz
7
%%DATADIR%%/fmax.ini
5
%%DATADIR%%/fmax.ini
8
%%DATADIR%%/qmax.ini
6
%%DATADIR%%/qmax.ini
7
%%DATADIR%%/makruk.hash
9
share/games/plugins/logos/fairymax.png
8
share/games/plugins/logos/fairymax.png
10
share/games/plugins/logos/maxqi.png
9
share/games/plugins/logos/maxqi.png
11
share/games/plugins/logos/shamax.png
10
share/games/plugins/logos/shamax.png

Return to bug 207657