aboutsummaryrefslogtreecommitdiffstats
path: root/games/battletanks/Makefile
blob: a06516280915a733f6ed9b9a37c769d3250f8874 (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
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
# $FreeBSD$

PORTNAME=   btanks
PORTVERSION=    0.9.8083
PORTREVISION=   9
CATEGORIES= games
MASTER_SITES=   SF/${PORTNAME}/${PORTNAME}-source/

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

LICENSE=    GPLv2+
LICENSE_FILE=   ${WRKSRC}/LICENSE

BUILD_DEPENDS=  zip:archivers/zip
LIB_DEPENDS=    libsigc-2.0.so:devel/libsigc++20 \
        libexpat.so:textproc/expat2 \
        libvorbisfile.so:audio/libvorbis \
        libsmpeg.so:multimedia/smpeg

USES=       openal:al pkgconfig lua:51 python:2.7,build scons tar:bzip2
USE_CXXSTD= gnu++98
USE_LDCONFIG=   yes
USE_SDL=    image sdl
MAKE_ARGS=  prefix=${PREFIX} resources_dir=${DATADIR} \
        --install-sandbox=${STAGEDIR}
CXXFLAGS+=  -fpermissive

PORTDOCS=   LICENSE LICENSE.EXCEPTION README-en.txt README-linux.txt \
        donate.url homepage.url project_page.url video.txt

DESKTOP_ENTRIES="Battle Tanks" "" "" "${PORTNAME}" "Game;ArcadeGame;" ""

pre-build:
# Regenerate `sl08.h' after we patch `sl08.py' (as patching the header itself
# would have resulted in a larger diff and gratuitous difference with Debian)
    @cd ${WRKSRC} && ${PYTHON_CMD} engine/sl08/sl08.py > engine/sl08/sl08.h

post-patch:
    @${REINPLACE_CMD} -e "s/lua5.1/lua-${LUA_VER}/g" ${WRKSRC}/engine/SConscript

post-install:
    ${INSTALL_MAN} ${FILESDIR}/${PORTNAME}.6 \
        ${STAGEDIR}${MANPREFIX}/man/man6
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/* ${STAGEDIR}${PREFIX}/lib/*.so \
        ${STAGEDIR}${PREFIX}/lib/btanks/*.so

.include <bsd.port.mk>
gi/freebsd-ports-gnome/commit/security/amavisd-new?id=b4c89142dcae26689042a7144f9f720096402887'>- Update to 2.6.4gabor2009-06-284-19/+5 * - Add forgotten patch for the last commitgabor2009-06-021-0/+12 * - Fix the 'Can't locate object method "new" via package "Amavis::SpamControl"gabor2009-06-021-0/+1 * - Update to 2.6.3gabor2009-05-063-136/+4 * - Do not hardcode pidfile in the rc.d script [1]gabor2009-04-064-5/+15 * - Fix config file pathgabor2009-02-243-11/+9 * - Fix SQL logging problem [1]gabor2009-02-233-1/+140 * - Update to 2.6.2 [1]gabor2008-12-263-28/+6 * - Fix modes of the temp directory [1]gabor2008-09-223-1/+24 * - Update to 2.6.1gabor2008-07-132-5/+4 * Bump portrevision due to upgrade of devel/gettext.edwin2008-06-061-0/+1 * - Fix dependency and fix INDEXgabor2008-05-141-1/+1 * - Update to 2.6.0 [1]gabor2008-05-133-15/+30 * - Update to 2.5.4gabor2008-03-193-10/+11 * - Fix a typo in pkg-messagegabor2008-01-081-1/+1 * - Update to 2.5.3gabor2007-12-162-4/+6 * Welcome bsd.perl.mk. Add support for constructs such as USE_PERL5=5.8.0+.linimon2007-09-081-5/+1 * - Make a dependency version more accurate. According to pkg_version(1)gabor2007-07-211-1/+1 * - Update to 2.5.2 [1]gabor2007-06-293-5/+9 * - Update to 2.5.1gabor2007-06-095-8/+30 * Fix packaging. No PORTREVISION bump, since it installs and deinstalls cleanly,gabor2007-05-221-2/+2 * - Update to 2.5.0gabor2007-05-024-16/+69 * - Remove explicit -l from command line options of p0fanalyzer in the rc.dgabor2007-03-312-2/+3 * Another round of the periodic sweep for removal of thedougb2007-02-271-1/+0