diff options
author | jlam <jlam@pkgsrc.org> | 2008-03-03 19:21:37 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2008-03-03 19:21:37 +0000 |
commit | 0bb78c6c9d3855e92497417696475484322d451c (patch) | |
tree | c5e0c30c0b353fd2092305665ed106c2ef4ca346 /emulators/cygwin_lib | |
parent | 9bd3464e7e916d97f1e733a71b79c48999897987 (diff) | |
download | pkgsrc-0bb78c6c9d3855e92497417696475484322d451c.tar.gz |
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'emulators/cygwin_lib')
-rw-r--r-- | emulators/cygwin_lib/Makefile | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/emulators/cygwin_lib/Makefile b/emulators/cygwin_lib/Makefile index 2d070a2df27..06187382286 100644 --- a/emulators/cygwin_lib/Makefile +++ b/emulators/cygwin_lib/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.9 2007/04/04 14:37:52 tv Exp $ +# $NetBSD: Makefile,v 1.10 2008/03/03 19:21:37 jlam Exp $ # DISTNAME= cygwin-1.5.13-1 @@ -13,6 +13,8 @@ COMMENT= Basic Cygwin library and executables for emulation ONLY_FOR_PLATFORM= Interix-*-* +PKG_DESTDIR_SUPPORT= user-destdir + DIST_SUBDIR= cygwin WRKSRC= ${WRKDIR} @@ -22,13 +24,15 @@ INSTALLATION_DIRS= bin emul/cygwin/bin do-build: # nothing do-install: - ${INSTALL_LIB} ${WRKSRC}/usr/bin/cygwin1.dll ${PREFIX}/bin/ - ${INSTALL_PROGRAM_DIR} ${PREFIX}/emul/cygwin ${PREFIX}/emul/cygwin/bin + ${INSTALL_LIB} ${WRKSRC}/usr/bin/cygwin1.dll ${DESTDIR}${PREFIX}/bin + ${INSTALL_PROGRAM_DIR} ${PREFIX}/emul/cygwin \ + ${DESTDIR}${PREFIX}/emul/cygwin/bin @for f in ${WRKSRC}/usr/bin/*.exe; do \ - ${INSTALL_LIB} $$f ${PREFIX}/emul/cygwin/bin/$$(basename $${f%.exe}); \ + ${INSTALL_LIB} $$f \ + ${DESTDIR}${PREFIX}/emul/cygwin/bin/$$(basename $${f%.exe}); \ done .for f in ${SYMLINKS} - ${LN} -sf ../emul/cygwin/bin/${f} ${PREFIX}/bin/cygwin-${f} + ${LN} -sf ../emul/cygwin/bin/${f} ${DESTDIR}${PREFIX}/bin/cygwin-${f} .endfor .include "../../mk/bsd.pkg.mk" |