1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00
freebsd-ports/games/moonlander/Makefile
2013-10-19 03:04:34 +00:00

43 lines
847 B
Makefile

# Created by: Kris Kennaway <kris@FreeBSD.org>
# $FreeBSD$
PORTNAME= moonlander
PORTVERSION= 1.0
PORTREVISION= 12
CATEGORIES= games
MASTER_SITES= DEBIAN/pool/main/m/moon-lander
DISTNAME= moon-lander_${PORTVERSION}.orig
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Land a spacecraft on the moon
LICENSE= BSD
USE_SDL= mixer image sdl
WRKSRC= ${WRKDIR}/moon-lander
SOUNDS= sounds
PLIST_FILES= bin/${PORTNAME}
PORTDATA= *
OPTIONS_DEFINE= SOUND
OPTIONS_DEFAULT=SOUND
.include <bsd.port.options.mk>
.if ! ${PORT_OPTIONS:MSOUND}
SOUNDS= # empty
CFLAGS+= -DNOSOUND
.endif
do-configure:
@${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g' ${WRKSRC}/moon_lander.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/moonlander ${STAGEDIR}${PREFIX}/bin/
cd ${WRKSRC} && ${COPYTREE_SHARE} "fonts images ${SOUNDS}" ${STAGEDIR}${DATADIR}/
.include <bsd.port.mk>