option check

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

option check

Walter Schwarzenfeld
I am trying to check from the Makefile if an other port has one OPTION
on or off.

Don't find a working syntax.

_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: option check

Jan Beich-5
Walter Schwarzenfeld <[hidden email]> writes:

> I am trying to check from the Makefile if an other port has one OPTION
> on or off.
>
> Don't find a working syntax.

Unlike Gentoo requesting dependencies built with particular options set
is not supported yet. The feature has been requested for years i.e.,
soon after OPTIONS were introduced. What ports *currently* can do is
invent ad hoc check (see below), create slaves/flavors or adjust defaults.

  $ rg -g \*.mk -g Makefile\* pkg-config.\*exists
  graphics/gtk-update-icon-cache/Makefile
  43:     @if ! pkg-config --exists cairo-xlib; then \

  www/webkit2-gtk3/Makefile
  108:    @if ! pkg-config --exists cairo-egl; then \

  x11-toolkits/gtk20/Makefile
  58:     @if ! pkg-config --exists cairo-xlib; then \

  x11-toolkits/gtk30/Makefile
  96:     @if ! pkg-config --exists cairo-xlib; then \

  x11-toolkits/pango/Makefile
  50:     @if ! pkg-config --exists cairo-gobject; then \

Beware of flavors. Until variable dependencies are supported ports
cannot depend on a particular flavor without introducing conflicts.
For example, A depends on B@OPT1 while C and D depend on B; a user
would have to give up on C and D to have A installed.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: option check

Walter Schwarzenfeld
Thanks for answer.

pkg-config does not work in this case. It was needed a change in
configure.in.

_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[hidden email]"