From 075003a60c727330726570ab7674a2ee12c5654f Mon Sep 17 00:00:00 2001 From: jlam Date: Mon, 3 Mar 2008 00:51:43 +0000 Subject: Mechanical changes to add full DESTDIR support to packages that install their files via a custom do-install target. --- benchmarks/nttcp/Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'benchmarks/nttcp') diff --git a/benchmarks/nttcp/Makefile b/benchmarks/nttcp/Makefile index 498165d3c36..6511b427812 100644 --- a/benchmarks/nttcp/Makefile +++ b/benchmarks/nttcp/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.7 2007/01/07 09:13:48 rillig Exp $ +# $NetBSD: Makefile,v 1.8 2008/03/03 00:51:44 jlam Exp $ DISTNAME= nttcp-1.47 PKGREVISION= 1 @@ -10,6 +10,7 @@ HOMEPAGE= http://home.leo.org/~elmar/nttcp/ COMMENT= New TCP testing and performance measuring tool PKG_INSTALLATION_TYPES= overwrite pkgviews +PKG_DESTDIR_SUPPORT= user-destdir .include "../../mk/bsd.prefs.mk" @@ -20,8 +21,9 @@ MAKE_ENV+= LIB="-lsocket -lnsl" INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 do-install: - cd ${WRKSRC} ; \ - ${INSTALL_PROGRAM} nttcp ${PREFIX}/bin/nttcp ; \ - ${INSTALL_MAN} nttcp.1 ${PREFIX}/${PKGMANDIR}/man1/nttcp.1 + cd ${WRKSRC} && ${INSTALL_PROGRAM} nttcp \ + ${DESTDIR}${PREFIX}/bin/nttcp + cd ${WRKSRC} && ${INSTALL_MAN} nttcp.1 \ + ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/nttcp.1 .include "../../mk/bsd.pkg.mk" -- cgit v1.2.3