diff options
author | joerg <joerg> | 2010-02-03 22:37:56 +0000 |
---|---|---|
committer | joerg <joerg> | 2010-02-03 22:37:56 +0000 |
commit | 12a58d8ad5b26a232db8342b97a438117a8ea070 (patch) | |
tree | 769a17f3399daa96c8ca9b4efa4fdf5edde39c77 /graphics | |
parent | 800f5e3f8c9b8e4e35e187c252f6cba67ef795e0 (diff) | |
download | pkgsrc-12a58d8ad5b26a232db8342b97a438117a8ea070.tar.gz |
DESTDIR support
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/ncview/Makefile | 7 | ||||
-rw-r--r-- | graphics/ncview/distinfo | 4 | ||||
-rw-r--r-- | graphics/ncview/patches/patch-ab | 10 |
3 files changed, 13 insertions, 8 deletions
diff --git a/graphics/ncview/Makefile b/graphics/ncview/Makefile index 1311356e3c6..468f4fb5c38 100644 --- a/graphics/ncview/Makefile +++ b/graphics/ncview/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.24 2009/08/03 14:49:09 joerg Exp $ +# $NetBSD: Makefile,v 1.25 2010/02/03 22:37:56 joerg Exp $ DISTNAME= ncview-1.92d PKGREVISION= 3 @@ -9,6 +9,7 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://meteora.ucsd.edu/~pierce/ncview_home_page.html COMMENT= Visual browser for netCDF format files +PKG_DESTDIR_SUPPORT= user-destdir MAKE_JOBS_SAFE= no GNU_CONFIGURE= yes @@ -19,6 +20,10 @@ 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 diff --git a/graphics/ncview/distinfo b/graphics/ncview/distinfo index f21066ca52c..56d94236e16 100644 --- a/graphics/ncview/distinfo +++ b/graphics/ncview/distinfo @@ -1,7 +1,7 @@ -$NetBSD: distinfo,v 1.4 2005/02/24 08:45:10 agc Exp $ +$NetBSD: distinfo,v 1.5 2010/02/03 22:37:56 joerg Exp $ SHA1 (ncview-1.92d.tar.gz) = 259b7897dfbd4fa4835c9cc5dcbead5796659458 RMD160 (ncview-1.92d.tar.gz) = 8e5f2e2ac6de9eded47f7d83de9087142588d412 Size (ncview-1.92d.tar.gz) = 833480 bytes SHA1 (patch-aa) = 77ce989232b1a926e7cdfbbbe9e0e22f653bfb23 -SHA1 (patch-ab) = 6dbdfaea8b37ef792571320c38e9113709bcbbd4 +SHA1 (patch-ab) = 1294a99091e6d0aca8f3c13d813905bfb23e14c7 diff --git a/graphics/ncview/patches/patch-ab b/graphics/ncview/patches/patch-ab index 868d1b4ecc0..f9f17549f02 100644 --- a/graphics/ncview/patches/patch-ab +++ b/graphics/ncview/patches/patch-ab @@ -1,6 +1,6 @@ -$NetBSD: patch-ab,v 1.2 2001/04/06 21:00:34 jtb Exp $ +$NetBSD: patch-ab,v 1.3 2010/02/03 22:37:56 joerg Exp $ ---- Makefile.in.orig Sat Dec 9 20:27:09 2000 +--- Makefile.in.orig 2002-06-03 21:03:52.000000000 +0000 +++ Makefile.in @@ -8,7 +8,7 @@ ################################################################ @@ -11,7 +11,7 @@ $NetBSD: patch-ab,v 1.2 2001/04/06 21:00:34 jtb Exp $ ################################################################ ## If you DON'T want the udunits support, which will format -@@ -33,7 +33,7 @@ +@@ -43,7 +43,7 @@ MANDIR = @prefix@/man/man1 ## files will be kept and installed. Comment this line out if ## no such directory will be specified. ##################################################################### @@ -20,10 +20,10 @@ $NetBSD: patch-ab,v 1.2 2001/04/06 21:00:34 jtb Exp $ ###################################################################### ## If needed, *add* here the names of any additional include or library -@@ -133,5 +133,5 @@ +@@ -144,5 +144,5 @@ install:: ncview ncview.1 $(COLORMAPS) N @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 ++ if test ! -d ${DESTDIR}@prefix@/lib/X11/app-defaults; then mkdir -p ${DESTDIR}@prefix@/lib/X11/app-defaults; fi; $(INSTALL) $(INSTDATFLAGS) Ncview ${DESTDIR}@prefix@/lib/X11/app-defaults |