summaryrefslogtreecommitdiff
path: root/news/nget
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2010-02-11 22:57:40 +0000
committerjoerg <joerg@pkgsrc.org>2010-02-11 22:57:40 +0000
commit87c133631b21887f418a36348facdb0db22b7e62 (patch)
tree892f24338b971c99ecdc3db1d871d95d58c28c61 /news/nget
parent5ed11b372cb33923cdbc2835d3949451b69209e7 (diff)
downloadpkgsrc-87c133631b21887f418a36348facdb0db22b7e62.tar.gz
DESTDIR support
Diffstat (limited to 'news/nget')
-rw-r--r--news/nget/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/news/nget/Makefile b/news/nget/Makefile
index 90712bdd300..05242557c46 100644
--- a/news/nget/Makefile
+++ b/news/nget/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2006/02/05 23:10:33 joerg Exp $
+# $NetBSD: Makefile,v 1.8 2010/02/11 23:30:22 joerg Exp $
#
DISTNAME= nget-0.27.1
@@ -10,6 +10,8 @@ MAINTAINER= joel@carnat.net
HOMEPAGE= http://nget.sourceforge.net/
COMMENT= Command line nntp file grabber
+PKG_DESTDIR_SUPPORT= user-destdir
+
USE_PKGLOCALEDIR= yes
GNU_CONFIGURE= yes
USE_TOOLS+= gmake
@@ -22,11 +24,13 @@ EGDIR= ${PREFIX}/share/examples/nget
MESSAGE_SUBST+= EGDIR=${EGDIR}
INSTALLATION_DIRS= share/nget share/examples/nget
+INSTALL_MAKE_FLAGS+= prefix=${DESTDIR}${PREFIX} \
+ mandir=${DESTDIR}${PREFIX}/${PKGMANDIR}
post-install:
for f in COPYING Changelog FAQ README TODO; do \
- ${INSTALL_DATA} ${WRKSRC}/$${f} ${PREFIX}/share/nget; done
- ${INSTALL_DATA} ${WRKSRC}/.ngetrc ${EGDIR}/dot.ngetrc
+ ${INSTALL_DATA} ${WRKSRC}/$${f} ${DESTDIR}${PREFIX}/share/nget; done
+ ${INSTALL_DATA} ${WRKSRC}/.ngetrc ${DESTDIR}${EGDIR}/dot.ngetrc
.include "../../converters/uulib/buildlink3.mk"
.include "../../devel/pcre/buildlink3.mk"