blob: e22095cdcf6ef002f9cf82ac98bdc1e197f7d8e0 (
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
45
46
47
48
49
50
51
52
53
|
# New ports collection makefile for: xboard
# Date created: 5 Jan 1997
# Whom: xaa@stack.nl
#
# $FreeBSD$
#
PORTNAME= xboard
PORTVERSION= 4.5.1
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= xboard
MAINTAINER= johans@FreeBSD.org
COMMENT= X frontend for Crafty, GNUChess, Chess Servers, or e-mail chess
OPTIONS= XAW3D "Use Xaw3d widgets (instead of Xaw)" On
USE_XORG= xt xpm xaw
GNU_CONFIGURE= yes
CONFIGURE_ARGS+=CFLAGS="-I${LOCALBASE}/include -L${LOCALBASE}/lib" \
MKDIR_P="${MKDIR}"
MAN6= xboard.6
INFO= xboard
USE_PERL5_BUILD=yes
INSTALLS_ICONS= yes
.include <bsd.port.options.mk>
.ifdef WITH_XAW3D
CONFIGURE_ARGS+= "--with-Xaw3d"
LIB_DEPENDS+= Xaw3d.${XAWVER}:${PORTSDIR}/x11-toolkits/Xaw3d
.endif
.include <bsd.port.pre.mk>
.if ${ARCH} == "sparc64"
BROKEN= Does not install on sparc64
.endif
post-patch:
@${REINPLACE_CMD} -e 's/fairymax/gnuchessx/' \
${WRKSRC}/xboard.h ${WRKSRC}/xboard.conf.in
@${REINPLACE_CMD} -e '/^#include..malloc.h/d' \
${WRKSRC}/engineoutput.c ${WRKSRC}/uci.c
@${REINPLACE_CMD} -e 's:INSTALL.*sysconfdir):&/$$$$files.dist:' \
${WRKSRC}/Makefile.in
post-install:
@${INSTALL_SCRIPT} ${WRKSRC}/cmail ${PREFIX}/bin/
@${CP} -pn ${PREFIX}/etc/xboard.conf.dist ${PREFIX}/etc/xboard.conf
.include <bsd.port.post.mk>
|