aboutsummaryrefslogtreecommitdiff
path: root/games/simplevaders/Makefile
blob: 53f196f734d36222969f2208e5a16f0d2f2ad150 (plain) (blame)
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
# Created by: Dmitry Marakasov <amdmi3@amdmi3.ru>
# $FreeBSD$

PORTNAME=	simplevaders
PORTVERSION=	0.8
PORTREVISION=	7
CATEGORIES=	games
MASTER_SITES=	http://dusted.dk/download/ \
		http://mirror.amdmi3.ru/distfiles/

MAINTAINER=	amdmi3@FreeBSD.org
COMMENT=	Space-Invaders like 2D space shooter

LICENSE=	GPLv3

USES=		tar:bzip2
USE_SDL=	sdl mixer image ttf
USE_GL=		gl glu

WRKSRC=		${WRKDIR}/${PORTNAME}

PLIST_FILES=	bin/${PORTNAME}
PORTDATA=	*

post-patch:
	@${REINPLACE_CMD} -e 's|data/|${DATADIR}/|' ${WRKSRC}/main.cpp
	@${RM} ${WRKSRC}/data/*\~

do-build:
	cd ${WRKSRC} && ${CC} ${CFLAGS} main.cpp -o ${PORTNAME} \
		`${SDL_CONFIG} --cflags --libs` -lSDL_ttf -lSDL_mixer \
		-lSDL_image -lGL -lGLU

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
	cd ${WRKSRC}/data && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}

.include <bsd.port.mk>