include/X11/Xft/Xft.h includes ft2build.h from freetype2, so freetype2 should always be in the flags.
Details
Diff Detail
- Repository
- rP FreeBSD ports repository
- Lint
No Lint Coverage - Unit
No Test Coverage - Build Status
Buildable 13613 Build 13836: arc lint + arc unit
Event Timeline
It seems like you want to patch a broken configure script in the ports framework.
This path should already be set in the pkconfig file of the freetype port. If the depending software does not use that properly, that's the place you need to fix.
What if they don't use pkg-config? If this is a static dependency, why not patch it in the framework? Why should everybody add freetype2 include?
It can lead to too much stuff in the include path. For example with Qt5, we needed to make sure that no -I/usr/local/incldue was present during compiling. Or the ports would use the installed headers instead of their new ones during upgrade.
So such a change has great destructive potential :)
So, to clarify this, USE_XORG=xft currently isn't sufficient to use Xft. All users need to also add the freetype2 include path. This doesn't appear to be normal that everybody should remember to also include something else. It makes much more sense if USE_XORG=xft took care of everything needed for Xft.
If the framework can't specify the needed include path, this is a problem in itself. Because logically this include should always come with USE_XORG=xft.
I don't think it's the framework's job to work around broken configure scripts.
Most ports using xft don't need this.
This is because many of them were patched for this: graphics/xfractint, games/seahaven.
If I wanted to write a project, needing Xft, from scratch, I would need to add USE_XORG=xft and CXXFLAGS+=-I${LOCALBASE}/include/freetype2.
The first part should suffice. Why do I *always* need the second part? This doesn't make any sense.
Most graphics ports already need freetype, or it seeps in through some dependencies, this is why they don't have to be patched.
If you use pkconfig it would work, and using some
Or you should rather use pkconfig to query those flags :)... If you need to do it by foot.
In which language is this rude? In English it is not:
There is nothing rude in it. This is meant as a statement of fact or opinion, and nothing more.