Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Dec 2008 09:38:55 +0100
From:      Pav Lucistnik <pav@FreeBSD.org>
To:        Maxim Sobolev <sobomax@sippysoft.com>
Cc:        cvs-ports@FreeBSD.org, Alexey Dokuchaev <danfe@FreeBSD.org>, cvs-all@FreeBSD.org, ports-committers@FreeBSD.org
Subject:   Re: cvs commit: ports/net/asterisk Makefile
Message-ID:  <1228898335.34558.66.camel@pav.hide.vol.cz>
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>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-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 <bsd.port.pre.mk>:
> >=20
> >> .include <bsd.port.pre.mk>
> >>
> >> .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 <pav@oook.cz>
              <pav@FreeBSD.org>

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/--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1228898335.34558.66.camel>