2013-05-06 10:31:29 +02:00
|
|
|
# Created by: Greg Lewis <glewis@FreeBSD.org>
|
2005-04-07 23:48:51 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= grads
|
2009-01-21 06:28:27 +01:00
|
|
|
PORTVERSION= 1.9b4
|
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= 7
|
2005-04-07 23:48:51 +02:00
|
|
|
CATEGORIES= graphics science math
|
|
|
|
MASTER_SITES= ftp://grads.iges.org/grads/1.9/:src \
|
2005-10-06 08:24:32 +02:00
|
|
|
ftp://grads.iges.org/grads/:other
|
2009-01-21 06:28:27 +01:00
|
|
|
DISTFILES= ${PORTNAME}-src-${PORTVERSION}${EXTRACT_SUFX}:src \
|
2005-04-07 23:48:51 +02:00
|
|
|
example.tar.gz:other
|
2009-01-21 06:28:27 +01:00
|
|
|
EXTRACT_ONLY= ${PORTNAME}-src-${PORTVERSION}${EXTRACT_SUFX}
|
2005-04-07 23:48:51 +02:00
|
|
|
|
|
|
|
MAINTAINER= glewis@FreeBSD.org
|
|
|
|
COMMENT= The Grid Analysis and Display System
|
|
|
|
|
2009-11-08 23:48:08 +01:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/lib/libudunits2.a:${PORTSDIR}/science/udunits \
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
${LOCALBASE}/lib/libsx.a:${PORTSDIR}/x11/libsx
|
2013-08-09 16:05:52 +02:00
|
|
|
LIB_DEPENDS= gd:${PORTSDIR}/graphics/gd \
|
|
|
|
jpeg:${PORTSDIR}/graphics/jpeg \
|
2012-06-01 07:26:28 +02:00
|
|
|
png15:${PORTSDIR}/graphics/png
|
2005-04-07 23:48:51 +02:00
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ENV+= SUPPLIBS="${LOCALBASE}"
|
|
|
|
CONFIGURE_ARGS+= --enable-dyn-supplibs \
|
|
|
|
--with-readline \
|
|
|
|
--with-printim \
|
|
|
|
--with-gui \
|
|
|
|
--with-x
|
|
|
|
|
2013-05-06 10:31:29 +02:00
|
|
|
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
|
2005-04-07 23:48:51 +02:00
|
|
|
|
2009-01-21 05:54:57 +01:00
|
|
|
.if !defined(NOPORTDATA)
|
|
|
|
PORTDATA= *
|
|
|
|
.endif
|
|
|
|
|
2013-09-20 20:35:44 +02:00
|
|
|
NO_STAGE= yes
|
2013-05-06 10:31:29 +02:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2009-01-21 05:54:57 +01:00
|
|
|
PORTDOCS= *
|
|
|
|
.endif
|
|
|
|
|
2013-05-06 10:31:29 +02:00
|
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
2009-01-21 05:54:57 +01:00
|
|
|
PORTEXAMPLES= *
|
|
|
|
.endif
|
|
|
|
|
2013-05-06 10:31:29 +02:00
|
|
|
.if ${PORT_OPTIONS:MHDF}
|
2009-01-17 20:24:48 +01:00
|
|
|
LIB_DEPENDS+= mfhdf.3:${PORTSDIR}/science/hdf
|
2005-04-07 23:48:51 +02:00
|
|
|
CONFIGURE_ARGS+= --with-hdf
|
|
|
|
PLIST_SUB+= NETCDF="@comment " HDF=""
|
|
|
|
.endif
|
|
|
|
|
2013-05-06 10:31:29 +02:00
|
|
|
.if ${PORT_OPTIONS:MNETCDF}
|
2011-03-01 07:02:03 +01:00
|
|
|
LIB_DEPENDS+= netcdf:${PORTSDIR}/science/netcdf4
|
2005-04-07 23:48:51 +02:00
|
|
|
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
|
2009-11-09 06:53:48 +01:00
|
|
|
${REINPLACE_CMD} -e "s:ludunits:ludunits2:" ${WRKSRC}/src/Makefile
|
2005-04-07 23:48:51 +02:00
|
|
|
|
|
|
|
post-install:
|
2009-01-21 05:54:57 +01:00
|
|
|
.if !defined(NOPORTDATA)
|
2005-04-07 23:48:51 +02:00
|
|
|
${MKDIR} "${DATADIR}"
|
2009-01-21 05:54:57 +01:00
|
|
|
cd ${WRKSRC}/data && ${COPYTREE_SHARE} . "${DATADIR}"
|
|
|
|
.endif
|
2013-05-06 10:31:29 +02:00
|
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
2005-04-07 23:48:51 +02:00
|
|
|
${MKDIR} "${EXAMPLESDIR}"
|
2009-01-21 05:54:57 +01:00
|
|
|
cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . "${EXAMPLESDIR}"
|
|
|
|
.endif
|
2013-05-06 10:31:29 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2005-04-07 23:48:51 +02:00
|
|
|
${MKDIR} "${DOCSDIR}"
|
2009-01-21 05:54:57 +01:00
|
|
|
cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . "${DOCSDIR}"
|
2005-04-07 23:48:51 +02:00
|
|
|
.endif
|
|
|
|
|
2013-05-06 10:31:29 +02:00
|
|
|
.include <bsd.port.mk>
|