summaryrefslogtreecommitdiff
path: root/audio/disc-cover
diff options
context:
space:
mode:
authorjlam <jlam>2008-03-02 06:10:30 +0000
committerjlam <jlam>2008-03-02 06:10:30 +0000
commit33be9d571979426caf74e11b4f9a9f2be70808b5 (patch)
treee69a307404c85a610aac593940553b400d40a654 /audio/disc-cover
parent49d8db83e7f07977deb64d4280dcde0dbef7c34f (diff)
downloadpkgsrc-33be9d571979426caf74e11b4f9a9f2be70808b5.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/disc-cover')
-rw-r--r--audio/disc-cover/Makefile15
1 files changed, 9 insertions, 6 deletions
diff --git a/audio/disc-cover/Makefile b/audio/disc-cover/Makefile
index 346bbd47384..83f7dc73fef 100644
--- a/audio/disc-cover/Makefile
+++ b/audio/disc-cover/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.22 2007/01/07 09:13:47 rillig Exp $
+# $NetBSD: Makefile,v 1.23 2008/03/02 06:10:31 jlam Exp $
#
DISTNAME= disc-cover-1.5.6
@@ -11,10 +11,12 @@ COMMENT= Generation of CD covers
DEPENDS+= p5-Audio-CD>=0.05:../../audio/p5-Audio-CD
+PKG_DESTDIR_SUPPORT= user-destdir
+
USE_TOOLS+= perl:run pod2man
REPLACE_PERL= disc-cover
-DCTMPL= ${PREFIX}/share/disc-cover/templates
+DCTMPL= ${PREFIX}/share/disc-cover/templates
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
@@ -24,9 +26,10 @@ do-build:
>${WRKDIR}/disc-cover
do-install:
- ${INSTALL_SCRIPT} ${WRKDIR}/disc-cover ${PREFIX}/bin
- ${INSTALL_DATA} ${WRKSRC}/disc-cover.1 ${PREFIX}/${PKGMANDIR}/man1
- ${INSTALL_DATA_DIR} ${DCTMPL}
- ${INSTALL_DATA} ${WRKSRC}/templates/* ${DCTMPL}
+ ${INSTALL_SCRIPT} ${WRKDIR}/disc-cover ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/disc-cover.1 \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+ ${INSTALL_DATA_DIR} ${DESTDIR}${DCTMPL}
+ ${INSTALL_DATA} ${WRKSRC}/templates/* ${DESTDIR}${DCTMPL}
.include "../../mk/bsd.pkg.mk"