> I tried to add a .undef STAGEDIR to bsd.port.mk: > > --- /usr/ports/Mk.bsd.port.mk > +++ /usr/ports/Mk.bsd.port.mk > @@ -1932,6 +1932,8 @@ > .if !defined(NO_STAGE) > .include "${PORTSDIR}/Mk/bsd.stage.mk" > +.else > +.undef STAGEDIR +.if defined(STAGEDIR) +IGNORE= STAGEDIR defined on the command line, don't do that +.endif > .endif >
This change catches the use of STAGEDIR defined on the command line and sets the IGNORE flag. But I still can't undefined STAGEDIR when it is defined on the command line. > The above works, if you put STAGEDIR into /etc/make.conf. > > # echo 'STAGEDIR=/stagetest' >> /etc/make.conf > # make -V STAGEDIR > > But it doesn't work if you define STAGEDIR with the make command: > > # make STAGEDIR=/stage -V STAGEDIR > /stage > > Does anyone know how to make this work? > > -- > DISCLAIMER: > > No electrons were maimed while sending this message. Only slightly bruised. -- DISCLAIMER: No electrons were maimed while sending this message. Only slightly bruised. _______________________________________________ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"