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)
85 lines
2.1 KiB
Makefile
85 lines
2.1 KiB
Makefile
# Created by: Greg Lewis <glewis@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= grads
|
|
PORTVERSION= 1.9b4
|
|
PORTREVISION= 7
|
|
CATEGORIES= graphics science math
|
|
MASTER_SITES= ftp://grads.iges.org/grads/1.9/:src \
|
|
ftp://grads.iges.org/grads/:other
|
|
DISTFILES= ${PORTNAME}-src-${PORTVERSION}${EXTRACT_SUFX}:src \
|
|
example.tar.gz:other
|
|
EXTRACT_ONLY= ${PORTNAME}-src-${PORTVERSION}${EXTRACT_SUFX}
|
|
|
|
MAINTAINER= glewis@FreeBSD.org
|
|
COMMENT= The Grid Analysis and Display System
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/lib/libudunits2.a:${PORTSDIR}/science/udunits \
|
|
${LOCALBASE}/lib/libsx.a:${PORTSDIR}/x11/libsx
|
|
LIB_DEPENDS= gd:${PORTSDIR}/graphics/gd \
|
|
jpeg:${PORTSDIR}/graphics/jpeg \
|
|
png15:${PORTSDIR}/graphics/png
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ENV+= SUPPLIBS="${LOCALBASE}"
|
|
CONFIGURE_ARGS+= --enable-dyn-supplibs \
|
|
--with-readline \
|
|
--with-printim \
|
|
--with-gui \
|
|
--with-x
|
|
|
|
OPTIONS_DEFINE= HDF NETCDF DOCS EXAMPLES
|
|
OPTIONS_DEFAULT= HDF
|
|
HDF_DESC= Build hdf-support (only hdf OR netcdf is supported)
|
|
NETCDF_DESC= Build netcdf-support
|
|
|
|
.if !defined(NOPORTDATA)
|
|
PORTDATA= *
|
|
.endif
|
|
|
|
NO_STAGE= yes
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
PORTDOCS= *
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
|
PORTEXAMPLES= *
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MHDF}
|
|
LIB_DEPENDS+= mfhdf.3:${PORTSDIR}/science/hdf
|
|
CONFIGURE_ARGS+= --with-hdf
|
|
PLIST_SUB+= NETCDF="@comment " HDF=""
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MNETCDF}
|
|
LIB_DEPENDS+= netcdf:${PORTSDIR}/science/netcdf4
|
|
CONFIGURE_ARGS+= --with-nc
|
|
PLIST_SUB+= NETCDF="" HDF="@comment "
|
|
.endif
|
|
|
|
post-extract:
|
|
${MKDIR} "${WRKSRC}/examples"
|
|
cd "${WRKSRC}/examples" && ${TAR} -xzf "${DISTDIR}/example.tar.gz"
|
|
|
|
post-configure:
|
|
${REINPLACE_CMD} -e "s:%%DATADIR%%:${DATADIR}:" ${WRKSRC}/src/gx.h
|
|
${REINPLACE_CMD} -e "s:ludunits:ludunits2:" ${WRKSRC}/src/Makefile
|
|
|
|
post-install:
|
|
.if !defined(NOPORTDATA)
|
|
${MKDIR} "${DATADIR}"
|
|
cd ${WRKSRC}/data && ${COPYTREE_SHARE} . "${DATADIR}"
|
|
.endif
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
|
${MKDIR} "${EXAMPLESDIR}"
|
|
cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . "${EXAMPLESDIR}"
|
|
.endif
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
${MKDIR} "${DOCSDIR}"
|
|
cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . "${DOCSDIR}"
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|