1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-25 00:51:21 +00:00
freebsd-ports/games/hoichess/Makefile
Alex Kozlov fe7fc772a5 - Fix various distinfo errors
- Remove unused USE_* knobs
- Convert USE_TWISTED_RUN to USES
- Remove empty lines after .include <bsd.port.mk>

Approved by:	portmgr (antoine)
2014-05-31 16:37:58 +00:00

29 lines
866 B
Makefile

# $FreeBSD$
PORTNAME= hoichess
PORTVERSION= 0.12.1
CATEGORIES= games
MASTER_SITES= http://www.hoicher.de/hoichess/download/ \
ftp://ftp.stack.nl/pub/users/johans/hoichess/
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
MAINTAINER= johans@FreeBSD.org
COMMENT= Not-so-very-strong chess engine
USES= gmake perl5
USE_PERL5= build
MAKE_JOBS_UNSAFE=yes
MAKE_ENV= HAVE_GETOPT=1
post-patch:
@${RM} ${WRKSRC}/src/lib/getopt.h
@${REINPLACE_CMD} -e '1,/^LDFLAG/d' ${WRKSRC}/src/Makefile.config
@${ECHO} 'INSTALL = ${INSTALL}' >> ${WRKSRC}/src/Makefile.config
@${REINPLACE_CMD} -Ee '/INSTALL|install/s/ -D / /' \
${WRKSRC}/src/Makefile ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e '1,/^####/d' ${WRKSRC}/src/Makefile
@${REINPLACE_CMD} -e '/^prefix/s|= .*|= ${STAGEDIR}$${PREFIX}|' \
-e '/bindir/s/games/bin/; /mandir/s/share//' ${WRKSRC}/Makefile
.include <bsd.port.mk>