summaryrefslogtreecommitdiff
path: root/comms/pilotmgr/Makefile
diff options
context:
space:
mode:
authorjlam <jlam>2008-03-03 05:33:32 +0000
committerjlam <jlam>2008-03-03 05:33:32 +0000
commite86a3ba39061980160972e0fd2948b67acb7f5af (patch)
tree8887c0f8ce1a301b21789abae5051e7556970188 /comms/pilotmgr/Makefile
parentdd20eca0e374727250c7dcb3c23ece6114da5aa3 (diff)
downloadpkgsrc-e86a3ba39061980160972e0fd2948b67acb7f5af.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/Makefile')
-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"