mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
3be3e90f93
- 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)
75 lines
2.1 KiB
Makefile
75 lines
2.1 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= swt
|
|
PORTVERSION= 0.1.11
|
|
PORTREVISION= 2
|
|
CATEGORIES= math
|
|
MASTER_SITES= http://atoms.scilab.org/toolboxes/swt/${PORTVERSION}/files/
|
|
PKGNAMEPREFIX= scilab-toolbox-
|
|
DISTFILES= ${DISTNAME}-1-src${EXTRACT_SUFX}
|
|
|
|
MAINTAINER= makc@FreeBSD.org
|
|
COMMENT= Scilab 1-D and 2-D Wavelet Toolbox
|
|
|
|
BUILD_DEPENDS= ${SCILAB_CMD}:${PORTSDIR}/math/scilab
|
|
RUN_DEPENDS:= ${BUILD_DEPENDS}
|
|
|
|
SCILAB_CMD= ${LOCALBASE}/bin/scilab
|
|
CONTRIBDIR?= share/scilab/contrib
|
|
TOOLBOXDIR_REL?= ${CONTRIBDIR}/${PORTNAME}
|
|
TOOLBOXDIR= ${PREFIX}/${TOOLBOXDIR_REL}
|
|
PLIST_SUB= TOOLBOXDIR=${TOOLBOXDIR_REL}
|
|
TOOLBOX_SUBDIRS= demos etc macros
|
|
|
|
OPTIONS_DEFINE= HELP SIVP
|
|
OPTIONS_DEFAULT= HELP
|
|
|
|
HELP_DESC= Build help files (requires scilab with gui support)
|
|
SIVP_DESC= Enable Image and Video support
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MSIVP}
|
|
RUN_DEPENDS+= ${LOCALBASE}/${CONTRIBDIR}/sivp/loader.sce:${PORTSDIR}/math/scilab-toolbox-sivp
|
|
.endif
|
|
|
|
.if !${PORT_OPTIONS:MHELP}
|
|
SCILAB_ARGS= -nogui
|
|
PLIST_SUB+= HELP="@comment "
|
|
EXTRA_PATCHES+= ${FILESDIR}/extrapatch-etc__swt.start
|
|
.else
|
|
USES+= display:build
|
|
MAKE_ENV= LC_ALL="C"
|
|
PLIST_SUB+= HELP=""
|
|
TOOLBOX_SUBDIRS+= jar
|
|
.endif
|
|
|
|
post-patch:
|
|
.if !${PORT_OPTIONS:MHELP}
|
|
${REINPLACE_CMD} -e '/tbx_builder_help/d' ${WRKSRC}/builder.sce
|
|
.endif
|
|
${REINPLACE_CMD} -e "s,SWTDIR+','${TOOLBOXDIR}/demos," \
|
|
${WRKSRC}/demos/image.sce
|
|
${ECHO_CMD} quit >> ${WRKSRC}/builder.sce
|
|
|
|
pre-build:
|
|
${FIND} -d ${WRKSRC} \( -name '*.orig' -or -name '*.bak' \) -delete
|
|
|
|
do-build:
|
|
cd ${WRKSRC} && \
|
|
${SETENV} ${MAKE_ENV} ${SCILAB_CMD} ${SCILAB_ARGS} -f builder.sce
|
|
|
|
do-install:
|
|
${MKDIR} ${STAGEDIR}${TOOLBOXDIR}/sci_gateway/c
|
|
${INSTALL_DATA} ${WRKSRC}/loader.sce ${STAGEDIR}${TOOLBOXDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/sci_gateway/loader_gateway.sce \
|
|
${STAGEDIR}${TOOLBOXDIR}/sci_gateway
|
|
cd ${WRKSRC}/sci_gateway/c && \
|
|
${INSTALL_DATA} loader.sce ${STAGEDIR}${TOOLBOXDIR}/sci_gateway/c && \
|
|
${INSTALL_PROGRAM} libswt_c.so ${STAGEDIR}${TOOLBOXDIR}/sci_gateway/c
|
|
.for d in ${TOOLBOX_SUBDIRS}
|
|
cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${TOOLBOXDIR}
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|