From owner-freebsd-ports@FreeBSD.ORG Mon Dec 1 07:20:57 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4633B16A4CE for ; Mon, 1 Dec 2003 07:20:57 -0800 (PST) Received: from outpost.globcon.net (outpost.globcon.net [62.141.88.161]) by mx1.FreeBSD.org (Postfix) with SMTP id 31D4643F93 for ; Mon, 1 Dec 2003 07:20:55 -0800 (PST) (envelope-from sergei@FreeBSD.org) Received: (qmail 73432 invoked from network); 1 Dec 2003 15:20:55 -0000 Received: from agdcgw01.akingump.com (HELO kolobov.com) (12.40.174.2) by outpost.globcon.net (62.141.88.161) with SMTP; 01 Dec 2003 15:20:55 -0000 Received: (qmail 2102 invoked by uid 911); 1 Dec 2003 15:08:03 -0000 Date: Mon, 1 Dec 2003 18:08:03 +0300 From: Sergei Kolobov To: Oliver Eikemeier Message-ID: <20031201150803.GA977@chetwood.ru> Mail-Followup-To: Oliver Eikemeier , ports@FreeBSD.org References: <20031115211641.GA786@chetwood.ru> <3FB6B89D.9050808@fillmore-labs.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ew6BAiZeqk4r7MaW" Content-Disposition: inline In-Reply-To: <3FB6B89D.9050808@fillmore-labs.com> User-Agent: Mutt/1.5.3i cc: ports@FreeBSD.org Subject: Re: ports/59254: ports that write something after bsd.port.mk X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Dec 2003 15:20:57 -0000 --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--