summaryrefslogtreecommitdiff
path: root/misc/dnetc
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-03-04 19:21:10 +0000
committerjlam <jlam@pkgsrc.org>2008-03-04 19:21:10 +0000
commit39843c2c61acd3e8f1b7d0fa6eb0f76884067d10 (patch)
tree49bcc2e4ee778e69c05972f13c0e319fdf272a66 /misc/dnetc
parent0523c1825d9b781d6f10c2ef70daf0a164e0f142 (diff)
downloadpkgsrc-39843c2c61acd3e8f1b7d0fa6eb0f76884067d10.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'misc/dnetc')
-rw-r--r--misc/dnetc/Makefile18
1 files changed, 10 insertions, 8 deletions
diff --git a/misc/dnetc/Makefile b/misc/dnetc/Makefile
index 58f783bb37d..1dca6f7053e 100644
--- a/misc/dnetc/Makefile
+++ b/misc/dnetc/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.18 2006/09/06 20:38:57 wiz Exp $
+# $NetBSD: Makefile,v 1.19 2008/03/04 19:21:11 jlam Exp $
DISTNAME= ${DISTNAME_${OPSYS}_${MACHINE_ARCH}}
PKGNAME= dnetc-2.${DISTVER_${OPSYS}_${MACHINE_ARCH}}
@@ -15,9 +15,11 @@ ONLY_FOR_PLATFORM= Darwin-*-powerpc NetBSD-*-alpha NetBSD-*-arm \
NetBSD-*-mipsel NetBSD-*-powerpc NetBSD-*-sparc \
NetBSD-*-sparc64 NetBSD-*-vax SunOS-*-sparc \
SunOS-*-sparc64
-NO_BUILD= YES
+
+PKG_DESTDIR_SUPPORT= user-destdir
USE_TOOLS+= gtar
+NO_BUILD= YES
DISTNAME_Darwin_powerpc= dnetc-macosx-ppc
DISTNAME_NetBSD_m68k= dnetc-netbsd-m68k-elf
@@ -60,16 +62,16 @@ do-extract:
.endif
do-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/dnetc/
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/dnetc/
.if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "arm32" \
|| ${MACHINE_ARCH} == "sparc"
- ${INSTALL_DATA} ${WRKSRC}/readme.* ${PREFIX}/share/doc/dnetc/
- ${INSTALL_DATA} ${WRKSRC}/*.txt ${PREFIX}/share/doc/dnetc/
+ ${INSTALL_DATA} ${WRKSRC}/readme.* ${DESTDIR}${PREFIX}/share/doc/dnetc/
+ ${INSTALL_DATA} ${WRKSRC}/*.txt ${DESTDIR}${PREFIX}/share/doc/dnetc/
.else
- ${INSTALL_DATA} ${WRKSRC}/docs/* ${PREFIX}/share/doc/dnetc/
+ ${INSTALL_DATA} ${WRKSRC}/docs/* ${DESTDIR}${PREFIX}/share/doc/dnetc/
.endif
- ${INSTALL_MAN} ${WRKSRC}/dnetc.1 ${PREFIX}/${PKGMANDIR}/man1/
- ${INSTALL_PROGRAM} ${WRKSRC}/dnetc ${PREFIX}/bin/
+ ${INSTALL_MAN} ${WRKSRC}/dnetc.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/
+ ${INSTALL_PROGRAM} ${WRKSRC}/dnetc ${DESTDIR}${PREFIX}/bin/
.if defined(PKG_DEVELOPER) && defined(ALL_DISTFILES)
all-distfiles: