I recently wanted to include the latest ImageMagick (7.0) in an LR plugin of mine. I spent a big chunk of time getting it to build properly on macOS so that it had no dependencies to make it easier to redistribute. I thought it might be useful to share my notes for others:
Excellent. I have a similar (painfully constructed) recipe for my plugins that use ImageMagick 6.9. Thanks for posting this.
Additionally, you might want to specify few versions earlier target OS right in the start of the script, so that your binaries would work for people who haven't upgraded yet: