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/compat_netbsd | |
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/compat_netbsd')
-rw-r--r-- | emulators/compat_netbsd/Makefile.common | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/emulators/compat_netbsd/Makefile.common b/emulators/compat_netbsd/Makefile.common index d45a23cfcdc..68585874d72 100644 --- a/emulators/compat_netbsd/Makefile.common +++ b/emulators/compat_netbsd/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.9 2008/01/15 15:43:49 jlam Exp $ +# $NetBSD: Makefile.common,v 1.10 2008/03/03 19:21:37 jlam Exp $ # # Common infrastructure for NetBSD compat* packages. # @@ -12,6 +12,8 @@ EXTRACT_SUFX= .tar.bz2 MAINTAINER= pkgsrc-users@NetBSD.org +PKG_DESTDIR_SUPPORT= destdir + NO_SRC_ON_FTP= Already in MASTER_SITE_LOCAL NETBSD_PKG= yes @@ -127,9 +129,10 @@ ${ELF_SYMLINKS_DATA}: plist .PHONY: compat-install do-install: compat-install compat-install: - ${INSTALL_DATA_DIR} ${PREFIX}/${EMULSUBDIR} + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/${EMULSUBDIR} cd ${WRKSRC} && for dir in lib libexec usr; do \ if ${TEST} -d "$$dir"; then \ - ${PAX} -rw "$$dir" ${PREFIX}/${EMULSUBDIR}; \ + ${PAX} -rw "$$dir" \ + ${DESTDIR}${PREFIX}/${EMULSUBDIR}; \ fi; \ done |