2013-05-31 16:40:56 +02:00
|
|
|
# Created by: Kris Kennaway <kris@FreeBSD.org>
|
2003-06-27 10:37:10 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= moonlander
|
|
|
|
PORTVERSION= 1.0
|
2012-06-01 07:26:28 +02:00
|
|
|
PORTREVISION= 12
|
2003-06-27 10:37:10 +02:00
|
|
|
CATEGORIES= games
|
2013-10-19 05:04:34 +02:00
|
|
|
MASTER_SITES= DEBIAN/pool/main/m/moon-lander
|
|
|
|
DISTNAME= moon-lander_${PORTVERSION}.orig
|
2003-06-27 10:37:10 +02:00
|
|
|
|
2008-06-19 19:28:24 +02:00
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
2004-03-21 11:01:42 +01:00
|
|
|
COMMENT= Land a spacecraft on the moon
|
2003-06-27 10:37:10 +02:00
|
|
|
|
2011-12-14 22:29:16 +01:00
|
|
|
LICENSE= BSD
|
|
|
|
|
2004-01-20 19:21:02 +01:00
|
|
|
USE_SDL= mixer image sdl
|
2003-06-27 10:37:10 +02:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/moon-lander
|
|
|
|
|
2013-10-19 05:04:34 +02:00
|
|
|
SOUNDS= sounds
|
|
|
|
|
|
|
|
PLIST_FILES= bin/${PORTNAME}
|
|
|
|
PORTDATA= *
|
|
|
|
|
2013-05-31 16:40:56 +02:00
|
|
|
OPTIONS_DEFINE= SOUND
|
2013-10-19 05:04:34 +02:00
|
|
|
OPTIONS_DEFAULT=SOUND
|
2004-01-20 10:14:10 +01:00
|
|
|
|
2013-05-31 16:40:56 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2004-01-20 10:14:10 +01:00
|
|
|
|
2013-10-19 05:04:34 +02:00
|
|
|
.if ! ${PORT_OPTIONS:MSOUND}
|
|
|
|
SOUNDS= # empty
|
2013-05-31 16:40:56 +02:00
|
|
|
CFLAGS+= -DNOSOUND
|
2003-06-27 10:37:10 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
do-configure:
|
2013-10-19 05:04:34 +02:00
|
|
|
@${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g' ${WRKSRC}/moon_lander.c
|
2003-06-27 10:37:10 +02:00
|
|
|
|
|
|
|
do-install:
|
2013-10-19 05:04:34 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/moonlander ${STAGEDIR}${PREFIX}/bin/
|
|
|
|
cd ${WRKSRC} && ${COPYTREE_SHARE} "fonts images ${SOUNDS}" ${STAGEDIR}${DATADIR}/
|
2003-06-27 10:37:10 +02:00
|
|
|
|
2013-05-31 16:40:56 +02:00
|
|
|
.include <bsd.port.mk>
|