2000-09-29 15:52:36 +02:00
|
|
|
# New ports collection makefile for: nil
|
|
|
|
# Date created: 28 September 2000
|
|
|
|
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= nil
|
2006-06-17 23:53:27 +02:00
|
|
|
DISTVERSION= 20050603-1400
|
2010-08-11 08:57:34 +02:00
|
|
|
PORTREVISION= 7
|
2000-09-29 15:52:36 +02:00
|
|
|
CATEGORIES= games
|
2009-08-22 02:23:13 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/NiL%20%28old%29/${PORTNAME}-20050603
|
2006-06-17 23:53:27 +02:00
|
|
|
DISTNAME= ${PORTNAME}-cvs-backup-${DISTVERSION}
|
2000-09-29 15:52:36 +02:00
|
|
|
|
2008-02-21 22:20:01 +01:00
|
|
|
MAINTAINER= gahr@FreeBSD.org
|
2006-06-17 23:53:27 +02:00
|
|
|
COMMENT= A multiplayer game like Quake in 2D or Worms done right
|
2000-09-29 15:52:36 +02:00
|
|
|
|
2006-06-17 23:53:27 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
2000-09-29 15:52:36 +02:00
|
|
|
|
2006-06-17 23:53:27 +02:00
|
|
|
USE_BZIP2= yes
|
2000-09-29 15:52:36 +02:00
|
|
|
USE_GMAKE= yes
|
2006-06-17 23:53:27 +02:00
|
|
|
USE_SDL= image mixer sdl ttf
|
2000-09-29 15:52:36 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2006-06-17 23:53:27 +02:00
|
|
|
|
|
|
|
OPTIONS= OPTIMIZED_CFLAGS "Enable compilation optimizations" on
|
2003-06-05 00:43:38 +02:00
|
|
|
|
2004-09-19 03:33:42 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-07-14 06:34:14 +02:00
|
|
|
.if ${ARCH} == "ia64"
|
|
|
|
BROKEN= does not link on ${ARCH}
|
|
|
|
.endif
|
|
|
|
|
2006-06-17 23:53:27 +02:00
|
|
|
post-patch:
|
|
|
|
@${FIND} ${WRKSRC} -type f -name configure -print0 | ${XARGS} -0 \
|
|
|
|
${REINPLACE_CMD} -e \
|
|
|
|
's|[[:<:]]make[[:>:]]|${GMAKE}|; \
|
|
|
|
s|sdl-config|${SDL_CONFIG}|'
|
|
|
|
@${REINPLACE_CMD} -e 's|\.\./data|${DATADIR}|' \
|
|
|
|
${WRKSRC}/src/common/configuration/configuration.cpp
|
|
|
|
.if !defined(WITHOUT_OPTIMIZED_CFLAGS)
|
|
|
|
@${REINPLACE_CMD} -e 's|\(--subcall\)|\1 --enable-optimize|' \
|
|
|
|
${WRKSRC}/configure
|
2004-09-19 03:33:42 +02:00
|
|
|
.endif
|
|
|
|
|
2006-06-17 23:53:27 +02:00
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} ${PREFIX}/bin
|
|
|
|
${MKDIR} ${DATADIR}
|
|
|
|
${CP} -R ${WRKSRC}/data/* ${DATADIR}
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/HOWTO ${DOCSDIR}
|
|
|
|
.endif
|
2000-09-29 15:52:36 +02:00
|
|
|
|
2004-09-19 03:33:42 +02:00
|
|
|
.include <bsd.port.post.mk>
|