2001-05-06 00:56:07 -04:00
|
|
|
# New ports collection makefile for: 0verkill
|
|
|
|
# Date created: 5 May 2001
|
|
|
|
# Whom: Kris Kennaway <kris@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= 0verkill
|
2002-08-27 23:25:28 -04:00
|
|
|
PORTVERSION= 0.16
|
2001-05-06 00:56:07 -04:00
|
|
|
CATEGORIES= games
|
|
|
|
MASTER_SITES= http://artax.karlin.mff.cuni.cz/~brain/0verkill/release/
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2003-05-07 07:37:56 -04:00
|
|
|
MAINTAINER= mich@FreeBSD.org
|
2003-02-21 07:06:51 -05:00
|
|
|
COMMENT= 0verkill is a bloody 2D action deathmatch-like game in ASCII-ART
|
2001-05-06 00:56:07 -04:00
|
|
|
|
2002-08-27 23:25:28 -04:00
|
|
|
USE_REINPLACE= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
|
|
|
.if defined(WITHOUT_X11)
|
|
|
|
PLIST_SUB= X11="@comment "
|
|
|
|
.else
|
|
|
|
USE_XPM= yes
|
|
|
|
CONFIGURE_ARGS+= --with-x
|
|
|
|
PLIST_SUB= X11=""
|
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-everything::
|
|
|
|
.if !defined(WITHOUT_X11)
|
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} "If you want to compile without X11 support,"
|
|
|
|
@${ECHO_MSG} "hit Ctrl-C right now and use \"make WITHOUT_X11=yes\""
|
|
|
|
@${ECHO_MSG}
|
|
|
|
.endif
|
2001-05-06 00:56:07 -04:00
|
|
|
|
|
|
|
post-patch:
|
2002-12-14 23:15:05 -05:00
|
|
|
@${REINPLACE_CMD} -e 's|data/|${DATADIR}/data/|g' ${WRKSRC}/cfg.h
|
2003-05-13 11:09:22 -04:00
|
|
|
@${REINPLACE_CMD} -e 's|grx/|${DATADIR}/grx/|g' ${WRKSRC}/data/*
|
2002-08-27 23:25:28 -04:00
|
|
|
@${REINPLACE_CMD} -e 's|-O3 ||g ; \
|
|
|
|
s|gcc |\$$\(CC\) |g' ${WRKSRC}/Makefile.in
|
2001-05-06 00:56:07 -04:00
|
|
|
|
|
|
|
do-install:
|
2002-08-27 23:25:28 -04:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/0verkill ${PREFIX}/bin
|
|
|
|
.for file in avi bot editor server test_server
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${file} ${PREFIX}/bin/0verkill-${file}
|
|
|
|
.endfor
|
|
|
|
.if !defined(WITHOUT_X11)
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/x0verkill ${PREFIX}/bin
|
|
|
|
.for file in avi editor
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/x${file} ${PREFIX}/bin/x0verkill-${file}
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
@${MKDIR} ${DATADIR}/data
|
2003-05-13 11:09:22 -04:00
|
|
|
.for file in banner.dat level.dat sprites.dat *.sp *.dn *.st
|
2002-08-27 23:25:28 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/data/${file} ${DATADIR}/data
|
|
|
|
.endfor
|
|
|
|
@${MKDIR} ${DATADIR}/grx
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/grx/* ${DATADIR}/grx
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
2002-12-14 23:15:05 -05:00
|
|
|
.for file in AUTHORS README.html avi.txt bot.txt doc.html
|
2002-08-27 23:25:28 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/${file} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
.endif
|
2001-05-06 00:56:07 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|