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

Collapse All | Expand All

(-)b/games/gnushogi/Makefile (-19 / +18 lines)
Lines 1-12 Link Here
1
PORTNAME=	gnushogi
1
PORTNAME=	gnushogi
2
PORTVERSION=	1.4.2
2
PORTVERSION=	1.4.2
3
PORTREVISION=	1
3
PORTREVISION=	2
4
CATEGORIES=	games
4
CATEGORIES=	games
5
MASTER_SITES=	GNU
5
MASTER_SITES=	GNU
6
6
7
MAINTAINER=	ports@FreeBSD.org
7
MAINTAINER=	mew14930xvi@inbox.lv
8
COMMENT=	GNU version of Shogi
8
COMMENT=	GNU version of Shogi
9
WWW=		http://www.cs.caltech.edu/~mvanier/hacking/gnushogi/gnushogi.html
9
WWW=		https://www.gnu.org/software/gnushogi/
10
10
11
LICENSE=	GPLv3
11
LICENSE=	GPLv3
12
LICENSE_FILE=	${WRKSRC}/COPYING
12
LICENSE_FILE=	${WRKSRC}/COPYING
Lines 14-49 LICENSE_FILE= ${WRKSRC}/COPYING Link Here
14
GNU_CONFIGURE=		yes
14
GNU_CONFIGURE=		yes
15
MAKE_JOBS_UNSAFE=	yes
15
MAKE_JOBS_UNSAFE=	yes
16
16
17
OPTIONS_DEFINE=	DOCS INFO
17
PLIST_FILES=	bin/gnushogi share/man/man6/gnushogi.6.gz \
18
		${DATADIR}/gnushogi.bbk
19
PORTDOCS=	BOOKFILES PORTING shogi.rules tutorial1.gam tutorial2.gam
20
21
OPTIONS_DEFINE=		DOCS INFO
18
OPTIONS_DEFAULT=	INFO
22
OPTIONS_DEFAULT=	INFO
19
23
20
INFO_USES=		makeinfo
24
INFO_USES=		makeinfo
21
INFO_INFO=		gnushogi
25
INFO_INFO=		gnushogi
22
26
23
post-extract-INFO-on:
24
	-@${RM} ${WRKSRC}/doc/gnushogi.info*
25
26
post-patch:
27
post-patch:
27
	@${REINPLACE_CMD} -e '/<sys\/file.h>/d' \
28
	@${REINPLACE_CMD} -e '/<sys\/file.h>/d' ${WRKSRC}/gnushogi/*dsp.c
28
		${WRKSRC}/gnushogi/*dsp.c
29
29
30
pre-build-INFO-on:
30
pre-build-INFO-on:
31
	cd ${WRKSRC}/doc && makeinfo --no-split gnushogi
31
	cd ${WRKSRC}/doc && makeinfo --no-split gnushogi
32
32
33
do-install:
33
do-install:
34
	@${INSTALL_PROGRAM} ${WRKSRC}/gnushogi/gnushogi ${STAGEDIR}${PREFIX}/bin
34
	${INSTALL_PROGRAM} ${WRKSRC}/gnushogi/gnushogi ${STAGEDIR}${PREFIX}/bin
35
	@${INSTALL_MAN} ${WRKSRC}/doc/gnushogi.6 ${STAGEDIR}${PREFIX}/share/man/man6
35
	${INSTALL_MAN} ${WRKSRC}/doc/gnushogi.6 \
36
		${STAGEDIR}${PREFIX}/share/man/man6
36
	@${MKDIR} ${STAGEDIR}${DATADIR}
37
	@${MKDIR} ${STAGEDIR}${DATADIR}
37
	@${INSTALL_DATA} ${WRKSRC}/gnushogi/gnushogi.bbk ${STAGEDIR}${DATADIR}
38
	${INSTALL_DATA} ${WRKSRC}/gnushogi/gnushogi.bbk ${STAGEDIR}${DATADIR}
38
39
do-install-INFO-on:
40
	@${INSTALL_DATA} ${WRKSRC}/doc/gnushogi.info ${STAGEDIR}${PREFIX}/${INFO_PATH}
41
39
42
do-install-DOCS-on:
40
do-install-DOCS-on:
43
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
41
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
44
	@${INSTALL_DATA} ${WRKSRC}/doc/BOOKFILES ${STAGEDIR}${DOCSDIR}
42
	cd ${WRKSRC}/doc && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
45
	@${INSTALL_DATA} ${WRKSRC}/doc/PORTING ${STAGEDIR}${DOCSDIR}
43
46
	@${INSTALL_DATA} ${WRKSRC}/doc/*.gam ${STAGEDIR}${DOCSDIR}
44
do-install-INFO-on:
47
	@${INSTALL_DATA} ${WRKSRC}/doc/*.rules ${STAGEDIR}${DOCSDIR}
45
	${INSTALL_DATA} ${WRKSRC}/doc/gnushogi.info \
46
		${STAGEDIR}${PREFIX}/${INFO_PATH}
48
47
49
.include <bsd.port.mk>
48
.include <bsd.port.mk>
(-)b/games/gnushogi/files/patch-gnushogi_init.c (-9 lines)
Lines 1-14 Link Here
1
--- gnushogi/init.c.orig	2014-02-17 20:26:59 UTC
1
--- gnushogi/init.c.orig	2014-02-17 20:26:59 UTC
2
+++ gnushogi/init.c
2
+++ gnushogi/init.c
3
@@ -63,7 +63,7 @@ short nolist          = 1;  /* Don't list the game aft
4
  * or DISPLAY_X; the default is DISPLAY_X to make life easier for xshogi.
5
  */
6
 
7
-display_t display_type = DISPLAY_X;
8
+display_t display_type = DISPLAY_CURSES;
9
 
10
 /* .... MOVE GENERATION VARIABLES AND INITIALIZATIONS .... */
11
 
12
@@ -100,7 +100,7 @@ distance(short a, short b)
3
@@ -100,7 +100,7 @@ distance(short a, short b)
13
 short
4
 short
14
 distance(short a, short b)
5
 distance(short a, short b)
(-)b/games/gnushogi/pkg-descr (-1 / +1 lines)
Lines 8-11 program gets its opening moves from the file gnushogi.book Link Here
8
which is located in a directory specified in the makefile.
8
which is located in a directory specified in the makefile.
9
9
10
To invoke the program type:
10
To invoke the program type:
11
	gnushogi
11
	gnushogi -C
(-)a/games/gnushogi/pkg-plist (-8 lines)
Removed Link Here
1
bin/gnushogi
2
share/man/man6/gnushogi.6.gz
3
%%PORTDOCS%%%%DOCSDIR%%/BOOKFILES
4
%%PORTDOCS%%%%DOCSDIR%%/PORTING
5
%%PORTDOCS%%%%DOCSDIR%%/shogi.rules
6
%%PORTDOCS%%%%DOCSDIR%%/tutorial1.gam
7
%%PORTDOCS%%%%DOCSDIR%%/tutorial2.gam
8
%%DATADIR%%/gnushogi.bbk

Return to bug 279993