2013-01-19 11:09:14 +01:00
|
|
|
# Created by: Oliver Lehmann <oliver@FreeBSD.org>
|
2005-10-02 21:10:31 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= cyphesis
|
2013-01-19 11:09:14 +01:00
|
|
|
PORTVERSION= 0.6.0
|
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 02:52:33 +02:00
|
|
|
PORTREVISION= 3
|
2005-10-02 21:10:31 +02:00
|
|
|
CATEGORIES= net
|
2009-08-22 02:32:25 +02:00
|
|
|
MASTER_SITES= SF/worldforge/${PORTNAME}%20%28server%29/${PORTVERSION}
|
2005-10-02 21:10:31 +02:00
|
|
|
|
|
|
|
MAINTAINER= oliver@FreeBSD.org
|
2013-09-10 14:20:21 +02:00
|
|
|
COMMENT= Server for WorldForge games
|
2005-10-02 21:10:31 +02:00
|
|
|
|
2013-12-12 15:23:25 +01:00
|
|
|
LIB_DEPENDS= libAtlas-0.6.so:${PORTSDIR}/devel/atlas-devel \
|
|
|
|
libvarconf-1.0.so:${PORTSDIR}/devel/varconf \
|
|
|
|
libwfmath-1.0.so:${PORTSDIR}/math/wfmath \
|
|
|
|
libmercator-0.3.so:${PORTSDIR}/devel/mercator \
|
|
|
|
libskstream-0.3.so:${PORTSDIR}/net/skstream \
|
|
|
|
libgcrypt.so:${PORTSDIR}/security/libgcrypt \
|
|
|
|
libboost_regex.so:${PORTSDIR}/devel/boost-libs
|
2005-10-02 21:10:31 +02:00
|
|
|
|
2007-07-24 17:10:14 +02:00
|
|
|
CONFIGURE_ARGS= --with-python=${LOCALBASE}
|
2005-10-02 21:10:31 +02:00
|
|
|
|
2007-01-21 11:29:09 +01:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_BZIP2= yes
|
2013-09-10 22:01:27 +02:00
|
|
|
USES= gmake pathfix pkgconfig
|
2007-01-21 11:29:09 +01:00
|
|
|
USE_LDCONFIG= yes
|
|
|
|
USE_PGSQL= yes
|
2014-01-13 22:00:02 +01:00
|
|
|
USE_PYTHON= 2
|
2013-01-19 11:09:14 +01:00
|
|
|
USE_GCC= 4.7+
|
2005-10-02 21:10:31 +02:00
|
|
|
|
2009-06-09 00:30:55 +02:00
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
|
|
|
2007-01-21 11:29:09 +01:00
|
|
|
MAN1= cyclient.1 cycmd.1 cyphesis.1 cyphesis-tools.1 cyaddrules.1 \
|
|
|
|
cyconvertrules.1 cydumprules.1 cyloadrules.1 cypasswd.1
|
2005-10-02 21:10:31 +02:00
|
|
|
|
2013-09-21 00:10:23 +02:00
|
|
|
NO_STAGE= yes
|
2013-01-19 11:09:14 +01:00
|
|
|
.include <bsd.port.options.mk>
|
2005-10-07 14:39:06 +02:00
|
|
|
|
2005-10-02 21:10:31 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's| install-dist_docDATA | |g' ${WRKSRC}/Makefile.in
|
2013-01-19 11:09:14 +01:00
|
|
|
@${REINPLACE_CMD} -e 's| install-confbackupDATA | |g' \
|
|
|
|
${WRKSRC}/data/minimal/Makefile.in \
|
|
|
|
${WRKSRC}/data/mars/Makefile.in \
|
|
|
|
${WRKSRC}/data/Makefile.in
|
|
|
|
@${REINPLACE_CMD} -e 's|-lpython|${PTHREAD_LIBS} &|' \
|
|
|
|
${WRKSRC}/configure
|
2005-10-02 21:10:31 +02:00
|
|
|
@${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} \
|
2013-01-19 11:09:14 +01:00
|
|
|
${REINPLACE_CMD} -e 's|$$(datadir)/cyphesis|${DATADIR}|g ; \
|
|
|
|
s|confbackupdir = .*|confbackupdir = ${DOCSDIR}/conf|g'
|
2009-04-12 10:56:20 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|/bash|/sh|' ${WRKSRC}/scripts/extract_revision.sh
|
2009-06-09 00:30:55 +02:00
|
|
|
@${REINPLACE_CMD} -e '1s|python|${LOCALBASE}/bin/${PYTHON_VERSION}|' ${WRKSRC}/scripts/gen_buildid.py
|
2011-04-29 07:56:56 +02:00
|
|
|
@${REINPLACE_CMD} -e 's/#ifdef __APPLE__/#if defined(__APPLE__) || defined(__FreeBSD__)/g; \
|
|
|
|
s/#ifndef __APPLE__/#if !defined(__APPLE__) \&\& !defined(__FreeBSD__)/g' \
|
|
|
|
${WRKSRC}/common/system.cpp \
|
|
|
|
${WRKSRC}/server/CommUnixListener.cpp
|
2005-10-02 21:10:31 +02:00
|
|
|
|
|
|
|
post-install:
|
2013-01-19 11:09:14 +01:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2005-10-02 21:10:31 +02:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
@${MKDIR} ${DOCSDIR}/conf
|
2013-01-19 11:09:14 +01:00
|
|
|
.for docfile in README COPYING AUTHORS THANKS NEWS ChangeLog TODO FIXME
|
2005-10-02 21:10:31 +02:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${docfile} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
.for docfile in acorn.xml basic.xml cyphesis.vconf mason.xml werewolf.xml
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/data/${docfile} ${DOCSDIR}/conf
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
2013-01-19 11:09:14 +01:00
|
|
|
.include <bsd.port.mk>
|