From owner-cvs-ports@FreeBSD.ORG Wed Dec 10 08:38:59 2008 Return-Path: Delivered-To: cvs-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 224321065672; Wed, 10 Dec 2008 08:38:59 +0000 (UTC) (envelope-from pav@FreeBSD.org) Received: from nat-application.b1.lan.prg.vol.cz (nat-application.b1.lan.prg.vol.cz [195.122.204.152]) by mx1.freebsd.org (Postfix) with ESMTP id 7184A8FC16; Wed, 10 Dec 2008 08:38:58 +0000 (UTC) (envelope-from pav@FreeBSD.org) Received: from pav.hide.vol.cz (localhost [127.0.0.1]) by nat-application.b1.lan.prg.vol.cz (8.14.3/8.14.3) with ESMTP id mBA8cuF2031149; Wed, 10 Dec 2008 09:38:56 +0100 (CET) (envelope-from pav@FreeBSD.org) Received: (from pav@localhost) by pav.hide.vol.cz (8.14.3/8.14.3/Submit) id mBA8ct9a031148; Wed, 10 Dec 2008 09:38:55 +0100 (CET) (envelope-from pav@FreeBSD.org) X-Authentication-Warning: pav.hide.vol.cz: pav set sender to pav@FreeBSD.org using -f From: Pav Lucistnik To: Maxim Sobolev In-Reply-To: <493F7DBB.9040801@sippysoft.com> References: <200812090602.mB962eiw090973@repoman.freebsd.org> <20081209191509.GA50518@FreeBSD.org> <493ED4B6.4010409@sippysoft.com> <1228858485.917.4.camel@hood.oook.cz> <493F16B1.3020409@sippysoft.com> <1228896975.34558.61.camel@pav.hide.vol.cz> <493F7DBB.9040801@sippysoft.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-NEuOm3iWRYbSsK4G4KC/" Date: Wed, 10 Dec 2008 09:38:55 +0100 Message-Id: <1228898335.34558.66.camel@pav.hide.vol.cz> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 FreeBSD GNOME Team Port Cc: cvs-ports@FreeBSD.org, Alexey Dokuchaev , cvs-all@FreeBSD.org, ports-committers@FreeBSD.org Subject: Re: cvs commit: ports/net/asterisk Makefile X-BeenThere: cvs-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pav@FreeBSD.org List-Id: CVS commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Dec 2008 08:38:59 -0000 --=-NEuOm3iWRYbSsK4G4KC/ Content-Type: text/plain; charset=ISO8859-2 Content-Transfer-Encoding: quoted-printable Maxim Sobolev p=ED=B9e v st 10. 12. 2008 v 00:28 -0800: > Pav Lucistnik wrote: > > Maxim Sobolev p=ED=B9e v =FAt 09. 12. 2008 v 17:09 -0800: > >=20 > >> OK, further investigation shows that it doesn't happen to OPTIONS adde= d=20 > >> after .include : > >=20 > >> .include > >> > >> .if ${ARCH} =3D=3D "i386" || ${ARCH} =3D=3D "amd64" > >> OPTIONS+=3D ZAPTEL "Enable Zaptel support" off > >> .endif > >> ----- > >> > >> Looks like a bug in bsd.port.mk to me. > >=20 > > Ah right, yeah, that's understandable given that OPTIONS processing is > > done in pre.mk, so you can have WITH_*/WITHOUT_* variables available > > between pre.mk and post.mk. >=20 > Hmm, any chance to change this? We need pre.mk in order to determine=20 > architecture that we are running on. Can't think of a nice solution. Two hacks, thou: copy the following snippet from bsd.port.mk, place it just above OPTIONS definition in your port: .if !defined(ARCH) ARCH!=3D ${UNAME} -p .endif and then move the ZAPTEL declaration above pre.mk. -- OR -- Put this line below ZAPTEL definition: .include "$(PORTSDIR)/Mk/bsd.port.options.mk" --=20 Pav Lucistnik Thank God we're theoretical physicists so we don't have to get our hands dirty with particle accelerators and other heavy machinery. --=-NEuOm3iWRYbSsK4G4KC/ Content-Type: application/pgp-signature; name=signature.asc Content-Description: Toto je =?UTF-8?Q?digit=C3=A1ln=C4=9B?= =?ISO-8859-1?Q?_podepsan=E1?= =?UTF-8?Q?_=C4=8D=C3=A1st?= =?ISO-8859-1?Q?_zpr=E1vy?= -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEABECAAYFAkk/gB8ACgkQntdYP8FOsoJX9gCfQR+Vjh+FhjtQpLechoQYOb2+ pF8AnjiMB0ybNPFbht5vnr3m1f2rsWFX =0SEH -----END PGP SIGNATURE----- --=-NEuOm3iWRYbSsK4G4KC/--