Bug 241200 - x11/xlockmore compilation failure when MESAGL selected
Summary: x11/xlockmore compilation failure when MESAGL selected
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Jason Helfman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-11 15:51 UTC by russo
Modified: 2019-10-22 21:27 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (jgh)


Attachments
Patch to add freetype2 include directory to CFLAGS (562 bytes, patch)
2019-10-11 15:51 UTC, russo
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description russo 2019-10-11 15:51:33 UTC
Created attachment 208249 [details]
Patch to add freetype2 include directory to CFLAGS

After the last update to xlockmore 5.59 (svn r513774), I am no longer able to compile with MESAGL turned on.  The result is a compilation error failing to find ft2build.h (which is included by ftgl.h):

--- ./text3d2.o ---
In file included from ./text3d2.cc:79:
/usr/local/include/FTGL/FTGLExtrdFont.h:29:5: warning: This header is deprecated. Please use <FTGL/ftgl.h> from now. [-W#warnings]
#   warning This header is deprecated. Please use <FTGL/ftgl.h> from now.
    ^
In file included from ./text3d2.cc:79:
In file included from /usr/local/include/FTGL/FTGLExtrdFont.h:30:
/usr/local/include/FTGL/ftgl.h:32:10: fatal error: 'ft2build.h' file not found
#include <ft2build.h>
         ^~~~~~~~~~~~


The reason for this is that there is no -I flag in CFLAGS to add the freetype2 directory to the include path, which is necessary to find ft2build.h.

The attached patch to the xlockmore Makefile is sufficient to get the thing built for me.
Comment 1 Jason Helfman freebsd_committer freebsd_triage 2019-10-22 21:27:21 UTC
Thanks for the patch!