Date: Thu, 11 Jan 2001 13:15:36 -0600 From: "Scot W. Hetzel" <hetzels@westbend.net> To: "Glenn Johnson" <gjohnson@nola.srrc.usda.gov>, <ports@FreeBSD.ORG> Subject: Re: How to use SCRIPTS_ENV Message-ID: <023101c07c02$e1939be0$7d7885c0@genroco.com> References: <20010111121334.A30947@node7.cluster.srrc.usda.gov>
next in thread | previous in thread | raw e-mail | index | archive | help
From: "Glenn Johnson" <gjohnson@nola.srrc.usda.gov> > I need to have a script executed based on a conditional value in > the port Makefile. I need to pass the values $WRKSRC and $PREFIX > to this script. Looking in ports/Mk/bsd.port.mk I found the > SCRIPTS_ENV variable which seems like it should do the job. From > ports/Mk/bsd.port.mk: > > # SCRIPTS_ENV - Additional environment vars passed to scripts in > # ${SCRIPTDIR} executed by bsd.port.mk (default: see below). > > The default is: > > SCRIPTS_ENV+= PORTOBJFORMAT=${PORTOBJFORMAT} > > So I set SCRIPTS_ENV in my Makefile as: > > SCRIPTS_ENV+= "WRKSRC=${WRKSRC} PREFIX=${PREFIX}" > > > Can anyone point me in the right direction? > Try assigning SCRIPTS_ENV variables, without the quotes: SCRIPTS_ENV+= WRKSRC=${WRKSRC} PREFIX=${PREFIX} Scot To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?023101c07c02$e1939be0$7d7885c0>