freebsd-ports/games/atris/Makefile
John Marino 14c239f42a games/atris: Use gmake as specified
This port specifies gmake, but "make" was hardcoded.  This becomes apparent
when bmake is used to build the port (it fails).  The new post-patch
command allows gmake to be used as intended.

PR:		ports/181731
Submitted by:	Jan Beich
2013-12-08 19:21:23 +00:00

46 lines
1.1 KiB
Makefile

# Created by: Alejandro Pulver <alejandro@varnet.biz>
# $FreeBSD$
PORTNAME= atris
PORTVERSION= 1.0.7
PORTREVISION= 5
CATEGORIES= games
MASTER_SITES= http://www.sourcefiles.org/Games/Arcade/Block_Based/Tetris/
MAINTAINER= ports@FreeBSD.org
COMMENT= Atris: Alizarin Tetris
USES= gmake
USE_SDL= sdl ttf
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --program-transform-name=""
MAKE_ARGS= ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOMAKE="${TRUE}" \
AUTOHEADER="${TRUE}"
NO_STAGE= yes
post-patch:
# Fix path to ${DATADIR}
${REINPLACE_CMD} -e 's|\(GAME_INSTALLDIR=\).*|\1"${DATADIR}"|' \
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
# Fix install target to use gmake
${REINPLACE_CMD} -e '/^install:/,/^$$/s/make/$$(MAKE)/' \
${WRKSRC}/Makefile.in
# Fix SDL include statement
.for f in *.c *.h
@${FIND} ${WRKSRC} -type f -name "${f}" -print0 | \
${XARGS} -0 ${REINPLACE_CMD} -e \
's|\(#include.*\)SDL/\(SDL.*\)|\1\2|'
.endfor
.if !defined(NOPORTDOCS)
post-install:
# Install documentation (optional)
@${MKDIR} ${DOCSDIR}
@${RM} -f ${WRKSRC}/Docs/Makefile*
@${CP} -R ${WRKSRC}/Docs/* ${DOCSDIR}
.endif
.include <bsd.port.mk>