aboutsummaryrefslogtreecommitdiffstats
path: root/games/freebooters/Makefile
blob: 7ef9e3b06be1606c0db6112d653692cf1f47407c (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
# 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!

BROKEN=     Unfetchable

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

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 500000
BROKEN=     "Does not compile on 4.x"
.endif

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.post.mk>