aboutsummaryrefslogtreecommitdiffstats
path: root/games/battletanks/Makefile
blob: d256b3d2ce1c02901720068500a8595d070d9df5 (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
52
53
54
# New ports collection makefile for:    Battle Tanks
# Date created:             24 Mar 2008
# Whom:                 Alexey Dokuchaev <danfe@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   btanks
PORTVERSION=    0.7.5800
PORTREVISION=   5
CATEGORIES= games
MASTER_SITES=   SF/${PORTNAME}/${PORTNAME}-source/${PORTNAME}-source-${PORTVERSION}

MAINTAINER= danfe@FreeBSD.org
COMMENT=    Fast 2D tank arcade game with multiplayer and split-screen modes

LIB_DEPENDS=    sigc-2.0.0:${PORTSDIR}/devel/libsigc++20 \
        expat.6:${PORTSDIR}/textproc/expat2 \
        vorbisfile.6:${PORTSDIR}/audio/libvorbis

USE_BZIP2=  yes
USE_LDCONFIG=   yes
USE_OPENAL= al
USE_SCONS=  yes
USE_SDL=    image sdl
SCONS_BUILDENV= ${SCONS_ENV} LDFLAGS=${PTHREAD_LIBS}
SCONS_ARGS= prefix=${PREFIX} resources_dir=${DATADIR}
PORTDOCS=   *

OPTIONS=    LUA "Build with Lua scripting support"  off

.include <bsd.port.pre.mk>

.if defined(WITH_LUA)
USE_LUA=    5.0+
.else
SCONS_ARGS+=    enable_lua=false
.endif

DESKTOP_ENTRIES="Battle Tanks" "${COMMENT}" "" "bt" "Application;Game;" false

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/bt ${PREFIX}/bin
    ${INSTALL_PROGRAM} ${WRKSRC}/*[^s].so ${PREFIX}/lib
    @${MKDIR} ${DATADIR}
    ${INSTALL_PROGRAM} ${WRKSRC}/libbt_objects.so ${DATADIR}
    (cd ${WRKSRC} && ${COPYTREE_SHARE} data ${DATADIR})
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/README-en.txt ${DOCSDIR}/README
    ${INSTALL_DATA} ${WRKSRC}/*.url ${DOCSDIR}
.endif

.include <bsd.port.post.mk>