freebsd-ports/games/nil/Makefile
Kris Kennaway 5c6f51f8b9 BROKEN on 5.x: Does not compile
Approved by:    portmgr (self)
2004-09-19 01:33:42 +00:00

50 lines
1.3 KiB
Makefile

# New ports collection makefile for: nil
# Date created: 28 September 2000
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= nil
PORTVERSION= 000928
PORTREVISION= 2
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= sobomax
MAINTAINER= ports@FreeBSD.org
COMMENT= A multiplayer game that can be described as Quake in 2D or Worms done right
WRKSRC= ${WRKDIR}/${PORTNAME}/${PORTNAME}
USE_GMAKE= yes
GNU_CONFIGURE= yes
USE_REINPLACE= yes
USE_SDL= mixer sdl
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 502126
BROKEN= "Does not compile on FreeBSD >= 5.x"
.endif
pre-patch:
@${FIND} ${WRKSRC} \( -name "*.[ch]" -or -name "*.cpp" \) | \
${XARGS} ${REINPLACE_CMD} -e 's|"SDL/|"|g ; s|<SDL/|<|g'
@${FIND} ${WRKSRC}/.. -type d -name CVS | ${XARGS} ${RM} -rf
@${REINPLACE_CMD} -e 's|iostream.h|iostream|' ${WRKSRC}/nil/systemheaders.h
post-configure:
@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/nil/configuration.cpp
post-install:
@${MKDIR} ${PREFIX}/share/nil
@cd ${WRKSRC}/..; ${TAR} cf - gfx | \
(cd ${PREFIX}/share/nil ; ${TAR} --unlink -xf - )
@${INSTALL_MAN} ${WRKSRC}/../docs/NiL-HOWTO.txt ${PREFIX}/share/nil/README
@${ECHO_MSG} ""
@${ECHO_MSG} "See ${PREFIX}/share/nil/README for usage instructions."
@${ECHO_MSG} ""
.include <bsd.port.post.mk>