I've read this looooong discussion
.
Btw, I think that there are two distinct problems, which don't directly concern brew :
- XCode templates, which must have a specific configuration to copy dylibs which have been generated via brew
- Cmake configuration, to allow build to skip extlibs
(in fact, that's just what you written on the original issue (620))
Well, I don't want to "pollute" the Github discussions, so I'm gonna write here for the moment
In the CMakeLists.txt, there are the following lines :
install(DIRECTORY extlibs/libs-osx/Frameworks/sndfile.framework DESTINATION ${CMAKE_INSTALL_FRAMEWORK_PREFIX})
install(DIRECTORY extlibs/libs-osx/Frameworks/freetype.framework DESTINATION ${CMAKE_INSTALL_FRAMEWORK_PREFIX})
Since I never used cmake, maybe I'm wrong but can't we "just" make those paths dynamic, and set them passing a parameter to cmake inside the brew formula ?
EDIT : Or maybe we can use brew's patch feature, to apply a diff to the files when using the formula.
If you thinks it can be enough, I may try to do it.
(Oh and sorry if my English is bad, it's not my native language
)