summaryrefslogtreecommitdiff
path: root/cross
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2010-02-14 20:34:58 +0000
committerjoerg <joerg@pkgsrc.org>2010-02-14 20:34:58 +0000
commit7c12b9b9e5af4f5be0f9b7c5dbaebb4f31489b5b (patch)
treeee90ea2f207c76e9376e915724bb4e25b2cfa5df /cross
parent118390d970d47081dee6be3084b12f00122efb58 (diff)
downloadpkgsrc-7c12b9b9e5af4f5be0f9b7c5dbaebb4f31489b5b.tar.gz
DESTDIR support
Diffstat (limited to 'cross')
-rw-r--r--cross/avr-gdb/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/cross/avr-gdb/Makefile b/cross/avr-gdb/Makefile
index 57d4f252202..c9266562099 100644
--- a/cross/avr-gdb/Makefile
+++ b/cross/avr-gdb/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2006/08/03 19:22:31 wiz Exp $
+# $NetBSD: Makefile,v 1.15 2010/02/14 20:34:58 joerg Exp $
DISTNAME= gdb-5.3
PKGNAME= avr-gdb-5.3
@@ -9,6 +9,8 @@ MASTER_SITES= ${MASTER_SITE_GNU:=gdb/}
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= GNU gdb for Atmel AVR 8-bit RISC microcontrollers
+PKG_DESTDIR_SUPPORT= user-destdir
+
USE_TOOLS+= gmake
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --target=avr
@@ -20,6 +22,6 @@ pre-configure:
cd ${WRKSRC} ; ${RM} -rf dejagnu expect sim tcl texinfo
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/gdb/gdb ${PREFIX}/bin/avr-gdb
+ ${INSTALL_PROGRAM} ${WRKSRC}/gdb/gdb ${DESTDIR}${PREFIX}/bin/avr-gdb
.include "../../mk/bsd.pkg.mk"