summaryrefslogtreecommitdiff
path: root/mail/fromto
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/fromto
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/fromto')
-rw-r--r--mail/fromto/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/mail/fromto/Makefile b/mail/fromto/Makefile
index 541aa95e3ef..381a8798759 100644
--- a/mail/fromto/Makefile
+++ b/mail/fromto/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2007/10/31 21:47:51 gdt Exp $
+# $NetBSD: Makefile,v 1.12 2008/03/04 17:57:18 jlam Exp $
#
DISTNAME= fromto-1.5
@@ -14,6 +14,8 @@ RESTRICTED= Redistribution allowed for non-commercial purposes only
NO_SRC_ON_CDROM= ${RESTRICTED}
NO_BIN_ON_CDROM= ${RESTRICTED}
+PKG_DESTDIR_SUPPORT= user-destdir
+
WRKSRC= ${WRKDIR}
USE_TOOLS+= perl:run
@@ -27,6 +29,6 @@ do-build:
(cd ${WRKSRC} ; ${SED} -e "1s,/usr/local,${PREFIX}," fromto.in >fromto)
do-install:
- ${INSTALL_SCRIPT} ${WRKSRC}/fromto ${PREFIX}/bin
+ ${INSTALL_SCRIPT} ${WRKSRC}/fromto ${DESTDIR}${PREFIX}/bin
.include "../../mk/bsd.pkg.mk"