pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/flavor/pkg Use the new pkg_add -m for cross-compili...
details: https://anonhg.NetBSD.org/pkgsrc/rev/81df22c93afb
branches: trunk
changeset: 532269:81df22c93afb
user: joerg <joerg%pkgsrc.org@localhost>
date: Wed Aug 15 13:20:57 2007 +0000
description:
Use the new pkg_add -m for cross-compiling instead of -f.
diffstat:
mk/flavor/pkg/package.mk | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 201606a0b9e9 -r 81df22c93afb mk/flavor/pkg/package.mk
--- a/mk/flavor/pkg/package.mk Wed Aug 15 12:43:14 2007 +0000
+++ b/mk/flavor/pkg/package.mk Wed Aug 15 13:20:57 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: package.mk,v 1.9 2007/08/03 14:03:40 joerg Exp $
+# $NetBSD: package.mk,v 1.10 2007/08/15 13:20:57 joerg Exp $
PKG_SUFX?= .tgz
PKGFILE?= ${PKGREPOSITORY}/${PKGNAME}${PKG_SUFX}
@@ -145,7 +145,7 @@
@${PHASE_MSG} "Install binary package of "${PKGNAME:Q}
.if !empty(USE_CROSS_COMPILE:M[yY][eE][sS])
@${MKDIR} ${_CROSS_DESTDIR}${PREFIX}
- ${PKG_ADD} -f -I -p ${_CROSS_DESTDIR}${PREFIX} ${PKGFILE}
+ ${PKG_ADD} -m ${MACHINE_ARCH} -I -p ${_CROSS_DESTDIR}${PREFIX} ${PKGFILE}
@${ECHO} "Fixing recorded cwd..."
@${SED} -e 's|@cwd ${_CROSS_DESTDIR}|@cwd |' ${_PKG_DBDIR}/${PKGNAME:Q}/+CONTENTS > ${_PKG_DBDIR}/${PKGNAME:Q}/+CONTENTS.tmp
@${MV} ${_PKG_DBDIR}/${PKGNAME:Q}/+CONTENTS.tmp ${_PKG_DBDIR}/${PKGNAME:Q}/+CONTENTS
Home |
Main Index |
Thread Index |
Old Index