summaryrefslogtreecommitdiff
path: root/graphics/ncview/patches/patch-ab
blob: 868d1b4ecc0e1977c92c8b96b9ee704bfed2d4b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
$NetBSD: patch-ab,v 1.2 2001/04/06 21:00:34 jtb Exp $

--- Makefile.in.orig	Sat Dec  9 20:27:09 2000
+++ Makefile.in
@@ -8,7 +8,7 @@
 ################################################################
 NETCDFINCDIR = -I@NETCDF_INCDIR@
 NETCDFLIB    = -l@NETCDF_LIBNAME@
-NETCDFLIBDIR = -L@NETCDF_LIBDIR@
+NETCDFLIBDIR = -Wl,-R@NETCDF_LIBDIR@ -L@NETCDF_LIBDIR@
 
 ################################################################
 ## If you DON'T want the udunits support, which will format
@@ -33,7 +33,7 @@
 ## files will be kept and installed.  Comment this line out if
 ## no such directory will be specified.
 #####################################################################
-NCVIEW_LIB_DIR = @prefix@/lib/ncview
+NCVIEW_LIB_DIR = @prefix@/libdata/ncview
 
 ######################################################################
 ## If needed, *add* here the names of any additional include or library 
@@ -133,5 +133,5 @@
 	@echo "Installing manual in directory $(MANDIR)"
 	@echo "--------------------------------------------------------"
 	if test ! -d $(MANDIR); then mkdir -p $(MANDIR); fi; $(INSTALL) $(INSTMANFLAGS) ncview.1 $(MANDIR)/ncview.1
-	/bin/sh ./install-appdef "$(INSTALL) $(INSTMANFLAGS)"
+	if test ! -d @prefix@/lib/X11/app-defaults; then mkdir -p @prefix@/lib/X11/app-defaults; fi; $(INSTALL) $(INSTDATFLAGS) Ncview @prefix@/lib/X11/app-defaults