Subject: package into /usr/pkgsrc/packages.${MACHINE_ARCH} if ${OBJMACHINE} set?
To: None <tech-pkg@netbsd.org>
From: Bill Sommerfeld <sommerfeld@orchard.arlington.ma.us>
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 bsd.pkg.mk?
Anyone got a better idea?
RCS file: /cvsroot/pkgsrc/mk/bsd.pkg.mk,v
retrieving revision 1.344
diff -u -r1.344 bsd.pkg.mk
--- bsd.pkg.mk 1999/09/24 22:20:30 1.344
+++ bsd.pkg.mk 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}
+.else
PACKAGES?= ${PKGSRCDIR}/packages
+.endif
TEMPLATES?= ${PKGSRCDIR}/templates
PATCHDIR?= ${.CURDIR}/patches
- Bill