aboutsummaryrefslogtreecommitdiff
path: root/games/vor/Makefile
blob: 223746522f4f26e2f4940e7c9a946d15c3c0aae9 (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
39
40
41
42
43
44
45
46
47
48
49
50
# New ports collection makefile for:	vor
# Date created:				07 Sep 2005
# Whom:					Dmitry Marakasov <amdmi3@mail.ru>
#
# $FreeBSD$
#

PORTNAME=	vor
PORTVERSION=	0.4
CATEGORIES=	games
MASTER_SITES=	http://qualdan.com/vor/

MAINTAINER=	amdmi3@mail.ru
COMMENT=	Dodge the rocks until you die

BUILD_DEPENDS=	${LOCALBASE}/include/argp.h:${PORTSDIR}/devel/argp-standalone

USE_SDL=	mixer image sdl
USE_BZIP2=	yes
USE_GMAKE=	yes

PORTDOCS=	README

.include <bsd.port.pre.mk>

post-patch:
	@${REINPLACE_CMD} -e 's|SDL/||' ${WRKSRC}/sound.c
	@${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG}|g' ${WRKSRC}/Makefile
	@${REINPLACE_CMD} -e 's|^\(my_objects.*\)$$|\1 ${LOCALBASE}/lib/libargp.a|' ${WRKSRC}/Makefile
	@${REINPLACE_CMD} -e 's|/usr/share/vor|${DATADIR}|' ${WRKSRC}/Makefile
.if (${OSVERSION} < 500000)
	@${REINPLACE_CMD} -e 's|UINT32_MAX|0xffffffffU|' ${WRKSRC}/mt.c
	@${REINPLACE_CMD} -e 's|INT32_MIN|(-0x7fffffff-1)|' ${WRKSRC}/mt.c
.endif

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/vor ${PREFIX}/bin
.for d in banners fonts icons indicators music sounds sprites
	${MKDIR} ${DATADIR}/${d}
	${INSTALL_DATA} ${WRKSRC}/data/${d}/* ${DATADIR}/${d}/
.endfor

.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.post.mk>