Opened 7 years ago

Closed 7 years ago

#53496 closed defect (wontfix)

Documentation? force macports to use my lib instead of formula

Reported by: gaming-hacker (G Alexander) Owned by:
Priority: Normal Milestone:
Component: base Version: 2.4.0
Keywords: documentation Cc:
Port:

Description (last modified by neverpanic (Clemens Lang))

after reading the documentation https://guide.macports.org/

i cannot find the answer. i have built and installed my own versions of ffmpeg, x265,x264 libs and binaries. and placed links to them in the default macports locations /opt/local/bin, /lib,

now i'm installing a opencv which has dependencies on ffmpeg and x265 and it fails to install opencv because of the "foreign" libs already.

i'd rather force macports to use my lib than force it to skip a dependency.

can someone update the documention?

Change History (1)

comment:1 Changed 7 years ago by neverpanic (Clemens Lang)

Description: modified (diff)
Port: all removed
Resolution: wontfix
Status: newclosed
Type: updatedefect

We strongly discourage modifying files in /opt/local manually and we do not support linking against your own pre-installed versions for the same reasons we discourage using /usr/local (see wiki:FAQ#usrlocal).

If you need special copies of ffmpeg, x265 and x264, I suggest you create a local portfile repository (see https://guide.macports.org/#development.local-repositories) that contains Portfiles for these ports and modify the Portfiles to suit your needs.

We do not support forcing macports to use your custom built copy. As you've already noticed, you can skip the dependency.

Since we do not support this use-case, I will also not update the documentation to include it.

Note: See TracTickets for help on using tickets.