2013-05-10 18:44:26 +02:00
|
|
|
# Created by: Stas Timokhin <stast@bsdportal.ru>
|
2010-11-26 15:47:08 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= eiskaltdcpp-qt
|
2011-10-25 00:20:59 +02:00
|
|
|
PORTVERSION= 2.2.4
|
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
|
2010-11-26 15:47:08 +01:00
|
|
|
CATEGORIES= net-p2p
|
|
|
|
MASTER_SITES= GOOGLE_CODE
|
|
|
|
DISTNAME= eiskaltdcpp-${DISTVERSION}
|
|
|
|
|
2013-05-10 19:34:56 +02:00
|
|
|
MAINTAINER= fjoe@FreeBSD.org
|
2010-11-26 15:47:08 +01:00
|
|
|
COMMENT= EiskaltDC++ Direct Connect client Qt GUI
|
|
|
|
|
2011-10-06 00:59:55 +02:00
|
|
|
LICENSE= GPLv3
|
|
|
|
|
2010-11-26 15:47:08 +01:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/share/eiskaltdcpp/keep_me:${PORTSDIR}/net-p2p/eiskaltdcpp-data
|
|
|
|
|
2011-10-06 00:59:55 +02:00
|
|
|
LIB_DEPENDS+= eiskaltdcpp:${PORTSDIR}/net-p2p/eiskaltdcpp-lib \
|
|
|
|
execinfo:${PORTSDIR}/devel/libexecinfo
|
2011-11-28 17:30:44 +01:00
|
|
|
BUILD_DEPENDS+= chrpath:${PORTSDIR}/devel/chrpath
|
|
|
|
|
2010-11-26 15:47:08 +01:00
|
|
|
CMAKE_ARGS+= -DBUILD_LIB:BOOL=OFF
|
|
|
|
|
|
|
|
PROJECTHOST= eiskaltdc
|
|
|
|
|
2011-10-06 00:59:55 +02:00
|
|
|
USE_XZ= yes
|
2013-08-17 18:27:24 +02:00
|
|
|
USE_GCC= yes
|
2013-04-26 12:44:28 +02:00
|
|
|
USES= cmake gettext
|
2010-11-26 15:47:08 +01:00
|
|
|
USE_OPENSSL= yes
|
|
|
|
|
|
|
|
MAN1= ${PORTNAME}.1
|
|
|
|
MANCOMPRESSED= yes
|
|
|
|
|
2013-05-10 18:44:26 +02:00
|
|
|
OPTIONS_DEFINE= ASPELL FREE_SPACE DBUS_NOTIFY QTSCRIPT QML SQLITE MINIUPNP
|
|
|
|
OPTIONS_DEFAULT= FREE_SPACE DBUS_NOTIFY MINIUPNP
|
|
|
|
FREE_SPACE_DESC= Free space bar in status panel
|
|
|
|
DBUS_NOTIFY_DESC= DBus notification support
|
|
|
|
QTSCRIPT_DESC= QtScript support
|
|
|
|
QML_DESC= Qt Declarative ui support
|
|
|
|
SQLITE_DESC= SQLite support (experimental)
|
|
|
|
MINIUPNP_DESC= UPnP support
|
2010-11-26 15:47:08 +01:00
|
|
|
|
2012-06-06 08:44:37 +02:00
|
|
|
USE_QT4= gui xml network qmake_build uic_build \
|
2010-11-26 15:47:08 +01:00
|
|
|
moc_build rcc_build linguist_build
|
|
|
|
CMAKE_ARGS+= -DUSE_QT:BOOL=ON
|
|
|
|
CMAKE_ARGS+= -DUSE_GTK:BOOL=OFF
|
|
|
|
CMAKE_ARGS+= -DEISKALTDCPP_INCLUDE_DIR:STRING="${LOCALBASE}/include/eiskaltdcpp"
|
|
|
|
CMAKE_ARGS+= -DCREATE_MO:BOOL=OFF
|
|
|
|
CMAKE_ARGS+= -DCMAKE_LIBRARY_PATH:PATH="${LOCALBASE}/lib:${PREFIX}/lib"
|
2011-10-25 00:20:59 +02:00
|
|
|
CMAKE_ARGS+= -DCMAKE_SKIP_RPATH:BOOL=ON
|
2010-11-26 15:47:08 +01:00
|
|
|
|
|
|
|
BUILD_WRKSRC= ${WRKSRC}/${PORTNAME}
|
|
|
|
INSTALL_WRKSRC= ${WRKSRC}/${PORTNAME}
|
|
|
|
|
2013-09-21 00:28:25 +02:00
|
|
|
NO_STAGE= yes
|
2010-11-26 15:47:08 +01:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2013-05-10 18:44:26 +02:00
|
|
|
.if ${PORT_OPTIONS:MASPELL}
|
2010-11-26 15:47:08 +01:00
|
|
|
LIB_DEPENDS+= aspell:${PORTSDIR}/textproc/aspell
|
|
|
|
CMAKE_ARGS+= -DUSE_ASPELL:BOOL=on
|
|
|
|
.else
|
|
|
|
CMAKE_ARGS+= -DUSE_ASPELL:BOOL=0
|
|
|
|
.endif
|
|
|
|
|
2013-05-10 18:44:26 +02:00
|
|
|
.if ${PORT_OPTIONS:MFREE_SPACE}
|
2010-11-26 15:47:08 +01:00
|
|
|
CMAKE_ARGS+= -DFREE_SPACE_BAR_C:BOOL=ON
|
|
|
|
.else
|
|
|
|
CMAKE_ARGS+= -DFREE_SPACE_BAR_C:BOOL=OFF
|
|
|
|
.endif
|
|
|
|
|
2013-05-10 18:44:26 +02:00
|
|
|
.if ${PORT_OPTIONS:MDBUS_NOTIFY}
|
2010-11-26 15:47:08 +01:00
|
|
|
CMAKE_ARGS+= -DDBUS_NOTIFY:BOOL=ON
|
2012-06-06 08:44:37 +02:00
|
|
|
USE_QT4+= dbus
|
2010-11-26 15:47:08 +01:00
|
|
|
.else
|
|
|
|
CMAKE_ARGS+= -DDBUS_NOTIFY:BOOL=OFF
|
|
|
|
.endif
|
|
|
|
|
2013-05-10 18:44:26 +02:00
|
|
|
.if ${PORT_OPTIONS:MQTSCRIPT}
|
2010-11-26 15:47:08 +01:00
|
|
|
CMAKE_ARGS+= -DUSE_JS:BOOL=ON
|
2012-06-06 08:44:37 +02:00
|
|
|
USE_QT4+= script
|
2011-10-06 00:59:55 +02:00
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/lib/qt4/plugins/script/libqtscript_core.so:${PORTSDIR}/devel/qtscriptgenerator
|
2010-11-26 15:47:08 +01:00
|
|
|
PLIST_SUB+= QTSCRIPT=""
|
|
|
|
.else
|
|
|
|
CMAKE_ARGS+= -DUSE_JS:BOOL=OFF
|
|
|
|
PLIST_SUB+= QTSCRIPT="@comment "
|
|
|
|
.endif
|
|
|
|
|
2013-05-10 18:44:26 +02:00
|
|
|
.if ${PORT_OPTIONS:MQML}
|
2011-10-06 00:59:55 +02:00
|
|
|
CMAKE_ARGS+= -DUSE_QT_QML:BOOL=ON
|
2012-06-06 08:44:37 +02:00
|
|
|
USE_QT4+= declarative
|
2011-10-06 00:59:55 +02:00
|
|
|
.else
|
|
|
|
CMAKE_ARGS+= -DUSE_QT_QML:BOOL=OFF
|
|
|
|
.endif
|
|
|
|
|
2013-05-10 18:44:26 +02:00
|
|
|
.if ${PORT_OPTIONS:MSQLITE}
|
2011-10-06 00:59:55 +02:00
|
|
|
CMAKE_ARGS+= -DUSE_QT_SQLITE:BOOL=ON
|
2012-06-06 08:44:37 +02:00
|
|
|
USE_QT4+= sql-sqlite3
|
2011-10-06 00:59:55 +02:00
|
|
|
.else
|
|
|
|
CMAKE_ARGS+= -DUSE_QT_SQLITE:BOOL=OFF
|
|
|
|
.endif
|
|
|
|
|
2013-05-10 18:44:26 +02:00
|
|
|
.if ${PORT_OPTIONS:MMINIUPNP}
|
2010-11-26 15:47:08 +01:00
|
|
|
LIB_DEPENDS+= miniupnpc:${PORTSDIR}/net/miniupnpc
|
|
|
|
CMAKE_ARGS+= -DUSE_MINIUPNP:BOOL=ON -DLOCAL_MINIUPNP:BOOL=OFF
|
|
|
|
.else
|
|
|
|
CMAKE_ARGS+= -DUSE_MINIUPNP:BOOL=OFF
|
|
|
|
.endif
|
|
|
|
|
2011-11-28 17:30:44 +01:00
|
|
|
post-build:
|
2012-12-21 05:05:15 +01:00
|
|
|
${LOCALBASE}/bin/chrpath -r "${_GCC_RUNTIME}" "${WRKSRC}/${PORTNAME}/${PORTNAME}"
|
2011-11-28 17:30:44 +01:00
|
|
|
|
2013-05-10 18:44:26 +02:00
|
|
|
.include <bsd.port.mk>
|