2012-09-22 21:15:50 +00:00
|
|
|
# Created by: Alexander Lunkov <lunkov@gmail.com>
|
2011-12-25 19:25:29 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= cas
|
2013-02-21 17:46:02 +00:00
|
|
|
PORTVERSION= 3.5.6
|
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= 3
|
2011-12-25 19:25:29 +00:00
|
|
|
CATEGORIES= www devel
|
|
|
|
MASTER_SITES= http://cas.havoc.ru/download/
|
|
|
|
|
|
|
|
MAINTAINER= lunkov@gmail.com
|
|
|
|
COMMENT= C++ Application Server, version 2
|
|
|
|
|
|
|
|
LIB_DEPENDS= expat:${PORTSDIR}/textproc/expat2 \
|
|
|
|
pcre:${PORTSDIR}/devel/pcre \
|
|
|
|
ctpp2:${PORTSDIR}/textproc/ctpp2
|
|
|
|
|
2013-04-27 18:25:24 +00:00
|
|
|
USES= cmake iconv
|
2011-12-25 19:25:29 +00:00
|
|
|
USE_LDCONFIG= yes
|
|
|
|
|
2013-02-21 17:46:02 +00:00
|
|
|
OPTIONS_DEFINE= DEBUG_MODE \
|
|
|
|
ENABLE_OPTIMIZATION \
|
|
|
|
BUILD_APACHE2X_MODULE \
|
2012-09-22 21:15:50 +00:00
|
|
|
BUILD_CURL_XMLRPC_CLIENT \
|
2013-02-21 17:46:02 +00:00
|
|
|
INSTALL_EXAMPLE_MODULES \
|
|
|
|
INSTALL_CAS_LIBRARY \
|
|
|
|
INSTALL_CAS_MODULES \
|
|
|
|
INSTALL_CAS_HEADERS \
|
|
|
|
INSTALL_CAS_CONFIGS \
|
|
|
|
INSTALL_CAS_BINARIES \
|
2012-09-22 21:15:50 +00:00
|
|
|
INSTALL_CAS_DATA
|
|
|
|
|
2013-02-21 17:46:02 +00:00
|
|
|
OPTIONS_DEFAULT=ENABLE_OPTIMIZATION \
|
|
|
|
BUILD_APACHE2X_MODULE \
|
2012-09-22 21:15:50 +00:00
|
|
|
BUILD_CURL_XMLRPC_CLIENT \
|
2013-02-21 17:46:02 +00:00
|
|
|
INSTALL_CAS_LIBRARY \
|
|
|
|
INSTALL_CAS_MODULES \
|
|
|
|
INSTALL_CAS_HEADERS \
|
|
|
|
INSTALL_CAS_CONFIGS \
|
|
|
|
INSTALL_CAS_BINARIES \
|
2012-09-22 21:15:50 +00:00
|
|
|
INSTALL_CAS_DATA
|
|
|
|
|
|
|
|
DEBUG_MODE_DESC= Enable debug output
|
|
|
|
ENABLE_OPTIMIZATION_DESC= Enable optimization
|
|
|
|
BUILD_APACHE2X_MODULE_DESC= Build Apache 2.x module
|
|
|
|
BUILD_CURL_XMLRPC_CLIENT_DESC= Build cURL-based XMLRPC client
|
|
|
|
INSTALL_EXAMPLE_MODULES_DESC= Install example modules
|
|
|
|
INSTALL_CAS_LIBRARY_DESC= Install CAS library (libcas)
|
|
|
|
INSTALL_CAS_MODULES_DESC= Install CAS modules
|
|
|
|
INSTALL_CAS_HEADERS_DESC= Install CAS headers
|
|
|
|
INSTALL_CAS_CONFIGS_DESC= Install CAS configuration files
|
|
|
|
INSTALL_CAS_BINARIES_DESC= Install CAS binaries
|
|
|
|
INSTALL_CAS_DATA_DESC= Install CAS data files
|
2011-12-25 19:25:29 +00:00
|
|
|
|
|
|
|
PLIST_SUB+= PORTVERSION=${PORTVERSION}
|
|
|
|
|
2013-09-20 23:36:50 +00:00
|
|
|
NO_STAGE= yes
|
2011-12-25 19:25:29 +00:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2012-09-22 21:15:50 +00:00
|
|
|
.if ${PORT_OPTIONS:MDEBUG_MODE}
|
2011-12-25 19:25:29 +00:00
|
|
|
CMAKE_ARGS+= -DDEBUG_MODE=ON
|
|
|
|
.else
|
|
|
|
CMAKE_ARGS+= -DDEBUG_MODE=OFF
|
|
|
|
.endif
|
|
|
|
|
2012-09-22 21:15:50 +00:00
|
|
|
.if ${PORT_OPTIONS:MENABLE_OPTIMIZATION}
|
2011-12-25 19:25:29 +00:00
|
|
|
CMAKE_ARGS+= -DENABLE_OPTIMIZATION=ON
|
|
|
|
.else
|
|
|
|
CMAKE_ARGS+= -DENABLE_OPTIMIZATION=OFF
|
|
|
|
.endif
|
|
|
|
|
|
|
|
CMAKE_ARGS+= -DBUILD_APACHE13_MODULE=OFF
|
|
|
|
|
2012-09-22 21:15:50 +00:00
|
|
|
.if ${PORT_OPTIONS:MBUILD_APACHE2X_MODULE}
|
|
|
|
USE_APACHE= 22
|
2011-12-25 19:25:29 +00:00
|
|
|
CMAKE_ARGS+= -DBUILD_APACHE2X_MODULE=ON
|
|
|
|
PLIST_SUB+= APACHE2X_MODULE=""
|
|
|
|
.else
|
|
|
|
CMAKE_ARGS+= -DBUILD_APACHE2X_MODULE=OFF
|
|
|
|
PLIST_SUB+= APACHE2X_MODULE="@comment "
|
|
|
|
.endif
|
|
|
|
|
2012-09-22 21:15:50 +00:00
|
|
|
.if ${PORT_OPTIONS:MBUILD_CURL_XMLRPC_CLIENT}
|
2011-12-25 19:25:29 +00:00
|
|
|
LIB_DEPENDS+= curl:${PORTSDIR}/ftp/curl
|
|
|
|
CMAKE_ARGS+= -DBUILD_CURL_XMLRPC_CLIENT=ON
|
|
|
|
PLIST_SUB+= CURL_XMLRPC_CLIENT=""
|
|
|
|
.else
|
|
|
|
CMAKE_ARGS+= -DBUILD_CURL_XMLRPC_CLIENT=OFF
|
|
|
|
PLIST_SUB+= CURL_XMLRPC_CLIENT="@comment "
|
|
|
|
.endif
|
|
|
|
|
2012-09-22 21:15:50 +00:00
|
|
|
.if ${PORT_OPTIONS:MINSTALL_EXAMPLE_MODULES}
|
2011-12-25 19:25:29 +00:00
|
|
|
CMAKE_ARGS+= -DINSTALL_EXAMPLE_MODULES=ON
|
|
|
|
PLIST_SUB+= EXAMPLE_MODULES=""
|
|
|
|
.else
|
|
|
|
CMAKE_ARGS+= -DINSTALL_EXAMPLE_MODULES=OFF
|
|
|
|
PLIST_SUB+= EXAMPLE_MODULES="@comment "
|
|
|
|
.endif
|
|
|
|
|
2012-09-22 21:15:50 +00:00
|
|
|
.if ${PORT_OPTIONS:MINSTALL_CAS_LIBRARY}
|
2011-12-25 19:25:29 +00:00
|
|
|
CMAKE_ARGS+= -DINSTALL_CAS_LIBRARY=ON
|
|
|
|
PLIST_SUB+= CAS_LIBRARY=""
|
|
|
|
.else
|
|
|
|
CMAKE_ARGS+= -DINSTALL_CAS_LIBRARY=OFF
|
|
|
|
PLIST_SUB+= CAS_LIBRARY="@comment "
|
|
|
|
.endif
|
|
|
|
|
2012-09-22 21:15:50 +00:00
|
|
|
.if ${PORT_OPTIONS:MINSTALL_CAS_MODULES}
|
2011-12-25 19:25:29 +00:00
|
|
|
CMAKE_ARGS+= -DINSTALL_CAS_MODULES=ON
|
|
|
|
PLIST_SUB+= CAS_MODULES=""
|
|
|
|
.else
|
|
|
|
CMAKE_ARGS+= -DINSTALL_CAS_MODULES=OFF
|
|
|
|
PLIST_SUB+= CAS_MODULES="@comment "
|
|
|
|
.endif
|
|
|
|
|
2012-09-22 21:15:50 +00:00
|
|
|
.if ${PORT_OPTIONS:MINSTALL_CAS_HEADERS}
|
2011-12-25 19:25:29 +00:00
|
|
|
CMAKE_ARGS+= -DINSTALL_CAS_HEADERS=ON
|
|
|
|
PLIST_SUB+= CAS_HEADERS=""
|
|
|
|
.else
|
|
|
|
CMAKE_ARGS+= -DINSTALL_CAS_HEADERS=OFF
|
|
|
|
PLIST_SUB+= CAS_HEADERS="@comment "
|
|
|
|
.endif
|
|
|
|
|
2012-09-22 21:15:50 +00:00
|
|
|
.if ${PORT_OPTIONS:MINSTALL_CAS_CONFIGS}
|
2011-12-25 19:25:29 +00:00
|
|
|
CMAKE_ARGS+= -DINSTALL_CAS_CONFIGS=ON
|
|
|
|
PLIST_SUB+= CAS_CONFIGS=""
|
|
|
|
.else
|
|
|
|
CMAKE_ARGS+= -DINSTALL_CAS_CONFIGS=OFF
|
|
|
|
PLIST_SUB+= CAS_CONFIGS="@comment "
|
|
|
|
.endif
|
|
|
|
|
2012-09-22 21:15:50 +00:00
|
|
|
.if ${PORT_OPTIONS:MINSTALL_CAS_BINARIES}
|
2011-12-25 19:25:29 +00:00
|
|
|
CMAKE_ARGS+= -DINSTALL_CAS_BINARIES=ON
|
|
|
|
PLIST_SUB+= CAS_BINARIES=""
|
|
|
|
.else
|
|
|
|
CMAKE_ARGS+= -DINSTALL_CAS_BINARIES=OFF
|
|
|
|
PLIST_SUB+= CAS_BINARIES="@comment "
|
|
|
|
.endif
|
|
|
|
|
2012-09-22 21:15:50 +00:00
|
|
|
.if ${PORT_OPTIONS:MINSTALL_CAS_DATA}
|
2011-12-25 19:25:29 +00:00
|
|
|
CMAKE_ARGS+= -DINSTALL_CAS_DATA=ON
|
|
|
|
PLIST_SUB+= CAS_DATA=""
|
|
|
|
.else
|
|
|
|
CMAKE_ARGS+= -DINSTALL_CAS_DATA=OFF
|
|
|
|
PLIST_SUB+= CAS_DATA="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|