summaryrefslogtreecommitdiff
path: root/games/freebooters/Makefile
blob: 25a7a66183afbfcb5c6f68370a5da92b9d741796 (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
# New ports collection makefile for: freebooters
# Date created:		02 July 2004
# Whom:			<janos.mohacsi@bsd.hu>
#
# $FreeBSD$
#

PORTNAME=	freebooters
PORTVERSION=	0.2.1
CATEGORIES=	games
MASTER_SITES=	http://download.gna.org/freebooters/

MAINTAINER=	janos.mohacsi@bsd.hu
COMMENT=	Freebooters is a free clone of the classic Pirates!

USE_GMAKE=	yes
USE_SDL=	mixer image sdl ttf
USE_REINPLACE=	yes
DOC_FILES=	AUTHORS COPYING COPYRIGHT NEWS README \
		README_BUCCANEER TODO manual.tex
MAN6=		freebooters.6 buccaneer.6

do-configure:
	${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g' ${WRKSRC}/sdl_setup.cc
	${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g' ${WRKSRC}/tools.cc
	${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g' ${WRKSRC}/data/freebooters.conf

post-install:
.ifndef(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
	cd ${WRKSRC}/doc/ && ${INSTALL_DATA} ${DOC_FILES} ${DOCSDIR}
.endif

.include <bsd.port.mk>