summaryrefslogtreecommitdiff
path: root/mail/t-prot/Makefile
diff options
context:
space:
mode:
authorjlam <jlam>2008-03-04 17:57:17 +0000
committerjlam <jlam>2008-03-04 17:57:17 +0000
commitbdd0c18aec7b66f61e3330e8817dc56f3935ec5e (patch)
treeea772f1017a149bdf8c86107c24d16246695614e /mail/t-prot/Makefile
parent3fb238c0b22ac51fd38f31b091b73ec6488f8dd9 (diff)
downloadpkgsrc-bdd0c18aec7b66f61e3330e8817dc56f3935ec5e.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'mail/t-prot/Makefile')
-rw-r--r--mail/t-prot/Makefile14
1 files changed, 9 insertions, 5 deletions
diff --git a/mail/t-prot/Makefile b/mail/t-prot/Makefile
index 908461e657f..9cfdc02d0e0 100644
--- a/mail/t-prot/Makefile
+++ b/mail/t-prot/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2007/10/27 12:39:58 wiz Exp $
+# $NetBSD: Makefile,v 1.3 2008/03/04 17:57:20 jlam Exp $
#
DISTNAME= t-prot-2.5
@@ -11,14 +11,18 @@ COMMENT= TOFU enhancement to mutt for condensing quoted text
DEPENDS+= p5-Getopt-Mixed>=1.10:../../devel/p5-Getopt-Mixed
+PKG_DESTDIR_SUPPORT= user-destdir
+
REPLACE_PERL+= t-prot
do-configure do-build:
do-install:
- ${INSTALL_SCRIPT} ${WRKSRC}/t-prot ${PREFIX}/bin/t-prot
- ${INSTALL_MAN} ${WRKSRC}/t-prot.1 ${PREFIX}/${PKGMANDIR}/man1/t-prot.1
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/t-prot
- ${INSTALL_DATA} ${WRKSRC}/contrib/muttrc.t-prot ${PREFIX}/share/doc/t-prot/
+ ${INSTALL_SCRIPT} ${WRKSRC}/t-prot ${DESTDIR}${PREFIX}/bin/t-prot
+ ${INSTALL_MAN} ${WRKSRC}/t-prot.1 \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/t-prot.1
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/t-prot
+ ${INSTALL_DATA} ${WRKSRC}/contrib/muttrc.t-prot \
+ ${DESTDIR}${PREFIX}/share/doc/t-prot/
.include "../../mk/bsd.pkg.mk"