summaryrefslogtreecommitdiff
path: root/archivers/unarj
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/unarj
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/unarj')
-rw-r--r--archivers/unarj/Makefile14
1 files changed, 9 insertions, 5 deletions
diff --git a/archivers/unarj/Makefile b/archivers/unarj/Makefile
index 58438af83e6..aa1510a44b5 100644
--- a/archivers/unarj/Makefile
+++ b/archivers/unarj/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.25 2006/06/18 07:04:16 rillig Exp $
+# $NetBSD: Makefile,v 1.26 2008/03/02 03:48:37 jlam Exp $
DISTNAME= unarj-2.65
PKGREVISION= 1
@@ -15,6 +15,8 @@ NO_SRC_ON_CDROM=${RESTRICTED}
NO_BIN_ON_CDROM=${RESTRICTED}
PKG_INSTALLATION_TYPES= overwrite pkgviews
+PKG_DESTDIR_SUPPORT= user-destdir
+
NO_CONFIGURE= yes
INSTALLATION_DIRS= bin
@@ -23,9 +25,11 @@ post-extract:
${CP} ${FILESDIR}/Makefile ${WRKSRC}
do-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/unarj
- ${INSTALL_PROGRAM} ${WRKSRC}/unarj ${PREFIX}/bin
- ${INSTALL_MAN} ${WRKSRC}/unarj.txt ${PREFIX}/share/doc/unarj
- ${INSTALL_MAN} ${WRKSRC}/technote.txt ${PREFIX}/share/doc/unarj
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/unarj
+ ${INSTALL_PROGRAM} ${WRKSRC}/unarj ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/unarj.txt \
+ ${DESTDIR}${PREFIX}/share/doc/unarj
+ ${INSTALL_MAN} ${WRKSRC}/technote.txt \
+ ${DESTDIR}${PREFIX}/share/doc/unarj
.include "../../mk/bsd.pkg.mk"