summaryrefslogtreecommitdiff
path: root/audio/distmp3
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-03-02 06:10:30 +0000
committerjlam <jlam@pkgsrc.org>2008-03-02 06:10:30 +0000
commit76ed4a57975c0d7c08dcc86ebda15457c3e83793 (patch)
treee69a307404c85a610aac593940553b400d40a654 /audio/distmp3
parent5c458b597ca0742153b3a339088ba80f14b598ef (diff)
downloadpkgsrc-76ed4a57975c0d7c08dcc86ebda15457c3e83793.tar.gz
Mechanical changes to add full DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'audio/distmp3')
-rw-r--r--audio/distmp3/Makefile18
1 files changed, 11 insertions, 7 deletions
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"