dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 4bd674a234565d701e9362dc59cbac02c93cdf4f
parent 252aab6f372968e80a80596ca6b4df1cfc8f3425
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Fri,  2 Oct 2020 11:27:14 +0200

add makefile for fetching and building ncview

Diffstat:
A.local/ports/ncview/Makefile | 32++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+), 0 deletions(-)

diff --git a/.local/ports/ncview/Makefile b/.local/ports/ncview/Makefile @@ -0,0 +1,32 @@ +.POSIX: +VERSION = 2.1.7 + +ncview-$(VERSION)/ncview: ncview-$(VERSION)/Makefile + make -C ncview-$(VERSION) + +ncview-$(VERSION)/Makefile: ncview-$(VERSION) + export LD_LIBRARY_PATH=/usr/local/lib:$${LD_LIBRARY_PATH} + if ! test -r ncview-$(VERSION)/configure-bck; then \ + cp ncview-$(VERSION)/configure{,-bck}; fi + cp ncview-$(VERSION)/configure{-bck,} + printf '5828,5829d\ni\necho\n.\nw\nq\n' | ed -s ncview-$(VERSION)/configure + cd ncview-$(VERSION) && ./configure --prefix=/usr/local + touch $@ + +ncview-$(VERSION): ncview-$(VERSION).tar.gz + tar xvfz ncview-$(VERSION).tar.gz + +ncview-$(VERSION).tar.gz: + ftp ftp://cirrus.ucsd.edu/pub/ncview/ncview-2.1.7.tar.gz + +clean: + rm -rf ncview-$(VERSION) + rm -f ncview-$(VERSION).tar.gz + +install: ncview-$(VERSION)/ncview + make -C ncview-$(VERSION) install + +install-deps: + pkg_add udunits + +.PHONY: clean install install-deps