pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/elf Added support for installation to DESTDIR.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b3124c0be27e
branches:  trunk
changeset: 529129:b3124c0be27e
user:      heinz <heinz%pkgsrc.org@localhost>
date:      Fri May 25 18:22:45 2007 +0000

description:
Added support for installation to DESTDIR.

diffstat:

 devel/elf/Makefile |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r ad29cb4ebb14 -r b3124c0be27e devel/elf/Makefile
--- a/devel/elf/Makefile        Fri May 25 18:02:45 2007 +0000
+++ b/devel/elf/Makefile        Fri May 25 18:22:45 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2006/12/19 23:38:49 rillig Exp $
+# $NetBSD: Makefile,v 1.13 2007/05/25 18:22:45 heinz Exp $
 #
 
 DISTNAME=      elf-0.5.3
@@ -11,6 +11,8 @@
 HOMEPAGE=      http://www.kerneled.com/projects/elf/
 COMMENT=       ELF header analyzer
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 GNU_CONFIGURE= YES
 
 BUILD_DIRS=    ${WRKSRC}/src
@@ -19,8 +21,8 @@
 INSTALLATION_DIRS=     bin ${PKGMANDIR}/man1
 
 do-install:
-       ${INSTALL_PROGRAM} ${WRKSRC}/src/elf ${PREFIX}/bin
-       ${INSTALL_MAN} ${WRKSRC}/doc/elf.1 ${PREFIX}/${PKGMANDIR}/man1
+       ${INSTALL_PROGRAM} ${WRKSRC}/src/elf ${DESTDIR:Q}${PREFIX:Q}/bin
+       ${INSTALL_MAN} ${WRKSRC}/doc/elf.1 ${DESTDIR:Q}${PREFIX:Q}/${PKGMANDIR}/man1
 
 .include "../../devel/ncurses/buildlink3.mk"
 .include "../../devel/readline/buildlink3.mk"



Home | Main Index | Thread Index | Old Index