[MacPorts] #69522: mpv: Add libmpv (was: Problem to have acces to the libmpv in MacOs)

MacPorts noreply at macports.org
Sun Mar 17 08:12:42 UTC 2024


#69522: mpv: Add libmpv
------------------------------+----------------------
  Reporter:  gabrielzschmitz  |      Owner:  Ionic
      Type:  enhancement      |     Status:  assigned
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:  2.9.1
Resolution:                   |   Keywords:
      Port:  mpv              |
------------------------------+----------------------
Changes (by ryandesign):

 * type:  defect => enhancement


Comment:

 As far as I can tell, the mpv port installs the mpv program, not a
 library. So this ticket is a request to add the libmpv library to the mpv
 port, or to create a libmpv subport. The Portfile currently specifies
 `-Dlibmpv=false` so presumably the library could be built by changing that
 to `-Dlibmpv=true` but I haven't tried it.

 I see that your Makefile has used the flags `-I/usr/local/include
 -L/usr/local/lib`. MacPorts doesn't install things in /usr/local; it
 installs them in /opt/local. If the mpv port installed a library, which it
 doesn't, you'd need to change those flags to `-I/opt/local/include
 -L/opt/local/lib` to find it. You'd need to consult your Makefile for
 information on how to do that. Or I see that the Makefile tries to use
 pkg-config to find libmpv; that may be enough, assuming the revised mpv or
 libmpv port installs a working .pc file.

-- 
Ticket URL: <https://trac.macports.org/ticket/69522#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list