pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/benchmarks/ubench Convert to user-destdir. From Alekse...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/94f4dc1cd45e
branches:  trunk
changeset: 392258:94f4dc1cd45e
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Wed Apr 29 09:20:40 2009 +0000

description:
Convert to user-destdir. From Aleksey Cheusov in PR 39982.

diffstat:

 benchmarks/ubench/Makefile |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (31 lines):

diff -r 3637684dbfe4 -r 94f4dc1cd45e benchmarks/ubench/Makefile
--- a/benchmarks/ubench/Makefile        Wed Apr 29 09:16:47 2009 +0000
+++ b/benchmarks/ubench/Makefile        Wed Apr 29 09:20:40 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2006/03/04 21:29:01 jlam Exp $
+# $NetBSD: Makefile,v 1.6 2009/04/29 09:20:40 wiz Exp $
 #
 
 DISTNAME=      ubench-0.32
@@ -10,16 +10,18 @@
 HOMEPAGE=      http://www.phystech.com/download/ubench.html
 COMMENT=       The Unix Benchmark utility
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 BUILD_TARGET=  ubench
 INSTALLATION_DIRS=     bin ${PKGMANDIR}/man8 share/doc/ubench
 
 SUBST_CLASSES+=                path
 SUBST_STAGE.path=      post-configure
 SUBST_FILES.path=      Makefile
-SUBST_SED.path=                -e "s,/usr/local,${PREFIX},"
+SUBST_SED.path=                -e "s,/usr/local,${DESTDIR}${PREFIX},"
 
 post-install:
-       ${INSTALL_MAN} ${WRKSRC}/ubench.8 ${PREFIX}/${PKGMANDIR}/man8
-       ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/ubench
+       ${INSTALL_MAN} ${WRKSRC}/ubench.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
+       ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/ubench
 
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index