From 175fab70a3a2f3b0f348e8eb065240a97f4f7d61 Mon Sep 17 00:00:00 2001 From: jlam Date: Sun, 2 Mar 2008 06:10:30 +0000 Subject: Mechanical changes to add full DESTDIR support to packages that install their files via a custom do-install target. --- audio/distmp3/Makefile | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'audio/distmp3/Makefile') diff --git a/audio/distmp3/Makefile b/audio/distmp3/Makefile index 46a25be5b23..789e1eb067f 100644 --- a/audio/distmp3/Makefile +++ b/audio/distmp3/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.9 2006/10/25 18:54:08 rillig Exp $ +# $NetBSD: Makefile,v 1.10 2008/03/02 06:10:31 jlam Exp $ # DISTNAME= distmp3-0.1.9 @@ -9,6 +9,8 @@ EXTRACT_SUFX= .tar.bz2 MAINTAINER= grant@NetBSD.org COMMENT= Distributed mp3 encoding across multiple hosts +PKG_DESTDIR_SUPPORT= user-destdir + USE_LANGUAGES= # empty USE_TOOLS+= perl:run NO_BUILD= yes @@ -33,11 +35,13 @@ SUBST_SED.config+= -e 's,/usr/local,${PREFIX},' INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 do-install: - ${INSTALL_SCRIPT} ${WRKSRC}/distmp3 ${PREFIX}/bin - ${INSTALL_SCRIPT} ${WRKSRC}/distmp3host ${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/distmp3.1 ${PREFIX}/${PKGMANDIR}/man1 - ${INSTALL_MAN} ${WRKSRC}/distmp3host.1 ${PREFIX}/${PKGMANDIR}/man1 - ${INSTALL_DATA_DIR} ${EGDIR} - ${INSTALL_DATA} ${WRKSRC}/distmp3.conf ${EGDIR} + ${INSTALL_SCRIPT} ${WRKSRC}/distmp3 ${DESTDIR}${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKSRC}/distmp3host ${DESTDIR}${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/distmp3.1 \ + ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 + ${INSTALL_MAN} ${WRKSRC}/distmp3host.1 \ + ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 + ${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR} + ${INSTALL_DATA} ${WRKSRC}/distmp3.conf ${DESTDIR}${EGDIR} .include "../../mk/bsd.pkg.mk" -- cgit v1.2.3