summaryrefslogtreecommitdiff
path: root/archivers/afio
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-03-02 03:48:36 +0000
committerjlam <jlam@pkgsrc.org>2008-03-02 03:48:36 +0000
commit6a0bbfc67659e8fd303162cd3c8e2f27b4be528b (patch)
tree14eb87fa09bb9b6f1b081eea0499821310cc436b /archivers/afio
parentabd93136031ca3b8ecf3b96e0d1a078f10ccd7d5 (diff)
downloadpkgsrc-6a0bbfc67659e8fd303162cd3c8e2f27b4be528b.tar.gz
Mechanical changes to add full DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'archivers/afio')
-rw-r--r--archivers/afio/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/archivers/afio/Makefile b/archivers/afio/Makefile
index f3e5b485372..4a407f285db 100644
--- a/archivers/afio/Makefile
+++ b/archivers/afio/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2006/07/23 13:57:28 rillig Exp $
+# $NetBSD: Makefile,v 1.10 2008/03/02 03:48:36 jlam Exp $
DISTNAME= afio-2.5
PKGREVISION= 1
@@ -11,6 +11,7 @@ HOMEPAGE= http://freshmeat.net/projects/afio/
COMMENT= cpio-format archive creator with data corruption handling
PKG_INSTALLATION_TYPES= overwrite pkgviews
+PKG_DESTDIR_SUPPORT= user-destdir
BUILD_TARGET= afio
@@ -23,7 +24,8 @@ MAKE_FLAGS+= e2=
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/afio ${PREFIX}/bin/afio
- ${INSTALL_MAN} ${WRKSRC}/afio.1 ${PREFIX}/${PKGMANDIR}/man1/afio.1
+ ${INSTALL_PROGRAM} ${WRKSRC}/afio ${DESTDIR}${PREFIX}/bin/afio
+ ${INSTALL_MAN} ${WRKSRC}/afio.1 \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/afio.1
.include "../../mk/bsd.pkg.mk"