diff options
author | jlam <jlam> | 2008-03-03 19:21:37 +0000 |
---|---|---|
committer | jlam <jlam> | 2008-03-03 19:21:37 +0000 |
commit | 4bec39ccba022dfbd2daa6f6d25f7e86d987b4b7 (patch) | |
tree | c5e0c30c0b353fd2092305665ed106c2ef4ca346 /emulators/cygwin_lib | |
parent | 9bb1fb4eb3cd00b14bf35efc1f775513b341c2e6 (diff) | |
download | pkgsrc-4bec39ccba022dfbd2daa6f6d25f7e86d987b4b7.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" |