[MacPorts] #69522: mpv: Add libmpv
MacPorts
noreply at macports.org
Mon Mar 18 03:11:54 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 |
------------------------------+----------------------
Comment (by ryandesign):
Replying to [comment:3 i0ntempest]:
> If {{{+libmpv}}} variant is specified then
{{{/opt/local/lib/libmpv.2.dylib}}} and
{{{/opt/local/include/mpv/client.h}}} will be present. So yea most likely
you do not have the correct include flags as Ryan said.
I've checked and mpv +libmpv ''does'' install mpv.pc which should be
sufficient for adding the right flags.
Gabriel, re-checking the command you used, you only used `pkg-config
--libs ncursesw mpv` which will give you the correct library (`-L` and
`-l`) flags but not the correct compiler (`-I`) flags. To get those, you
also need `pkg-config --cflags ncursesw mpv`, or get both at once with
`pkg-config --cflags --libs ncursesw mpv`.
Your Makefile seems to be doing both compilation and linking at once, so
you need both sets of flags. Normally compilation and linking are done
separately, so you'd give the compiler flags when compiling and the
library flags when linking.
--
Ticket URL: <https://trac.macports.org/ticket/69522#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list