Date: Mon, 1 Dec 2003 18:08:03 +0300 From: Sergei Kolobov <sergei@FreeBSD.org> To: Oliver Eikemeier <eikemeier@fillmore-labs.com> Cc: ports@FreeBSD.org Subject: Re: ports/59254: ports that write something after bsd.port.mk Message-ID: <20031201150803.GA977@chetwood.ru> In-Reply-To: <3FB6B89D.9050808@fillmore-labs.com> References: <20031115211641.GA786@chetwood.ru> <3FB6B89D.9050808@fillmore-labs.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--ew6BAiZeqk4r7MaW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2003-11-16 at 00:37 +0100, Oliver Eikemeier wrote: > How about doing something like > cd ${CONFIGURE_WRKSRC} && ${CONFIGURE_ENV} ./${CONFIGURE_SCRIPT} --versio= n=20 > | sed -ne 's/.*autoconf version \([0-9.]*\).*/\1/p' I took slightly different approach: CONFIGURE_VERSION!=3D ${AWK} '/Generated by GNU Autoconf/ {print $$6;}' \ ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} =2Eif ${CONFIGURE_VERSION} =3D=3D "2.13"=20 CONFIGURE_TARGET?=3D ${MACHINE_ARCH}-portbld-freebsd${OSREL} else CONFIGURE_TARGET?=3D --build=3D${MACHINE_ARCH}-portbld-freebsd${OSREL} =2Eendif Now, equivalent of this should be included in do-configure target,=20 but I have difficult time figuring out how to rewrite it=20 so it would do the awk call, etc. only at the do-configure time,=20 but not every time bsd.port.mk is sourced.=20 Anyone? Sergei --ew6BAiZeqk4r7MaW Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/y1lTFOxuaTulNAERAsRFAKCdXZzJrZD9E8bnGcRKwXF5O5st/ACeLiI9 6H343MDfkXry2f0Vl+Ca2GM= =Lmtx -----END PGP SIGNATURE----- --ew6BAiZeqk4r7MaW--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031201150803.GA977>