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

[-- Attachment #1 --]
Maxim Sobolev píše v st 10. 12. 2008 v 00:28 -0800:
> Pav Lucistnik wrote:
> > Maxim Sobolev píše v út 09. 12. 2008 v 17:09 -0800:
> > 
> >> OK, further investigation shows that it doesn't happen to OPTIONS added 
> >> after .include <bsd.port.pre.mk>:
> > 
> >> .include <bsd.port.pre.mk>
> >>
> >> .if ${ARCH} == "i386" || ${ARCH} == "amd64"
> >> OPTIONS+=       ZAPTEL          "Enable Zaptel support" off
> >> .endif
> >> -----
> >>
> >> Looks like a bug in bsd.port.mk to me.
> > 
> > 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.
> 
> Hmm, any chance to change this? We need pre.mk in order to determine 
> 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!=	${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"


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

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (FreeBSD)

iEYEABECAAYFAkk/gB8ACgkQntdYP8FOsoJX9gCfQR+Vjh+FhjtQpLechoQYOb2+
pF8AnjiMB0ybNPFbht5vnr3m1f2rsWFX
=0SEH
-----END PGP SIGNATURE-----

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