summaryrefslogtreecommitdiff
path: root/games/reminiscence/Makefile
blob: 8a2439669c20d119952d9cc409ff268c94b891d9 (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
# New ports collection makefile for:	REminiscence
# Date created:		11 Feb 2005
# Whom:			Dmitry Marakasov <amdmi3@mail.ru>
#
# $FreeBSD$
#

PORTNAME=	REminiscence
PORTVERSION=	0.1.8
PORTREVISION=	1
CATEGORIES=	games
MASTER_SITES=	http://membres.lycos.fr/cyxdown/reminiscence/

MAINTAINER=	amdmi3@mail.ru
COMMENT=	A rewritten engine for Flashback

USE_BZIP2=	yes
USE_GMAKE=	yes
USE_SDL=	sdl

ALL_TARGET=	rs

PORTDOCS=	README

post-patch:
	@${REINPLACE_CMD} -e '/^CXX =/ d' ${WRKSRC}/Makefile
	@${REINPLACE_CMD} -e '/^CXXFLAGS:=/ d' ${WRKSRC}/Makefile
	@${REINPLACE_CMD} -e '/^CXXFLAGS+=.*-W/ d' ${WRKSRC}/Makefile
	@${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG}|' ${WRKSRC}/Makefile
	@${REINPLACE_CMD} -e 's|DATA|${DATADIR}/data|' ${WRKSRC}/main.cpp

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/rs ${PREFIX}/bin/remin
	${MKDIR} ${DATADIR}/data

post-install:
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif
	@${ECHO_CMD}; ${CAT} ${PKGMESSAGE}; ${ECHO_CMD}

.include <bsd.port.mk>