aboutsummaryrefslogtreecommitdiffstats
path: root/games/plutocracy/Makefile
blob: 14d57869dc981bd163d025fea468a4f9fecbb46c (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
51
# New ports collection makefile for:    plutocracy
# Date created:     29 Dec 2008
# Whom:         Dmitry Marakasov <amdmi3@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   plutocracy
PORTVERSION=    0.0.20081229
PORTREVISION=   3
CATEGORIES= games
MASTER_SITES=   http://mirror.amdmi3.ru/distfiles/

MAINTAINER= amdmi3@FreeBSD.org
COMMENT=    Multiplayer 3D economy/trade-based RTS

LICENSE=    GPLv2

LIB_DEPENDS=    png15:${PORTSDIR}/graphics/png

USE_BZIP2=  yes
USE_SDL=    sdl pango
USE_GL=     gl glu
USE_PYTHON= yes
USE_PYDISTUTILS=    yes
INSTALLS_EGGINFO=   yes
PYDISTUTILS_PKGVERSION= 0.0

WRKSRC=     ${WRKDIR}/${PORTNAME}

SUB_FILES=  plutocracy_

PORTDOCS=   AUTHORS README

post-patch:
    @${REINPLACE_CMD} -e 's|span font|span font_desc|' \
        ${WRKSRC}/src/render/r_assets.c
    @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
        ${WRKSRC}/setup.py

post-install:
    ${INSTALL_SCRIPT} ${WRKSRC}/pluto.py ${DATADIR}/
    ${INSTALL_SCRIPT} ${WRKDIR}/plutocracy_ ${PREFIX}/bin/${PORTNAME}
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>