New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pangolin: fix dependencies list #1363
Conversation
graphics/Pangolin/Portfile
Outdated
port:pkgconfig | ||
|
||
depends_lib-append port:glew \ | ||
port:ffmpeg \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line should be updated to allow ffmpeg-devel to be used also.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Since this changes how the port will build and what it will install, the Since this is meant to fix a ticket, a second paragraph "Closes: https://trac.macports.org/ticket/55924" should be in the commit message. These changes are insufficient to address all of the issues mentioned in the ticket. What about python, tiff, libpng, jpeg, zlib? |
Unless |
-DBUILD_PANGOLIN_GUI=OFF takes care of python. ffmpeg depends on tiff, libpng, jpeg, zlib |
Ok.
Pangolin itself links with tiff, libpng, jpeg, zlib, so Pangolin should itself declare dependencies on them. One of the purposes of declaring dependencies is so that we can know just by using |
graphics/Pangolin/Portfile
Outdated
path:lib/libavcodec.dylib:ffmpeg \ | ||
path:lib/libavformat.dylib:ffmpeg \ | ||
path:lib/libavutil.dylib:ffmpeg \ | ||
path:lib/libswscale.dylib:ffmpeg |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A dependency on a port should only be added once. Most ports that depend on ffmpeg do so using path:lib/libavcodec.dylib:ffmpeg
so that's the one I'd use here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
port:libpng \ | ||
port:jpeg \ | ||
port:tiff \ | ||
path:lib/libavcodec.dylib:ffmpeg |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use the incantation we normally use in other ports:
path:bin/ffmpeg:ffmpeg
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ports that use the ffmpeg binary should use path:bin/ffmpeg:ffmpeg
. (There are currently 3 ports doing so.) This port uses the ffmpeg libraries, so it should use path:lib/libavcodec.dylib:ffmpeg
. (There are currently 103 ports doing so.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mf2k, but pangolin is not associated with ffmeg application, it only requires libraries. For example opencv use path:lib/libavcodec.dylib:ffmpeg
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well whatever Ryan thinks is best is good with me! :)
@ierofant You still need to bump the revision. @mf2k @ryandesign If the revision number is bumped, will this be ready to merge? |
Closes: https://trac.macports.org/ticket/55924 * append ffmpeg, openexr, libdc1394, zlib, libpng, jpeg, tiff to depends_lib * disable pangolin gui * bump revison
Revision is bumped |
Okay, I am assuming this is ready to merge, so I'm going to. Thank you for your contribution to MacPorts! |
Description
https://trac.macports.org/ticket/55924
Type(s)
Tested on
macOS 10.13.3
Xcode 9.2
Verification
Have you
port lint
?sudo port -vst install
?