HAVE_GNOME vs. bsd.ports.options.mk
Chris Rees
utisoft at gmail.com
Wed Oct 10 15:40:42 UTC 2012
On 10 Oct 2012 11:19, "Michael Gmelin" <freebsd at grem.de> wrote:
>
> Hi
>
> I noticed that HAVE_GNOME doesn't work properly with
> bsd.ports.options.mk yet, so
>
> .include <bsd.port.options.mk>
> .if ${HAVE_GNOME:Mgnomelibs}!=""
> # ...
> .endif
> .include <bsd.port.mk>
>
> won't work, while this
>
> .include <bsd.port.pre.mk>
> .if ${HAVE_GNOME:Mgnomelibs}!=""
> # ...
> .endif
> .include <bsd.port.post.mk>
>
> does.
>
> AFAIK bsd.port.pre.mk/bsd.port.post.mk should be replaced by
> bsd.port.options.mk/bsd.port.mk in the long term, so having this work
> or documenting a workaround would help port maintainers who are
> in the process of updating the port structure.
No. They are two separate methods with two different reasons for using them.
You have discovered a case of pre.mk being the correct one to use, which is
unusual :)
Chris
More information about the freebsd-ports
mailing list