summaryrefslogtreecommitdiff
path: root/games/nil/Makefile
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2000-09-29 13:52:36 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2000-09-29 13:52:36 +0000
commit1912be0da67f0631bd7498b0dd8acc7c53fa1e8d (patch)
tree2c99a3069afe2b90ed29e3ab0ddb193d6fcd80c8 /games/nil/Makefile
parentComplexProgramTarget() -> ComplexProgramTargetNoMan(). (diff)
Add nil - a really eye-candy multiplayer game.
See http://www.linuxworld.com/linuxworld/lw-2000-04/lw-04-nil.html for details.
Notes
Notes: svn path=/head/; revision=33248
Diffstat (limited to 'games/nil/Makefile')
-rw-r--r--games/nil/Makefile44
1 files changed, 44 insertions, 0 deletions
diff --git a/games/nil/Makefile b/games/nil/Makefile
new file mode 100644
index 000000000000..9ebabd1e3d5d
--- /dev/null
+++ b/games/nil/Makefile
@@ -0,0 +1,44 @@
+# New ports collection makefile for: nil
+# Date created: 28 September 2000
+# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= nil
+PORTVERSION= 000928
+CATEGORIES= games
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
+ ${MASTER_SITE_LOCAL}
+MASTER_SITE_SUBDIR= ${PORTNAME} sobomax
+
+MAINTAINER= sobomax@FreeBSD.org
+
+LIB_DEPENDS= SDL_mixer.2:${PORTSDIR}/audio/sdl_mixer
+
+WRKSRC= ${WRKDIR}/${PORTNAME}/${PORTNAME}
+
+SDL_CONFIG?= ${LOCALBASE}/bin/sdl11-config
+
+USE_GMAKE= yes
+GNU_CONFIGURE= yes
+MAKE_ENV= SDL_CONFIG="${SDL_CONFIG}"
+
+pre-patch:
+ @find ${WRKSRC} \( -name "*.[ch]" -or -name "*.cpp" \) | \
+ xargs ${PERL} -pi -e 's|"SDL/|"|g ; s|<SDL/|<|g'
+ @find ${WRKSRC}/.. -type d -name CVS | xargs ${RM} -rf
+
+post-configure:
+ @${PERL} -pi -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.mk>