mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
cb037d3c98
- Bump PORTREVISION for shlib change Changes: https://cnswww.cns.cwru.edu/php/chet/readline/CHANGES https://lists.gnu.org/archive/html/bug-bash/2016-09/msg00107.html https://lists.gnu.org/archive/html/bug-readline/2017-01/msg00002.html Differential Revision: https://reviews.freebsd.org/D11172 PR: 219947 Exp-run by: antoine
34 lines
1.0 KiB
Makefile
34 lines
1.0 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= hoichess
|
|
PORTVERSION= 0.12.1
|
|
PORTREVISION= 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 readline
|
|
USE_PERL5= build
|
|
MAKE_JOBS_UNSAFE=yes
|
|
MAKE_ENV= HAVE_GETOPT=1
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
post-patch:
|
|
@${RM} ${WRKSRC}/src/lib/getopt.h
|
|
@${REINPLACE_CMD} -e '1,/^LDFLAG/d' ${WRKSRC}/src/Makefile.config
|
|
@${ECHO_CMD} 'INSTALL = ${INSTALL}' >> ${WRKSRC}/src/Makefile.config
|
|
@${ECHO_CMD} 'CXXFLAGS += $${CPPFLAGS}' >> ${WRKSRC}/src/Makefile.config
|
|
@${REINPLACE_CMD} -Ee '/INSTALL|install/s/ -D / /' \
|
|
${WRKSRC}/src/Makefile ${WRKSRC}/Makefile
|
|
@${REINPLACE_CMD} -e '1,/^####/d' ${WRKSRC}/src/Makefile
|
|
@${ECHO_CMD} 'LIBPATH = ${LDFLAGS}' >> ${WRKSRC}/src/Makefile
|
|
@${REINPLACE_CMD} -e '/^prefix/s|= .*|= ${STAGEDIR}$${PREFIX}|' \
|
|
-e '/bindir/s/games/bin/; /mandir/s/share//' ${WRKSRC}/Makefile
|
|
|
|
.include <bsd.port.mk>
|