2013-01-07 02:07:26 +00:00
|
|
|
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
|
2008-04-02 10:18:54 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= btanks
|
2010-04-25 11:01:44 +00:00
|
|
|
PORTVERSION= 0.9.8083
|
Update to libmpc version 1.0.1 which brings the following fixes:
- Switched to automake 1.11.6, see CVE-2012-3386.
- #14669: Fixed extraction of CC from gmp.h.
- Fixed case of intermediate zero real or imaginary part in mpc_fma,
found by hydra with GMP_CHECK_RANDOMIZE=1346362345.
This is on top of the following changes from version 1.0
- Licence change towards LGPLv3+ for the code and GFDLv1.3+ (with no
invariant sections) for the documentation.
- 100% of all lines are covered by tests
- Renamed functions
. mpc_mul_2exp to mpc_mul_2ui
. mpc_div_2exp to mpc_div_2ui
- 0^0, which returned (NaN,NaN) previously, now returns (1,+0).
- Removed compatibility with K&R compilers, which was untestable due
to lack of such compilers.
- New functions
. mpc_log10
. mpc_mul_2si, mpc_div_2si
- Speed-ups
. mpc_fma
- Bug fixes
. mpc_div and mpc_norm now return a value indicating the effective
rounding direction, as the other functions.
. mpc_mul, mpc_sqr and mpc_norm now return correct results even if
there are over- or underflows during the computation.
. mpc_asin, mpc_proj, mpc_sqr: Wrong result when input variable has
infinite part and equals output variable is corrected.
. mpc_fr_sub: Wrong return value for imaginary part is corrected.
Convert to the new LIB_DEPENDS standard and remove hard-coded
.so versions from a couple of dependent ports.
Bump PORTREVISIONS of all dependent ports.
PR: 183141
Approved by: portmgr (bdrewery)
2013-10-26 00:52:33 +00:00
|
|
|
PORTREVISION= 6
|
2008-04-02 10:18:54 +00:00
|
|
|
CATEGORIES= games
|
2010-04-25 11:01:44 +00:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-source/
|
2008-04-02 10:18:54 +00:00
|
|
|
|
2011-11-03 10:56:01 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2008-04-02 10:18:54 +00:00
|
|
|
COMMENT= Fast 2D tank arcade game with multiplayer and split-screen modes
|
|
|
|
|
2010-04-25 11:01:44 +00:00
|
|
|
BUILD_DEPENDS= zip:${PORTSDIR}/archivers/zip
|
2013-12-08 20:05:18 +00:00
|
|
|
LIB_DEPENDS= libsigc-2.0.so:${PORTSDIR}/devel/libsigc++20 \
|
2013-12-03 23:14:35 +00:00
|
|
|
libexpat.so:${PORTSDIR}/textproc/expat2 \
|
|
|
|
libvorbisfile.so:${PORTSDIR}/audio/libvorbis \
|
|
|
|
libsmpeg.so:${PORTSDIR}/multimedia/smpeg
|
2008-04-02 10:18:54 +00:00
|
|
|
|
2013-12-25 23:29:34 +00:00
|
|
|
USES= openal:al pkgconfig
|
2008-04-02 10:18:54 +00:00
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_LDCONFIG= yes
|
2010-04-25 11:01:44 +00:00
|
|
|
USE_LUA= 5.0+
|
2008-04-02 10:18:54 +00:00
|
|
|
USE_SDL= image sdl
|
2010-05-24 16:21:25 +00:00
|
|
|
USE_SCONS= yes
|
2014-01-15 11:38:05 +00:00
|
|
|
USE_PYTHON_BUILD= yes
|
|
|
|
SCONS_ARGS= prefix=${PREFIX} resources_dir=${DATADIR} \
|
|
|
|
--install-sandbox=${STAGEDIR}
|
2010-05-24 16:21:25 +00:00
|
|
|
SCONS_BUILDENV= CC="${CC}" CXX="${CXX}" \
|
2011-11-04 02:16:37 +00:00
|
|
|
CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS} -fpermissive" \
|
2010-04-25 11:01:44 +00:00
|
|
|
LDFLAGS="${LDFLAGS} ${PTHREAD_LIBS}" \
|
2011-11-03 10:56:01 +00:00
|
|
|
CPPPATH="${LOCALBASE}/include" LIBPATH="${LOCALBASE}/lib"
|
|
|
|
|
2010-04-25 11:01:44 +00:00
|
|
|
PORTDOCS= LICENSE LICENSE.EXCEPTION README-en.txt README-linux.txt \
|
|
|
|
donate.url homepage.url project_page.url video.txt
|
2008-04-02 10:18:54 +00:00
|
|
|
|
2014-01-15 11:38:05 +00:00
|
|
|
DESKTOP_ENTRIES="Battle Tanks" "" "" "${PORTNAME}" "Game;ArcadeGame;" ""
|
2008-04-02 10:18:54 +00:00
|
|
|
|
2011-11-03 10:56:01 +00:00
|
|
|
pre-build:
|
2011-11-04 02:16:37 +00:00
|
|
|
# Regenerate `sl08.h' after we patch `sl08.py' (as patching the header itself
|
2011-11-03 10:56:01 +00:00
|
|
|
# would have resulted in a larger diff and gratuitous difference with Debian)
|
2013-12-14 20:46:11 +00:00
|
|
|
@cd ${WRKSRC} && ${PYTHON_CMD} engine/sl08/sl08.py > engine/sl08/sl08.h
|
2008-04-02 10:18:54 +00:00
|
|
|
|
2010-04-25 11:01:44 +00:00
|
|
|
post-install:
|
2014-01-15 11:38:05 +00:00
|
|
|
${INSTALL_MAN} ${FILESDIR}/${PORTNAME}.6 \
|
|
|
|
${STAGEDIR}${MANPREFIX}/man/man6
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
|
2008-04-02 10:18:54 +00:00
|
|
|
|
2011-11-03 10:56:01 +00:00
|
|
|
.include <bsd.port.mk>
|