Replace MacPorts dependency with another package

Is there a way to satisfy a specific port dependency with a different package (than the specified one) in MacPorts? More specifically, use the XYZ-devel package instead of XYZ for the second port that requires XYZ?

Thanks in advance.

+3
source share
2 answers

If the port is -develnot offered as an option, then the only way is to edit the Portfile.

$ sudo port edit $the_port

will open the specified port in the editor. You can change the dependency on the release port to port -devel.

Note that:

  • , -devel (, ).
  • Portfile , port selfupdate. "" Portfile , .
+1

" ", . :

[michaelsafyan@codemage ~]$ port variants ffmpeg
ffmpeg has the variants:
   darwin_10: Platform variant, selected automatically
   no_gpl: disallow use of GPL code, license will be LGPL
   no_mmx: disable all x86 asm optimizations
   speex: enable Speex decoding via libspeex

"+ variantname" "-variantname" (, ffmpeg speex "sudo port install ffmpeg + speex" ). ( MacPorts), .

+1

Source: https://habr.com/ru/post/1725342/


All Articles