summaryrefslogtreecommitdiff
path: root/audio/rio/Makefile
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/rio/Makefile
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/rio/Makefile')
-rw-r--r--audio/rio/Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/audio/rio/Makefile b/audio/rio/Makefile
index f5879086d19..2ac9ad4d622 100644
--- a/audio/rio/Makefile
+++ b/audio/rio/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.21 2007/06/15 15:13:34 jlam Exp $
+# $NetBSD: Makefile,v 1.22 2008/03/02 06:10:34 jlam Exp $
#
DISTNAME= rio007
@@ -13,6 +13,8 @@ COMMENT= Utility to display and manage files on the Diamond Rio PMP300
ONLY_FOR_PLATFORM= NetBSD-*-i386
+PKG_DESTDIR_SUPPORT= user-destdir
+
WRKSRC= ${WRKDIR}/rio107
MAKE_FILE= makefile
USE_LANGUAGES= c++
@@ -26,9 +28,10 @@ do-build:
${SED} ${FILES_SUBST_SED} ${FILESDIR}/find-lpt-port > ${WRKSRC}/find-lpt-port.sh
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/rio ${PREFIX}/bin
- ${INSTALL_DATA_DIR} ${PREFIX}/share/rio
- ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/rio
- ${INSTALL_SCRIPT} ${WRKSRC}/find-lpt-port.sh ${PREFIX}/bin/find-lpt-port
+ ${INSTALL_PROGRAM} ${WRKSRC}/rio ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/rio
+ ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/rio
+ ${INSTALL_SCRIPT} ${WRKSRC}/find-lpt-port.sh \
+ ${DESTDIR}${PREFIX}/bin/find-lpt-port
.include "../../mk/bsd.pkg.mk"