summaryrefslogtreecommitdiff
path: root/mail/t-prot
diff options
context:
space:
mode:
authorjlam <jlam>2008-03-04 17:57:17 +0000
committerjlam <jlam>2008-03-04 17:57:17 +0000
commit227db4fd65c1798f1f06219f896b8a2add93ce0c (patch)
treeea772f1017a149bdf8c86107c24d16246695614e /mail/t-prot
parent47512d21954e6312a4cd43b04b4c2594596e697b (diff)
downloadpkgsrc-227db4fd65c1798f1f06219f896b8a2add93ce0c.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')
-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"