1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/games/xnibbles/Makefile
Akinori MUSHA bc07afc1c2 Use ${ECHO_CMD} instead of ${ECHO} where you mean the echo command;
the ECHO macro is set to "echo" by default, but it is set to "true" if
make(1) is invoked with the -s option while ECHO_CMD is always set to
the echo command.

Use command macros where appropriate.
2002-01-29 10:53:27 +00:00

46 lines
1.4 KiB
Makefile

# New ports collection makefile for: xnibbles
# Date created: 2 March 1998
# Whom: Andrey Zakhvatov
#
# $FreeBSD$
#
PORTNAME= xnibbles
PORTVERSION= 1.0.b3
CATEGORIES= games
MASTER_SITES= http://www.tjhsst.edu/xnibbles/
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.b/BETA/}
MAINTAINER= ports@FreeBSD.org
WRKSRC= ${WRKDIR}/${PORTNAME}
USE_X_PREFIX= yes
USE_XPM= yes
USE_GMAKE= yes
MAKE_ENV= CXX="${CXX}" CXXFLAGS="${CXXFLAGS}"
ALL_TARGET= linux
MAN6= xnibbles.6
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/xnibbles ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/xnibbles.6 ${MANPREFIX}/man/man6
@${MKDIR} ${PREFIX}/share/xnibbles/sounds
${INSTALL_DATA} ${WRKSRC}/sounds/*.ub ${PREFIX}/share/xnibbles/sounds
@${MKDIR} ${PREFIX}/share/xnibbles/levels
.if exists(${PREFIX}/share/xnibbles/levels/LEVELS)
@${RM} ${PREFIX}/share/xnibbles/levels/LEVELS
.endif
@${TOUCH} ${PREFIX}/share/xnibbles/levels/LEVELS
.for file in 001 002 003 004 005 006 007 008 009 010 011 012
@${ECHO_CMD} ${PREFIX}/share/xnibbles/levels/level${file}.xnl >> ${PREFIX}/share/xnibbles/levels/LEVELS
${INSTALL_DATA} ${WRKSRC}/levels/*.xnl ${PREFIX}/share/xnibbles/levels
.endfor
@${MKDIR} ${PREFIX}/share/doc/xnibbles
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/xnibbles
${INSTALL_DATA} ${WRKSRC}/TODO ${PREFIX}/share/doc/xnibbles
${INSTALL_DATA} ${WRKSRC}/levels/README ${PREFIX}/share/doc/xnibbles/README.levels
.include <bsd.port.mk>