summaryrefslogtreecommitdiff
path: root/comms/pilotmgr
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-03-03 05:33:32 +0000
committerjlam <jlam@pkgsrc.org>2008-03-03 05:33:32 +0000
commit3b34772d7f8c87aaf463b2f9127224a7d6490225 (patch)
tree8887c0f8ce1a301b21789abae5051e7556970188 /comms/pilotmgr
parentd0ef3eddac871b7dc8a5d0df9e6f5aeda4713c8e (diff)
downloadpkgsrc-3b34772d7f8c87aaf463b2f9127224a7d6490225.tar.gz
Mechanical changes to add full DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'comms/pilotmgr')
-rw-r--r--comms/pilotmgr/Makefile22
1 files changed, 12 insertions, 10 deletions
diff --git a/comms/pilotmgr/Makefile b/comms/pilotmgr/Makefile
index fdeba8e0342..a2536f26e86 100644
--- a/comms/pilotmgr/Makefile
+++ b/comms/pilotmgr/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.45 2007/03/17 20:43:24 rillig Exp $
+# $NetBSD: Makefile,v 1.46 2008/03/03 05:33:32 jlam Exp $
DISTNAME= pilotmgr-1.109
CATEGORIES= comms
@@ -13,6 +13,8 @@ DEPENDS+= p5-Digest-MD5-[0-9]*:../../security/p5-Digest-MD5
DEPENDS+= p5-Tk-[0-9]*:../../x11/p5-Tk
DEPENDS+= p5-pilot-link-[0-9]*:../../comms/p5-pilot-link
+PKG_DESTDIR_SUPPORT= user-destdir
+
HAS_CONFIGURE= YES
NO_BUILD= YES
USE_TOOLS+= perl:run
@@ -35,24 +37,24 @@ pre-install:
${FIND} ${WRKSRC} -name '*.orig' -print | ${XARGS} ${RM} -f
do-install:
- ${INSTALL_DATA_DIR} ${PM_PERL_DIR}
- ${INSTALL_DATA_DIR} ${PM_DOC_DIR}
- ${INSTALL_SCRIPT} ${WRKSRC}/PilotManager ${PM_PERL_DIR}
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PM_PERL_DIR}
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PM_DOC_DIR}
+ ${INSTALL_SCRIPT} ${WRKSRC}/PilotManager ${DESTDIR}${PM_PERL_DIR}
for FILE in ${WRKSRC}/*.pm; do \
- ${INSTALL_DATA} $$FILE ${PM_PERL_DIR}; \
+ ${INSTALL_DATA} $$FILE ${DESTDIR}${PM_PERL_DIR}; \
done
- ${LN} -fs ${PM_PERL_DIR}/PilotManager ${PREFIX}/bin/PilotManager
+ ${LN} -fs ${PM_PERL_DIR}/PilotManager ${DESTDIR}${PREFIX}/bin/PilotManager
cd ${WRKSRC} && \
for DIR in lib/*; do \
- ${INSTALL_DATA_DIR} ${PM_PERL_DIR}/$$DIR; \
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PM_PERL_DIR}/$$DIR; \
for FILE in $$DIR/*; do \
- ${INSTALL_DATA} $$FILE ${PM_PERL_DIR}/$$DIR; \
+ ${INSTALL_DATA} $$FILE ${DESTDIR}${PM_PERL_DIR}/$$DIR; \
done; \
done
for FILE in ${WRKSRC}/docs/*; do \
- ${INSTALL_DATA} $$FILE ${PM_DOC_DIR}; \
+ ${INSTALL_DATA} $$FILE ${DESTDIR}${PM_DOC_DIR}; \
done
- ${LN} -fs ${PM_DOC_DIR} ${PM_PERL_DIR}/docs
+ ${LN} -fs ${PM_DOC_DIR} ${DESTDIR}${PM_PERL_DIR}/docs
.include "../../x11/libX11/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"