summaryrefslogtreecommitdiff
path: root/audio/applerecords
diff options
context:
space:
mode:
authorjlam <jlam>2008-03-02 06:10:30 +0000
committerjlam <jlam>2008-03-02 06:10:30 +0000
commit5e208f4c10af866c1787ca2bbb3312ff140e9f8d (patch)
treee69a307404c85a610aac593940553b400d40a654 /audio/applerecords
parent6f66c48cf7c3d142c768614f7fdc4e84ca8a2822 (diff)
downloadpkgsrc-5e208f4c10af866c1787ca2bbb3312ff140e9f8d.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/applerecords')
-rw-r--r--audio/applerecords/Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/audio/applerecords/Makefile b/audio/applerecords/Makefile
index e2b82421cd9..1cd7af6e8be 100644
--- a/audio/applerecords/Makefile
+++ b/audio/applerecords/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2007/03/04 11:29:57 wiz Exp $
+# $NetBSD: Makefile,v 1.8 2008/03/02 06:10:31 jlam Exp $
#
DISTNAME= applerecords-0.5
@@ -11,6 +11,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://web.archive.org/web/20060501054520/http://www.cdavies.org/applerecords.html
COMMENT= Java DAAP client
+PKG_DESTDIR_SUPPORT= user-destdir
+
NO_BUILD= yes
WRKSRC= ${WRKDIR}
USE_JAVA= run
@@ -24,8 +26,9 @@ do-extract:
${SED} -e 's|@SH@|${SH}|g' -e 's|@PREFIX@|${PREFIX}|g' ${FILESDIR}/applerecords > ${WRKSRC}/applerecords
do-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/lib/applerecords
- ${INSTALL_DATA} ${WRKSRC}/${DISTNAME}.jar ${PREFIX}/lib/applerecords/applerecords.jar
- ${INSTALL_SCRIPT} ${WRKSRC}/applerecords ${PREFIX}/bin
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/lib/applerecords
+ ${INSTALL_DATA} ${WRKSRC}/${DISTNAME}.jar \
+ ${DESTDIR}${PREFIX}/lib/applerecords/applerecords.jar
+ ${INSTALL_SCRIPT} ${WRKSRC}/applerecords ${DESTDIR}${PREFIX}/bin
.include "../../mk/bsd.pkg.mk"