aboutsummaryrefslogtreecommitdiff
path: root/games/xgospel/Makefile
blob: afd6440e7a9abb9d4754f551c29541ae53a714ea (plain) (blame)
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
# Created by: Shao Zhang <shaoz@asia.com>
# $FreeBSD$

PORTNAME=	xgospel
PORTVERSION=	1.12d
PORTREVISION=	3
CATEGORIES=	games
MASTER_SITES=	http://gailly.net/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	X11 Go (weiqi, baduk) client for the Internet Go Server

LICENSE=	GPLv2+ NONE # some files have unclear license
LICENSE_COMB=	multi

LIB_DEPENDS=	libXaw3d.so:x11-toolkits/Xaw3d

USE_XORG=	ice sm x11 xaw xext xmu xpm xt
GNU_CONFIGURE=	yes
MAKE_JOBS_UNSAFE=	yes

CONFIGURE_ARGS=	--with-x --with-xpm --with-xaw3d

OPTIONS_DEFINE=	DOCS

post-patch:
	@${REINPLACE_CMD} -e "s,#ifndef _POSIX_SOURCE,#if 0," \
		${WRKSRC}/connect.c ${WRKSRC}/relay.c ${WRKSRC}/relog.c \
		${WRKSRC}/rport.c

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/relay ${STAGEDIR}${PREFIX}/bin
	${INSTALL_PROGRAM} ${WRKSRC}/rport ${STAGEDIR}${PREFIX}/bin
	${INSTALL_PROGRAM} ${WRKSRC}/xgospel ${STAGEDIR}${PREFIX}/bin
	@${MKDIR} ${STAGEDIR}${DATADIR}
	${INSTALL_DATA} ${WRKSRC}/board.xpm ${STAGEDIR}${DATADIR}
	${INSTALL_DATA} ${WRKSRC}/pagoda.xpm ${STAGEDIR}${DATADIR}

do-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/FAQ ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>