summaryrefslogtreecommitdiff
path: root/emulators/freebsd_lib
diff options
context:
space:
mode:
authorjlam <jlam>2008-03-03 19:21:37 +0000
committerjlam <jlam>2008-03-03 19:21:37 +0000
commit4bec39ccba022dfbd2daa6f6d25f7e86d987b4b7 (patch)
treec5e0c30c0b353fd2092305665ed106c2ef4ca346 /emulators/freebsd_lib
parent9bb1fb4eb3cd00b14bf35efc1f775513b341c2e6 (diff)
downloadpkgsrc-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/freebsd_lib')
-rw-r--r--emulators/freebsd_lib/Makefile16
1 files changed, 10 insertions, 6 deletions
diff --git a/emulators/freebsd_lib/Makefile b/emulators/freebsd_lib/Makefile
index 3315288412f..a9c7f787a8a 100644
--- a/emulators/freebsd_lib/Makefile
+++ b/emulators/freebsd_lib/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.23 2006/06/23 15:48:50 jlam Exp $
+# $NetBSD: Makefile,v 1.24 2008/03/03 19:21:38 jlam Exp $
#
DISTNAME= freebsd_lib-2.2.7
@@ -11,17 +11,21 @@ COMMENT= Libraries necessary for FreeBSD compatibility, including XFree86
ONLY_FOR_PLATFORM= NetBSD-*-i386
+PKG_DESTDIR_SUPPORT= user-destdir
+
WRKSRC= ${WRKDIR}
NO_BUILD= yes
do-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/emul/freebsd
- ${INSTALL_DATA_DIR} ${PREFIX}/emul/freebsd/var/run
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/emul/freebsd
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/emul/freebsd/var/run
(cd ${WRKSRC} && ${FIND} usr -type d -print) | \
- (cd ${PREFIX}/emul/freebsd && ${XARGS} ${INSTALL_DATA_DIR})
+ (cd ${DESTDIR}${PREFIX}/emul/freebsd && \
+ ${XARGS} ${INSTALL_DATA_DIR})
cd ${WRKSRC} && for file in `${FIND} usr -name '*.*' -print`; do \
- ${INSTALL_DATA} $$file ${PREFIX}/emul/freebsd/$$file; \
+ ${INSTALL_DATA} $$file \
+ ${DESTDIR}${PREFIX}/emul/freebsd/$$file; \
done
- ${TOUCH} ${PREFIX}/emul/freebsd/var/run/ld.so.hints
+ ${TOUCH} ${DESTDIR}${PREFIX}/emul/freebsd/var/run/ld.so.hints
.include "../../mk/bsd.pkg.mk"