summaryrefslogtreecommitdiff
path: root/news
diff options
context:
space:
mode:
authorobache <obache>2012-04-07 11:47:19 +0000
committerobache <obache>2012-04-07 11:47:19 +0000
commit44215bfa41b8c03212fbe157cd48d340050add5e (patch)
treefe9d630ba5ef5bf9e68a32876310aa80d9f4f88c /news
parent9112ff968e51461a3403ddf42f2ce60c24ea9fb7 (diff)
downloadpkgsrc-44215bfa41b8c03212fbe157cd48d340050add5e.tar.gz
Add user-destdir installation support.
Diffstat (limited to 'news')
-rw-r--r--news/nn/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/news/nn/Makefile b/news/nn/Makefile
index 449e3411c78..1ecd758ca02 100644
--- a/news/nn/Makefile
+++ b/news/nn/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.37 2010/03/13 05:05:51 obache Exp $
+# $NetBSD: Makefile,v 1.38 2012/04/07 11:47:19 obache Exp $
DISTNAME= nn-6.7.3
CATEGORIES= news
@@ -9,6 +9,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.nndev.org/
COMMENT= NN newsreader
+PKG_DESTDIR_SUPPORT= user-destdir
+
PKG_SYSCONFSUBDIR= nntp
.include "../../mk/bsd.prefs.mk"
@@ -54,4 +56,10 @@ post-patch:
@${CP} ${FILESDIR}/m-x86_64.h ${WRKSRC}/conf/m-x86_64.h
@${CP} ${WRKSRC}/conf/m-m680x0.h ${WRKSRC}/conf/m-m68k.h
+SUBST_CLASSES+= fix-dest
+SUBST_STAGE.fix-dest= post-build
+SUBST_SED.fix-dest= -e 's,${PREFIX},${DESTDIR}${PREFIX},'
+SUBST_FILES.fix-dest= inst
+
+
.include "../../mk/bsd.pkg.mk"