summaryrefslogtreecommitdiff
path: root/graphics/ncview/Makefile
diff options
context:
space:
mode:
authorbrook <brook@pkgsrc.org>2020-08-08 22:18:27 +0000
committerbrook <brook@pkgsrc.org>2020-08-08 22:18:27 +0000
commitb4fedc63b7d87dd3b45d4daffbd23840b6d32bfd (patch)
treeaf387639add0669f76805a921e0a3f317f614a31 /graphics/ncview/Makefile
parent3facacc54708ce32733578d4d59d5aa7c54ab6c1 (diff)
downloadpkgsrc-b4fedc63b7d87dd3b45d4daffbd23840b6d32bfd.tar.gz
graphics/ncview: update to 2.1.7.
2.0: 21 Jan 2010 * ncview now REQUIRES netcdf version 4 with full HDF5 support. I am not going to maintain two code bases, one of which supports netcdf-4 and one of which doesn't. If you need a vesion of ncview that works even without a full netcdf v4/HDF-5 install, use ncview version 1.93h. * If a udunits library is supplied, ncview now requires that it be the udunits-2 library. Support for the udunits-1 library has been dropped. * Many thanks to Magnus Hagdorn for changes to the package that make it more compatible with GNU standards! All failures in that respect are mine; Magnus' contributions were exemplary. 1.93d: 13 June 2008 * Thanks to Seth Olsen for contributing the code to sort the variables menus.
Diffstat (limited to 'graphics/ncview/Makefile')
-rw-r--r--graphics/ncview/Makefile53
1 files changed, 32 insertions, 21 deletions
diff --git a/graphics/ncview/Makefile b/graphics/ncview/Makefile
index d67d7325a5b..7484ccacd17 100644
--- a/graphics/ncview/Makefile
+++ b/graphics/ncview/Makefile
@@ -1,33 +1,44 @@
-# $NetBSD: Makefile,v 1.48 2020/05/22 10:56:12 adam Exp $
+# $NetBSD: Makefile,v 1.49 2020/08/08 22:18:27 brook Exp $
-DISTNAME= ncview-1.92d
-PKGREVISION= 23
-CATEGORIES= graphics
-MASTER_SITES= ftp://cirrus.ucsd.edu/pub/ncview/
+DISTNAME= ncview-2.1.7
+CATEGORIES= graphics
+MASTER_SITES= ftp://cirrus.ucsd.edu/pub/ncview/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://meteora.ucsd.edu/~pierce/ncview_home_page.html
COMMENT= Visual browser for netCDF format files
-
-MAKE_JOBS_SAFE= no
+LICENSE= gnu-gpl-v3
GNU_CONFIGURE= yes
-
-CONFIGURE_ARGS+= --with-netcdf_incdir=${BUILDLINK_PREFIX.netcdf}/include
-CONFIGURE_ARGS+= --with-netcdf_libdir=${BUILDLINK_PREFIX.netcdf}/lib
-CONFIGURE_ARGS+= --with-udunits_incdir=${BUILDLINK_PREFIX.udunits}/include
-CONFIGURE_ARGS+= --with-udunits_libdir=${BUILDLINK_PREFIX.udunits}/lib
-
-INSTALL_MAKE_FLAGS+= BINDIR=${DESTDIR}${PREFIX}/bin \
- MANDIR=${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 \
- NCVIEW_LIB_DIR=${DESTDIR}${PREFIX}/libdata/ncview
-
-.if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "arm32"
-GCC_REQD+= 2.95.3
-.endif
-
+USE_TOOLS= pkg-config
+
+CONFIGURE_ARGS+= --with-udunits2_incdir=${BUILDLINK_PREFIX.udunits}/include
+CONFIGURE_ARGS+= --with-udunits2_libdir=${BUILDLINK_PREFIX.udunits}/lib
+
+INSTALLATION_DIRS+= bin lib/X11/app-defaults libdata/ncview ${PKGMANDIR}/man1
+
+NCMAP_FILES+= 3gauss.ncmap
+NCMAP_FILES+= 3saw.ncmap
+NCMAP_FILES+= bw.ncmap
+NCMAP_FILES+= default.ncmap
+NCMAP_FILES+= detail.ncmap
+NCMAP_FILES+= hotres.ncmap
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/ncview ${DESTDIR}${PREFIX}/bin/ncview
+ ${INSTALL_DATA} ${WRKSRC}/Ncview-appdefaults ${DESTDIR}${PREFIX}/lib/X11/app-defaults/Ncview
+ ${INSTALL_DATA} ${WRKSRC}/data/SciPlot.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/SciPlot.1
+ ${INSTALL_DATA} ${WRKSRC}/data/ncview.1.sed ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/ncview.1
+.for f in ${NCMAP_FILES}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/libdata/ncview/${f}
+.endfor
+
+.include "../../devel/hdf5/buildlink3.mk"
.include "../../devel/netcdf/buildlink3.mk"
+.include "../../devel/netcdf-fortran/buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
.include "../../math/udunits/buildlink3.mk"
.include "../../mk/xaw.buildlink3.mk"
+.include "../../textproc/expat/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"