From 03991f0bd4f3bbf2ba914cffbc26f5fe3a1262e5 Mon Sep 17 00:00:00 2001 From: Greg Lewis Date: Thu, 7 Apr 2005 21:48:51 +0000 Subject: . Add a port of GrADS: The Grid Analysis and Display System (GrADS) is an interactive desktop tool that is used for easy access, manipulation, and visualization of earth science data. The format of the data may be either binary, GRIB, NetCDF, or HDF-SDS (Scientific Data Sets). GrADS has been implemented worldwide on a variety of commonly used operating systems and is freely distributed over the Internet. --- graphics/grads/Makefile | 73 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 graphics/grads/Makefile (limited to 'graphics/grads/Makefile') diff --git a/graphics/grads/Makefile b/graphics/grads/Makefile new file mode 100644 index 000000000000..f966a0bfaa76 --- /dev/null +++ b/graphics/grads/Makefile @@ -0,0 +1,73 @@ +# New ports collection makefile for: GrADS +# Date created: 25 October 2002 +# Whom: Greg Lewis +# +# $FreeBSD$ +# + +PORTNAME= grads +PORTVERSION= 1.9b3 +CATEGORIES= graphics science math +MASTER_SITES= ftp://grads.iges.org/grads/1.9/:src \ + ftp://grads.iges.org/grads/:other \ +DISTNAME= ${PORTNAME}-${PORTVERSION} +DISTFILES= ${DISTNAME}-src${EXTRACT_SUFX}:src \ + example.tar.gz:other +EXTRACT_ONLY= ${DISTNAME}-src${EXTRACT_SUFX} + +MAINTAINER= glewis@FreeBSD.org +COMMENT= The Grid Analysis and Display System + +BUILD_DEPENDS= ${LOCALBASE}/lib/libudunits.a:${PORTSDIR}/science/udunits \ + ${X11BASE}/lib/libsx.a:${PORTSDIR}/x11-toolkits/libsx +LIB_DEPENDS= gd.4:${PORTSDIR}/graphics/gd \ + jpeg.9:${PORTSDIR}/graphics/jpeg \ + png.5:${PORTSDIR}/graphics/png + +USE_REINPLACE= yes +GNU_CONFIGURE= yes +CONFIGURE_ENV+= SUPPLIBS="${LOCALBASE}" +CONFIGURE_ARGS+= --enable-dyn-supplibs \ + --with-readline \ + --with-printim \ + --with-gui \ + --with-x + +OPTIONS= HDF "Build hdf-support (only hdf OR netcdf is supported)" on \ + NETCDF "Build netcdf-support" off + +.include + +.if defined(WITH_HDF) +LIB_DEPENDS+= mfhdf.2:${PORTSDIR}/science/hdf +CONFIGURE_ARGS+= --with-hdf +PLIST_SUB+= NETCDF="@comment " HDF="" +.endif + +.if defined(WITH_NETCDF) +LIB_DEPENDS+= netcdf.1:${PORTSDIR}/math/netcdf +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 + +post-install: + ${MKDIR} "${DATADIR}" + cd ${WRKSRC}/data && ${FIND} . \ + | ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} "${DATADIR}" + ${MKDIR} "${EXAMPLESDIR}" + cd ${WRKSRC}/examples && ${FIND} . \ + | ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} "${EXAMPLESDIR}" +.if !defined(NOPORTDOCS) + ${MKDIR} "${DOCSDIR}" + cd ${WRKSRC}/doc && ${FIND} . \ + | ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} "${DOCSDIR}" +.endif + +.include -- cgit v1.2.3