summaryrefslogtreecommitdiffstats
path: root/games/moonlander/Makefile
blob: d6510a80208efbb2e907d62bab097da578850285 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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