aboutsummaryrefslogtreecommitdiffstats
path: root/games/blackshadeselite/Makefile
blob: da3a10d1b3d71d066e160cef08a060ff0c381175 (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
# Created by: Dmitry Marakasov <amdmi3@amdmi3.ru>
# $FreeBSD$

PORTNAME=   blackshadeselite
PORTVERSION=    0.0.1
PORTREVISION=   7
CATEGORIES= games
MASTER_SITES=   http://download.gna.org/blackshadeselite/ \
        http://mirror.amdmi3.ru/distfiles/

MAINTAINER= amdmi3@FreeBSD.org
COMMENT=    Psychic Bodyguard FPS - protect the VIP

LIB_DEPENDS=    vorbis.4:${PORTSDIR}/audio/libvorbis

USE_BZIP2=  yes
USE_GMAKE=  yes
USE_SDL=    sdl
USE_GL=     yes
USE_OPENAL= al alut

MAKE_ARGS=  CC=${CC} CXX=${CXX}

WRKSRC=     ${WRKDIR}/${PORTNAME}

PORTDOCS=   Readme Readme.elite

.include <bsd.port.options.mk>

post-extract:
    @${FIND} ${WRKSRC}/Data -name '._*' -delete

post-patch:
    @${REINPLACE_CMD} -e '/InitGL/ s|.*|chdir("${DATADIR}"); &|' ${WRKSRC}/Source/Main.cpp

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/objs/blackshades ${PREFIX}/bin
    ${MKDIR} ${DATADIR}
    @cd ${WRKSRC} && ${COPYTREE_SHARE} Data ${DATADIR}/
.if ${PORT_OPTIONS:MDOCS}
    ${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif
    @${ECHO_CMD}; ${CAT} ${PKGMESSAGE}; ${ECHO_CMD}

.include <bsd.port.mk>