1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/games/xboard/Makefile
Johan van Selst a40070a0a5 - Use BROKEN_sparc64 and avoid <bsd.port.pre.mk>
PR:		ports/185654
Submitted by:	jgh
2014-01-11 08:49:31 +00:00

65 lines
1.9 KiB
Makefile

# Created by: xaa@stack.nl
# $FreeBSD$
PORTNAME= xboard
PORTVERSION= 4.7.3
CATEGORIES= games
MASTER_SITES= GNU
MAINTAINER= johans@FreeBSD.org
COMMENT= X frontend for Crafty, GNUChess, Chess Servers, or e-mail chess
LIB_DEPENDS= libcairo.so:${PORTSDIR}/graphics/cairo
OPTIONS_DEFINE= NLS CRAFTY FAIRYMAX GNUCHESS KNIGHTCAP PHALANX
OPTIONS_DEFAULT=
OPTIONS_SUB= yes
CRAFTY_DESC= Install crafty engine
FAIRYMAX_DESC= Install fairymax engine
GNUCHESS_DESC= Install GnuChess engine
KNIGHTCAP_DESC= Install KnightCap engine
PHALANX_DESC= Install phalanx engine
CRAFTY_RUN_DEPENDS+= crafty:${PORTSDIR}/games/crafty
FAIRYMAX_RUN_DEPENDS+= fairymax:${PORTSDIR}/games/fairymax
GNUCHESS_RUN_DEPENDS+= gnuchess:${PORTSDIR}/games/gnuchess
KNIGHTCAP_RUN_DEPENDS+= KnightCap:${PORTSDIR}/games/KnightCap
PHALANX_RUN_DEPENDS+= phalanx:${PORTSDIR}/games/phalanx
NLS_USES= gettext
NLS_CONFIGURE_ENABLE= nls
USES= desktop-file-utils perl5 pkgconfig shared-mime-info
USE_XORG= xt xpm xaw
USE_GNOME= librsvg2
GNU_CONFIGURE= yes
CONFIGURE_ARGS+=MKDIR_P="${MKDIR}" PERLPATH=${LOCALBASE}/bin
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
INFO= xboard
USE_PERL5= build
INSTALLS_ICONS= yes
DATADIR= ${PREFIX}/share/games/${PORTNAME}
PORTDOCS= AUTHORS ChangeLog NEWS README SHORTLOG TODO
BROKEN_sparc64= Does not install on sparc64
post-patch:
@${REINPLACE_CMD} -e 's/fairymax/gnuchessx/' ${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
.include <bsd.port.options.mk>
post-install:
@${INSTALL_SCRIPT} ${WRKSRC}/cmail ${STAGEDIR}${PREFIX}/bin/
@${CP} -pn ${STAGEDIR}${PREFIX}/etc/xboard.conf.dist \
${STAGEDIR}${PREFIX}/etc/xboard.conf
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.mk>