summaryrefslogtreecommitdiff
path: root/mail/mailsync
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-03-04 17:57:17 +0000
committerjlam <jlam@pkgsrc.org>2008-03-04 17:57:17 +0000
commita80fd13efc426f96e55870df48a2030daea0f14b (patch)
treeea772f1017a149bdf8c86107c24d16246695614e /mail/mailsync
parent31c6c3a796edf9dd9bae5586339c5e2e023ca408 (diff)
downloadpkgsrc-a80fd13efc426f96e55870df48a2030daea0f14b.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'mail/mailsync')
-rw-r--r--mail/mailsync/Makefile17
1 files changed, 10 insertions, 7 deletions
diff --git a/mail/mailsync/Makefile b/mail/mailsync/Makefile
index 2d1c7e01e2a..282427f2474 100644
--- a/mail/mailsync/Makefile
+++ b/mail/mailsync/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.28 2008/01/18 05:08:26 tnn Exp $
+# $NetBSD: Makefile,v 1.29 2008/03/04 17:57:18 jlam Exp $
#
DISTNAME= mailsync_5.2.1.orig
@@ -11,6 +11,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://mailsync.sourceforge.net/
COMMENT= Mailsync is a way of synchronizing a collection of mailboxes
+PKG_DESTDIR_SUPPORT= user-destdir
+
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
USE_TOOLS+= gmake
USE_LANGUAGES= c c++
@@ -33,14 +35,15 @@ DOCS= COPYING NEWS README THANKS TODO doc/ABSTRACT doc/HACKING
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
do-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/mailsync
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mailsync
- ${INSTALL_PROGRAM} ${WRKSRC}/src/mailsync ${PREFIX}/bin
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/mailsync
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/mailsync
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/mailsync ${DESTDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/doc/examples/mailsync \
- ${PREFIX}/share/examples/mailsync/dot.mailsync
- ${INSTALL_MAN} ${WRKSRC}/doc/mailsync.1 ${PREFIX}/${PKGMANDIR}/man1
+ ${DESTDIR}${PREFIX}/share/examples/mailsync/dot.mailsync
+ ${INSTALL_MAN} ${WRKSRC}/doc/mailsync.1 \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
.for d in ${DOCS}
- ${INSTALL_DATA} ${WRKSRC}/${d} ${PREFIX}/share/doc/mailsync
+ ${INSTALL_DATA} ${WRKSRC}/${d} ${DESTDIR}${PREFIX}/share/doc/mailsync
.endfor
.include "../../security/openssl/buildlink3.mk"