From 2d2c38d69848621f107ef7dee5617a863858dfe5 Mon Sep 17 00:00:00 2001 From: joerg Date: Thu, 4 Feb 2010 14:51:44 +0000 Subject: DESTDIR support --- math/udunits/Makefile | 8 +++++++- math/udunits/distinfo | 4 ++-- math/udunits/patches/patch-aa | 4 ++-- 3 files changed, 11 insertions(+), 5 deletions(-) (limited to 'math/udunits') diff --git a/math/udunits/Makefile b/math/udunits/Makefile index 91f8e603ec4..95e3cca5da5 100644 --- a/math/udunits/Makefile +++ b/math/udunits/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.27 2009/06/30 00:07:20 joerg Exp $ +# $NetBSD: Makefile,v 1.28 2010/02/04 14:56:21 joerg Exp $ DISTNAME= udunits-1.12.1 PKGREVISION= 3 @@ -10,6 +10,7 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://www.unidata.ucar.edu/software/udunits/ COMMENT= Library and program for manipulating units of physical quantities +PKG_DESTDIR_SUPPORT= user-destdir MAKE_JOBS_SAFE= no USE_TOOLS+= perl @@ -25,6 +26,11 @@ PERL5_PACKLIST= auto/UDUNITS/.packlist EGDIR= ${PREFIX}/share/examples/udunits CONF_FILES= ${EGDIR}/udunits.dat ${PKG_SYSCONFDIR}/udunits.dat +INSTALL_MAKE_FLAGS+= MANDIR=${DESTDIR}${PREFIX}/${PKGMANDIR} \ + BINDIR=${DESTDIR}${PREFIX}/bin \ + INCDIR=${DESTDIR}${PREFIX}/include \ + LIBDIR=${DESTDIR}${PREFIX}/lib + post-install: ${RM} -rf ${WRKSRC}/perl/blib/lib diff --git a/math/udunits/distinfo b/math/udunits/distinfo index 2931755fb9b..59cf5090ad8 100644 --- a/math/udunits/distinfo +++ b/math/udunits/distinfo @@ -1,9 +1,9 @@ -$NetBSD: distinfo,v 1.12 2008/09/02 03:11:08 obache Exp $ +$NetBSD: distinfo,v 1.13 2010/02/04 14:56:21 joerg Exp $ SHA1 (udunits-1.12.1.tar.Z) = ee37ca61eb1dcf34165b7573cc1645824bd6968d RMD160 (udunits-1.12.1.tar.Z) = fb2f0442673ca47d302782c84ce37b8da1e16535 Size (udunits-1.12.1.tar.Z) = 365873 bytes -SHA1 (patch-aa) = 0998141196898a7bc168fe45c5019586645167f2 +SHA1 (patch-aa) = 6d98bef47df79538f3ef1fe99c405f854f2e2bda SHA1 (patch-ab) = 9a98e048499d38f8dedba6fb1a169e178dbd77ba SHA1 (patch-ac) = ebcfb1b47b828f12ba11364fda7a2f0b335c6fb5 SHA1 (patch-ad) = d48978bd66d9ef691cd9c70b057a7e5d8a802fb6 diff --git a/math/udunits/patches/patch-aa b/math/udunits/patches/patch-aa index afb64bb9175..f2ceff14128 100644 --- a/math/udunits/patches/patch-aa +++ b/math/udunits/patches/patch-aa @@ -1,4 +1,4 @@ -$NetBSD: patch-aa,v 1.4 2002/12/24 17:21:04 jmmv Exp $ +$NetBSD: patch-aa,v 1.5 2010/02/04 14:56:21 joerg Exp $ --- port/master.mk.in.orig Wed Nov 25 17:26:56 1998 +++ port/master.mk.in @@ -7,7 +7,7 @@ $NetBSD: patch-aa,v 1.4 2002/12/24 17:21:04 jmmv Exp $ # `etc/' files: ############################################################################ -ETCDIR = $(prefix)/etc -+ETCDIR = @datadir@/examples/udunits ++ETCDIR = ${DESTDIR}@datadir@/examples/udunits ETCFILE = dummy-etcfile # to silence GNU make(1) installed_etcfiles: -- cgit v1.2.3