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

Collapse All | Expand All

(-)games/mahjong/Makefile (-15 / +8 lines)
Lines 1-28 Link Here
1
# ex:ts=8
1
# Created by: Ying-Chieh Liao <ijliao@FreeBSD.org>
2
# New ports collection makefile for:   mahjong
3
# Date created:                Jan 31, 2001
4
# Whom:                        Ying-Chieh Liao <ijliao@FreeBSD.org>
5
#
6
# $FreeBSD: head/games/mahjong/Makefile 324191 2013-08-03 13:44:00Z mat $
2
# $FreeBSD: head/games/mahjong/Makefile 324191 2013-08-03 13:44:00Z mat $
7
#
8
3
9
PORTNAME=	mahjong
4
PORTNAME=	mahjong
10
PORTVERSION=	1.12.1
5
PORTVERSION=	1.13
11
PORTREVISION=	1
12
CATEGORIES=	games net
6
CATEGORIES=	games net
13
MASTER_SITES=	http://mahjong.julianbradfield.org/Source/%SUBDIR%/
7
MASTER_SITES=	http://mahjong.julianbradfield.org/Source/%SUBDIR%/
14
MASTER_SITE_SUBDIR=	. Old
8
MASTER_SITE_SUBDIR=	. Old
15
DISTNAME=	mj-${PORTVERSION}-src
9
DISTNAME=	mj-${PORTVERSION}-src
16
10
17
MAINTAINER=	ports@FreeBSD.org
11
MAINTAINER=	ports@FreeBSD.org
18
COMMENT=	A networked Mah Jong program, together with a computer player
12
COMMENT=	Networked Mah Jong program, together with a computer player
19
13
20
LICENSE=	GPLv2 # (or later)
14
LICENSE=	GPLv2 # (or later)
21
15
22
USES=		perl5
16
USES=		gmake perl5
23
USE_GNOME=	gtk20
17
USE_GNOME=	gtk20
24
USE_PERL5=	build
18
USE_PERL5=	build
25
USE_GMAKE=	yes
26
MAKE_ENV=	CCLINK="${CC}" CDEBUGFLAGS="${CFLAGS}" PERL="${PERL}" \
19
MAKE_ENV=	CCLINK="${CC}" CDEBUGFLAGS="${CFLAGS}" PERL="${PERL}" \
27
		INCLUDES="-I."
20
		INCLUDES="-I."
28
21
Lines 32-38 Link Here
32
PLIST_FILES=	bin/mj-server bin/mj-player bin/xmj
25
PLIST_FILES=	bin/mj-server bin/mj-player bin/xmj
33
26
34
post-patch:
27
post-patch:
35
	@${REINPLACE_CMD}  -e \
28
	@${REINPLACE_CMD} -e \
36
		's|^CC|#CC|g ; \
29
		's|^CC|#CC|g ; \
37
		 s|^DESTDIR|#DESTDIR|g ; \
30
		 s|^DESTDIR|#DESTDIR|g ; \
38
		 s|^CDEBUGFLAGS|#CDEBUGFLAGS|g ; \
31
		 s|^CDEBUGFLAGS|#CDEBUGFLAGS|g ; \
Lines 40-46 Link Here
40
		 s|^PERL|#PERL|g ; \
33
		 s|^PERL|#PERL|g ; \
41
		 s|^INST|#INST|g ; \
34
		 s|^INST|#INST|g ; \
42
		 s|make |$$(MAKE) |g' ${WRKSRC}/Makefile.in
35
		 s|make |$$(MAKE) |g' ${WRKSRC}/Makefile.in
43
	${REINPLACE_CMD}  -e \
36
	@${REINPLACE_CMD} -e \
44
		's|SOL_TCP|IPPROTO_TCP|' ${WRKSRC}/sysdep.c
37
		's|SOL_TCP|IPPROTO_TCP|' ${WRKSRC}/sysdep.c
45
38
46
do-configure:
39
do-configure:
Lines 48-55 Link Here
48
		Makefile.in Makefile)
41
		Makefile.in Makefile)
49
42
50
do-install:
43
do-install:
51
.for file in mj-server mj-player xmj
44
.for i in mj-server mj-player xmj
52
	${INSTALL_PROGRAM} ${WRKSRC}/${file} ${PREFIX}/bin/${file}
45
	${INSTALL_PROGRAM} ${WRKSRC}/${i} ${PREFIX}/bin/${i}
53
.endfor
46
.endfor
54
	${INSTALL_MAN} ${WRKSRC}/xmj.man ${MANPREFIX}/man/man1/xmj.1
47
	${INSTALL_MAN} ${WRKSRC}/xmj.man ${MANPREFIX}/man/man1/xmj.1
55
48
(-)games/mahjong/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (mj-1.12.1-src.tar.gz) = 6066a5e8fb629063313f1383db9c9d775c0f0ba390803f07ac6393cd03f2d0ce
1
SHA256 (mj-1.13-src.tar.gz) = 024a7f5a081a9151ad31e7178b3eeb9a8befab717aad2970775c400a16f76f33
2
SIZE (mj-1.12.1-src.tar.gz) = 402341
2
SIZE (mj-1.13-src.tar.gz) = 411628
(-)games/mahjong/pkg-descr (-5 / +5 lines)
Lines 1-7 Link Here
1
This is a set of three programs which provide a networked Mah Jong program,
1
This is a set of three programs which provide a networked Mah Jong
2
together with a computer player. Thus the game can be played by four humans, by
2
program, together with a computer player. Thus the game can be played by
3
a human and three computer players, or any other combination. There is a server
3
four humans, by a human and three computer players, or any other
4
program, which handles the game. An X client to allow humans to play naturally,
4
combination. There is a server program, which handles the game. An X
5
and a computer player.
5
client to allow humans to play naturally, and a computer player.
6
6
7
WWW: http://mahjong.julianbradfield.org/
7
WWW: http://mahjong.julianbradfield.org/

Return to bug 181886