Subject: package into /usr/pkgsrc/packages.${MACHINE_ARCH} if ${OBJMACHINE} set?
To: None <>
From: Bill Sommerfeld <>
List: tech-pkg
Date: 12/04/1999 09:22:58
Currently, pkgsrc picks up on the "OBJMACHINE" definition when
constructing work directories to allow a pkgsrc tree to be shared
between NetBSD ports; however, when you actually go to build the final
binary package, they all end up in the same directory.

Any objection to the following change to

Anyone got a better idea?

RCS file: /cvsroot/pkgsrc/mk/,v
retrieving revision 1.344
diff -u -r1.344
---  1999/09/24 22:20:30     1.344
+++  1999/12/04 14:20:19
@@ -67,7 +67,11 @@
 PKGSRCDIR=             ${.CURDIR:C|/[^/]*/[^/]*$||}
 DISTDIR?=              ${PKGSRCDIR}/distfiles
 _DISTDIR?=             ${DISTDIR}/${DIST_SUBDIR}
+.if defined(OBJMACHINE)
+PACKAGES?=             ${PKGSRCDIR}/packages.${MACHINE_ARCH}
 PACKAGES?=             ${PKGSRCDIR}/packages
 TEMPLATES?=            ${PKGSRCDIR}/templates
 PATCHDIR?=             ${.CURDIR}/patches

					- Bill