summaryrefslogtreecommitdiffstats
path: root/games/moonlander/Makefile
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2003-06-27 08:37:10 +0000
committerkris <kris@FreeBSD.org>2003-06-27 08:37:10 +0000
commit55ca205bfc94869071dbb7e3d2879170a03dc68a (patch)
treec8037a25045a27de9883a9a4af533c8d5fec56f1 /games/moonlander/Makefile
parent4e6e4db78d602c8ffcbbf03b196d582a0f85ea29 (diff)
downloadFreeBSD-ports-55ca205bfc94869071dbb7e3d2879170a03dc68a.zip
FreeBSD-ports-55ca205bfc94869071dbb7e3d2879170a03dc68a.tar.gz
Moon Lander is a 2D game of gravity. Land your ship on the landing pad.
Don't go too fast, or you will crash. Obtained from: OpenBSD
Diffstat (limited to 'games/moonlander/Makefile')
-rw-r--r--games/moonlander/Makefile48
1 files changed, 48 insertions, 0 deletions
diff --git a/games/moonlander/Makefile b/games/moonlander/Makefile
new file mode 100644
index 0000000..d6510a8
--- /dev/null
+++ b/games/moonlander/Makefile
@@ -0,0 +1,48 @@
+# New ports collection makefile for: moonlander
+# Date created: 27 Jun 2003
+# Whom: Kris Kennaway <kris@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= moonlander
+PORTVERSION= 1.0
+CATEGORIES= games
+MASTER_SITES= http://downloads.daveblood.com/lunar_lander/
+DISTNAME= moon-lander-1.0
+
+MAINTAINER= ports@FreeBSD.org
+COMMENT= "land a spacecraft on the moon"
+
+LIB_DEPENDS= SDL_image.10:${PORTSDIR}/graphics/sdl_image \
+ SDL_mixer.2:${PORTSDIR}/audio/sdl_mixer
+
+USE_X_PREFIX= YES
+USE_REINPLACE= YES
+
+WRKSRC= ${WRKDIR}/moon-lander
+
+install_dirs= fonts images
+.if defined(WITHOUT_SOUND)
+CFLAGS+= -DNOSOUND
+PLIST_SUB+= SOUND="@comment "
+.else
+PLIST_SUB+= SOUND=
+install_dirs+= sounds
+.endif
+
+do-configure:
+ ${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g' ${WRKSRC}/moon_lander.c
+
+do-install:
+ @${MKDIR} ${PREFIX}/bin; \
+ ${INSTALL_PROGRAM} ${WRKSRC}/moonlander ${PREFIX}/bin; \
+ ${MKDIR} ${PREFIX}/share/moonlander
+.for i in ${install_dirs}
+ @cp -R ${WRKSRC}/${i} ${PREFIX}/share/moonlander
+.endfor
+
+post-install:
+ @find ${PREFIX}/share/moonlander -type f -print0 |xargs -0 ${CHMOD} 444
+
+.include <bsd.port.mk>
OpenPOWER on IntegriCloud