summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2010-01-27 18:21:56 +0000
committerjoerg <joerg@pkgsrc.org>2010-01-27 18:21:56 +0000
commit4e06aa332bcec4b6994782bd5fe1838522ef6e3d (patch)
tree0f9ff344680753de1c0ca495c1b8d13c610b993f /sysutils
parent2ba2bf5c539ceeb18779412ee5dc4f069e45e50a (diff)
downloadpkgsrc-4e06aa332bcec4b6994782bd5fe1838522ef6e3d.tar.gz
DESTDIR support from Steven Drake.
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/cpuid/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/sysutils/cpuid/Makefile b/sysutils/cpuid/Makefile
index 9e588b55a2e..21240191682 100644
--- a/sysutils/cpuid/Makefile
+++ b/sysutils/cpuid/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2007/05/09 11:57:27 ghen Exp $
+# $NetBSD: Makefile,v 1.7 2010/01/27 18:24:33 joerg Exp $
DISTNAME= cpuid-3.3
CATEGORIES= sysutils
@@ -8,6 +8,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://directory.fsf.org/System_administration/Configuration/cpuid.html
COMMENT= CPU identification feature
+PKG_DESTDIR_SUPPORT= user-destdir
+
ONLY_FOR_PLATFORM= *-*-i386
ONLY_FOR_PLATFORM+= *-*-x86_64
@@ -17,6 +19,6 @@ do-build:
cd ${WRKSRC} && ${CC} ${CFLAGS} cpuid.c -o cpuid
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/cpuid ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/cpuid ${DESTDIR}${PREFIX}/bin
.include "../../mk/bsd.pkg.mk"