blob: 095e16faf548cf05ca6ad6a99dc0cf3a03b2e5cb (
plain)
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
|
# Created by: Andrey Zakhvatov
# $FreeBSD$
PORTNAME= 3dc
PORTVERSION= 0.8.1
PORTREVISION= 3
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SUNSITE}
MASTER_SITE_SUBDIR= games/strategy
DISTNAME= 3Dc-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= 3-Dimensional Chess for X Window System
LICENSE= GPLv2
LIB_DEPENDS= Xaw3d:${PORTSDIR}/x11-toolkits/Xaw3d
USE_PERL5_BUILD=yes
USE_XORG= x11 xaw xext xmu xpm xt
WRKSRC= ${WRKDIR}/3Dc/src
post-patch:
.for file in init.c main.c piece.c stack.c xif.c
@${REINPLACE_CMD} -i '' -e 's|malloc.h|stdlib.h|' \
${WRKSRC}/${file}
.endfor
do-install:
@ ${INSTALL_PROGRAM} ${WRKSRC}/3Dc ${PREFIX}/bin
.if !defined(NOPORTDOCS)
@ ${MKDIR} ${PREFIX}/share/doc/3Dc
.for file in 3Dc-rules.html ACKNOWLEDGEMENTS GPL README TODO
@ ${INSTALL_DATA} ${WRKSRC}/../${file} ${PREFIX}/share/doc/3Dc
.endfor
.endif
.include <bsd.port.mk>
|